base-passwd: let bash be the default shell for root

* we prefer bash in our images anyway
* makes default configuration more simple

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-02-20 17:47:30 +01:00
parent d916915ce3
commit e7a7e65c17
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
do_install_append() {
sed -i 's|root::0:0:root:/home/root:/bin/sh|root::0:0:root:/home/root:/bin/bash|' ${D}${datadir}/${BPN}/passwd.master
}

View File

@@ -7,6 +7,7 @@ IMAGE_INSTALL += " \
${ROOTFS_PKGMANAGE} \
update-alternatives-opkg \
coreutils \
bash \
bash-completion \
systemd-bash-completion \
systemd-analyze \