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:
parent
8226538a16
commit
13bd0274c7
20
config.sh
Normal file
20
config.sh
Normal 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
|
@ -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>
|
Tue Dec 1 09:42:43 UTC 2020 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user