From 13bd0274c7d29eadc7173fe7aea6cc1d99e936c73691e0dabc683107a0c4cd36 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 4 Mar 2021 17:19:33 +0000 Subject: [PATCH] Accepting request 876799 from home:kukuk:container - Make sure su is really working - Use /bin/sh instead of bash as login shell (bash is not installed) OBS-URL: https://build.opensuse.org/request/show/876799 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/tumbleweed-busybox-image?expand=0&rev=36 --- config.sh | 20 ++++++++++++++++++++ tumbleweed-busybox-image.changes | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 config.sh diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..661f906 --- /dev/null +++ b/config.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +#====================================== +# Functions... +#-------------------------------------- +test -f /.profile && . /.profile + +#====================================== +# Greeting... +#-------------------------------------- +echo "Configure image: [$kiwi_iname]..." + +# fix shell of root, bash does not exist +sed -i -e 's|/bin/bash|/bin/sh|g' /etc/passwd + +# Make sure su is working +rm /usr/bin/su +ln /usr/bin/busybox /usr/bin/su +chmod 4755 /usr/bin/su +ln -sf ../usr/bin/su /bin/su diff --git a/tumbleweed-busybox-image.changes b/tumbleweed-busybox-image.changes index b332241..bc6ac6c 100644 --- a/tumbleweed-busybox-image.changes +++ b/tumbleweed-busybox-image.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 4 14:54:59 UTC 2021 - Thorsten Kukuk + +- Make sure su is really working +- Use /bin/sh instead of bash as login shell (bash is not installed) + ------------------------------------------------------------------- Tue Dec 1 09:42:43 UTC 2020 - Fabian Vogt