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
This commit is contained in:
Thorsten Kukuk 2021-03-04 17:19:33 +00:00 committed by Git OBS Bridge
parent 8226538a16
commit 13bd0274c7
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>