summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-10-08 20:00:41 +0200
committerDaniel Baumann <daniel@debian.org>2012-10-08 20:00:41 +0200
commita7227d4ebcc16d13a6e80c5f394d856f0bfd64a0 (patch)
treeb7e2e0dabd4dd664c5bed50e6dc5d5d86ffe6ff5 /functions/defaults.sh
parent65bc289e9bf1dcc1650371a789d9738b68671255 (diff)
downloadvyos-live-build-a7227d4ebcc16d13a6e80c5f394d856f0bfd64a0.tar.gz
vyos-live-build-a7227d4ebcc16d13a6e80c5f394d856f0bfd64a0.zip
Stopping to support LB_INITRAMFS=auto, when switching the mode one has to update several parameters anyway, use of auto scripts are recommended.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh24
1 files changed, 8 insertions, 16 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index cd3b76666..b8c4d67fc 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -184,29 +184,21 @@ Set_defaults ()
esac
# Setting initramfs hook
- case "${LB_INITRAMFS}" in
- auto)
+ case "${LB_SYSTEM}" in
+ live)
case "${LB_MODE}" in
ubuntu|kubuntu)
- LB_INITRAMFS="casper"
+ LB_INITRAMFS="${LB_INITRAMFS:-casper}"
;;
*)
- LB_INITRAMFS="live-boot"
+ LB_INITRAMFS="${LB_INITRAMFS:-live-boot}"
;;
esac
;;
- *)
- case "${LB_SYSTEM}" in
- live)
- LB_INITRAMFS="${LB_INITRAMFS:-auto}"
- ;;
-
- normal)
- LB_INITRAMFS="${LB_INITRAMFS:-none}"
- ;;
- esac
+ normal)
+ LB_INITRAMFS="${LB_INITRAMFS:-none}"
;;
esac
@@ -983,7 +975,7 @@ Set_defaults ()
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE:-boot=casper quiet splash}"
;;
- *)
+ none)
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE:-quiet splash}"
;;
esac
@@ -997,7 +989,7 @@ Set_defaults ()
LB_BOOTAPPEND_FAILSAFE="${LB_BOOTAPPEND_FAILSAFE:-boot=casper memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal}"
;;
- *)
+ none)
LB_BOOTAPPEND_FAILSAFE="${LB_BOOTAPPEND_FAILSAFE:-memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal}"
;;
esac