- 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
21 lines
491 B
Bash
21 lines
491 B
Bash
#!/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
|