diff options
Diffstat (limited to 'source/installer')
-rw-r--r-- | source/installer/ChangeLog.txt | 10 | ||||
-rwxr-xr-x | source/installer/sources/initrd/etc/rc.d/rc.S | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/source/installer/ChangeLog.txt b/source/installer/ChangeLog.txt index 3b32fc69a..8850f9c0f 100644 --- a/source/installer/ChangeLog.txt +++ b/source/installer/ChangeLog.txt @@ -1,3 +1,13 @@ +Fri Aug 19 08:08:08 UTC 2022 + /etc/rc.d/rc.S: Added support for setting the Installer's root password + from a Kernel cmdline key value pair, instrootpw=yourpassword + This is intended for network installations where otherwise the root password + would be unset. + Note: this does not configure the OS root password. + Passwords should be set as follows within the Kernel cmdline: + instrootpw=yourpassword + MoZes. ++--------------------------+ Wed Jun 29 19:13:25 UTC 2022 Added smartctl, smartctl.8, and dmidecode.8. +--------------------------+ diff --git a/source/installer/sources/initrd/etc/rc.d/rc.S b/source/installer/sources/initrd/etc/rc.d/rc.S index fcd5fea2c..a5c52f548 100755 --- a/source/installer/sources/initrd/etc/rc.d/rc.S +++ b/source/installer/sources/initrd/etc/rc.d/rc.S @@ -13,6 +13,16 @@ # Mount sysfs next: /sbin/mount -v sysfs /sys -t sysfs 1> /dev/null +# Set a root password for the Slackware Installer if set as a Kernel cmdline: +# This is intended for network installations where otherwise the root password +# would be unset. +# Note: this does not configure the OS root password. +# Passwords should be set as follows within the Kernel cmdline: +# instrootpw=yourpassword +if grep.bin -qoP 'instrootpw=\K\S+' /proc/cmdline ; then + /bin/echo "root:$( grep.bin -oP 'instrootpw=\K\S+' /proc/cmdline )" | /bin/busybox chpasswd +fi + # Activate swap: /sbin/swapon -a 1> /dev/null |