From e7a7e65c17f44b12d014a863e2b7acf9519c8a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 20 Feb 2019 17:47:30 +0100 Subject: [PATCH] base-passwd: let bash be the default shell for root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * we prefer bash in our images anyway * makes default configuration more simple Signed-off-by: Andreas Müller --- appends/oe-core/base-passwd_%.bbappend | 3 +++ recipes-image/console/console-base-image.bb | 1 + 2 files changed, 4 insertions(+) create mode 100644 appends/oe-core/base-passwd_%.bbappend diff --git a/appends/oe-core/base-passwd_%.bbappend b/appends/oe-core/base-passwd_%.bbappend new file mode 100644 index 0000000..5c1a1af --- /dev/null +++ b/appends/oe-core/base-passwd_%.bbappend @@ -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 +} diff --git a/recipes-image/console/console-base-image.bb b/recipes-image/console/console-base-image.bb index 0237aaa..243f08b 100644 --- a/recipes-image/console/console-base-image.bb +++ b/recipes-image/console/console-base-image.bb @@ -7,6 +7,7 @@ IMAGE_INSTALL += " \ ${ROOTFS_PKGMANAGE} \ update-alternatives-opkg \ coreutils \ + bash \ bash-completion \ systemd-bash-completion \ systemd-analyze \