mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
empty root password next try
This commit is contained in:
parent
ca0a9dff6b
commit
4a73c8c395
2 changed files with 2 additions and 2 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue