summaryrefslogtreecommitdiffstats
path: root/source/installer
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2022-08-21 18:58:29 +0000
committer Eric Hameleers <alien@slackware.com>2022-08-22 01:00:18 +0200
commit2f2ecd3ca0c65ea6d3c2acdd43fd0478d6c8e15d (patch)
treedf03ec66fe0fe7c1b4f30098b2fda5c6f19722bb /source/installer
parent2dbea3b2b0e597fa1e3fa37fbb2f250168112559 (diff)
downloadcurrent-2f2ecd3ca0c65ea6d3c2acdd43fd0478d6c8e15d.tar.gz
current-2f2ecd3ca0c65ea6d3c2acdd43fd0478d6c8e15d.tar.xz
Sun Aug 21 18:58:29 UTC 202220220821185829
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.
Diffstat (limited to 'source/installer')
-rw-r--r--source/installer/ChangeLog.txt10
-rwxr-xr-xsource/installer/sources/initrd/etc/rc.d/rc.S10
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