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.
master
LEdoian 2 years ago
parent ca51082938
commit 098d24b61d

@ -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 <<GO
kokoko
kokoko
GO
# Install bird and maybe other tools
apk update
apk add bird
@ -21,5 +14,6 @@ rc-update add bird default
# Run nameif at boot to set network names
# Doc: https://wiki.alpinelinux.org/wiki/Custom_network_interface_names
echo '-SUBSYSTEM=net;DEVPATH=.*/net/.*;.* root:root 600 @/sbin/nameif -s' >> /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)

Loading…
Cancel
Save