Accepting request 876800 from devel:kubic:containers

- Make sure su is really working
- Use /bin/sh instead of bash as login shell (bash is not installed) (forwarded request 876799 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/876800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tumbleweed-busybox-image?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2021-03-08 14:15:47 +00:00 committed by Git OBS Bridge
commit 4c15567cba
2 changed files with 26 additions and 0 deletions

20
config.sh Normal file
View File

@ -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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 4 14:54:59 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
- 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 <fvogt@suse.com>