From 2f2ecd3ca0c65ea6d3c2acdd43fd0478d6c8e15d Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Sun, 21 Aug 2022 18:58:29 +0000 Subject: Sun Aug 21 18:58:29 UTC 2022 a/kernel-generic-5.19.3-x86_64-1.txz: Upgraded. a/kernel-huge-5.19.3-x86_64-1.txz: Upgraded. a/kernel-modules-5.19.3-x86_64-1.txz: Upgraded. d/gcc-12.2.0-x86_64-1.txz: Upgraded. d/gcc-g++-12.2.0-x86_64-1.txz: Upgraded. d/gcc-gdc-12.2.0-x86_64-1.txz: Upgraded. d/gcc-gfortran-12.2.0-x86_64-1.txz: Upgraded. d/gcc-gnat-12.2.0-x86_64-1.txz: Upgraded. d/gcc-go-12.2.0-x86_64-1.txz: Upgraded. d/gcc-objc-12.2.0-x86_64-1.txz: Upgraded. d/kernel-headers-5.19.3-x86-1.txz: Upgraded. d/libtool-2.4.7-x86_64-3.txz: Rebuilt. Recompiled to update embedded GCC version number. d/python-setuptools-65.1.1-x86_64-1.txz: Upgraded. Make libdir = platlib to agree with the paths in python3. k/kernel-source-5.19.3-noarch-1.txz: Upgraded. xfce/xfce4-panel-4.16.5-x86_64-1.txz: Upgraded. xfce/xfdesktop-4.16.1-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. /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. Thanks to Stuart Winter. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt. /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. Thanks to Stuart Winter. --- source/installer/sources/initrd/etc/rc.d/rc.S | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/installer/sources/initrd/etc') 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 -- cgit v1.2.3