From 098d24b61d7860870e3dd9abd341f047ffae5e86 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Tue, 26 Apr 2022 16:52:47 +0200 Subject: [PATCH] Do not set root pw, do not hack mdev Neither is required, root can have no password and the nameif hack does not work anyway. --- alpine_postinst | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/alpine_postinst b/alpine_postinst index 928a443..b0d918d 100644 --- a/alpine_postinst +++ b/alpine_postinst @@ -7,13 +7,6 @@ mkdir /root/.ssh chmod 700 /root/.ssh echo "$ssh_key" >> /root/.ssh/authorized_keys -# Set root password -# Given the use case, we do not care it is in plain text here. Still we enter the -passwd root <> /etc/mdev.conf -mkinitfs $(ls /lib/modules) +# NOTE: This does not seem to work. +#echo '-SUBSYSTEM=net;DEVPATH=.*/net/.*;.* root:root 600 @/sbin/nameif -s' >> /etc/mdev.conf +#mkinitfs $(ls /lib/modules)