empty root password next try

This commit is contained in:
Tobias Powalowski 2023-11-08 16:23:06 +01:00
parent ca0a9dff6b
commit 4a73c8c395
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ inputrc,mke2fs.conf,nsswitch.conf,protocols,request-key.conf,securetty,services}
_file_rename /usr/share/archboot/base/etc/sysctl.d/99-sysctl.conf /etc/sysctl.d/99-sysctl.conf
# add root user with empty password
echo "root::0:root" > "${_ROOTFS}/etc/group"
echo "root:x:0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
echo "root::0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
echo "root::0::::::" > "${_ROOTFS}/etc/shadow"
### add pacman
_map _binary pacman pacman-conf pacman-key pacman-db-upgrade makepkg \

View file

@ -63,7 +63,7 @@ _run ()
echo "alias reboot='echo b >/proc/sysrq-trigger'" >> "${_ROOTFS}/root/.bashrc"
echo "alias poweroff='echo o >/proc/sysrq-trigger'" >> "${_ROOTFS}/root/.bashrc"
echo "root::0:root" > "${_ROOTFS}/etc/group"
echo "root:x:0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
echo "root::0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
echo "root::0::::::" > "${_ROOTFS}/etc/shadow"
_file_rename /usr/share/archboot/base/etc/profile.d/custom-bash-options.sh \
/etc/profile.d/custom-bash-options.sh