[systemd-devel] [PATCH 1/6] tests: Make sushell optional in image creation

Martin Pitt martin.pitt at ubuntu.com
Sun Feb 1 15:19:28 PST 2015


sushell does not exist in all distributions, and it can be changed with
configure --with-debug-shell, so make installation of it optional.
---
 test/test-functions | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test-functions b/test/test-functions
index 4fa0c59..91f3ecd 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -7,7 +7,7 @@ export PATH
 KERNEL_VER=${KERNEL_VER-$(uname -r)}
 KERNEL_MODS="/lib/modules/$KERNEL_VER/"
 
-BASICTOOLS="sh bash setsid loadkeys setfont login sushell sulogin gzip sleep echo mount umount cryptsetup date dmsetup modprobe"
+BASICTOOLS="sh bash setsid loadkeys setfont login sulogin gzip sleep echo mount umount cryptsetup date dmsetup modprobe"
 DEBUGTOOLS="df free ls stty cat ps ln ip route dmesg dhclient mkdir cp ping dhclient strace less grep id tty touch du sort"
 
 function find_qemu_bin() {
@@ -227,6 +227,7 @@ EOF
 
 install_basic_tools() {
     [[ $BASICTOOLS ]] && dracut_install $BASICTOOLS
+    dracut_install -o sushell
 }
 
 install_debug_tools() {
-- 
2.1.4



More information about the systemd-devel mailing list