summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-03-01 10:45:44 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 13:54:16 +0200
commit3a59cebc482d5590085562b7651ce29a57661985 (patch)
tree073c3c834b6f19666f68f59a5aad7e263d752273
parente66968e72746e4f3e5375e873debe0b42a979707 (diff)
downloadlive-boot-3a59cebc482d5590085562b7651ce29a57661985.tar.gz
live-boot-3a59cebc482d5590085562b7651ce29a57661985.zip
Dropping conditionals in backend, stuff is either there or not but not nothing in between.
-rwxr-xr-xbackends/dracut/live.script5
-rwxr-xr-xbackends/initramfs-tools/live.script10
2 files changed, 3 insertions, 12 deletions
diff --git a/backends/dracut/live.script b/backends/dracut/live.script
index 270fce9..2f29e70 100755
--- a/backends/dracut/live.script
+++ b/backends/dracut/live.script
@@ -2,10 +2,7 @@
#set -e
-if [ -e /lib/live/boot.sh ]
-then
- . /lib/live/boot.sh
-fi
+. /lib/live/boot.sh
DRACUT_FIXME ()
{
diff --git a/backends/initramfs-tools/live.script b/backends/initramfs-tools/live.script
index 7f99cc3..1c6ebbf 100755
--- a/backends/initramfs-tools/live.script
+++ b/backends/initramfs-tools/live.script
@@ -2,15 +2,9 @@
#set -e
-if [ -e /lib/live/boot.sh ]
-then
- . /lib/live/boot.sh
-fi
+. /lib/live/boot.sh
-if [ -e /scripts/functions ]
-then
- . /scripts/functions
-fi
+. /scripts/functions
mountroot ()
{