mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix ssh shadow
This commit is contained in:
parent
4a73c8c395
commit
587fc6e47e
2 changed files with 4 additions and 2 deletions
|
@ -166,7 +166,8 @@ inputrc,mke2fs.conf,nsswitch.conf,protocols,request-key.conf,securetty,services}
|
|||
# add root user with empty password
|
||||
echo "root::0:root" > "${_ROOTFS}/etc/group"
|
||||
echo "root::0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
|
||||
echo "root::0::::::" > "${_ROOTFS}/etc/shadow"
|
||||
# create a shadow file and use 1 to keep ssh happy :)
|
||||
echo "root::1::::::" > "${_ROOTFS}/etc/shadow"
|
||||
### add pacman
|
||||
_map _binary pacman pacman-conf pacman-key pacman-db-upgrade makepkg \
|
||||
repo-add repo-elephant testpkg vercmp curl gpg-agent gpg \
|
||||
|
|
|
@ -64,7 +64,8 @@ _run ()
|
|||
echo "alias poweroff='echo o >/proc/sysrq-trigger'" >> "${_ROOTFS}/root/.bashrc"
|
||||
echo "root::0:root" > "${_ROOTFS}/etc/group"
|
||||
echo "root::0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
|
||||
echo "root::0::::::" > "${_ROOTFS}/etc/shadow"
|
||||
# use 1 to keep ssh happy :)
|
||||
echo "root::1::::::" > "${_ROOTFS}/etc/shadow"
|
||||
_file_rename /usr/share/archboot/base/etc/profile.d/custom-bash-options.sh \
|
||||
/etc/profile.d/custom-bash-options.sh
|
||||
_file /usr/lib/archboot/cpio/init.sh
|
||||
|
|
Loading…
Reference in a new issue