Renaming boot scripts for refactoring them into numbered plugins.
authorDaniel Baumann <daniel@debian.org>
Mon, 2 Jul 2012 15:40:11 +0000 (17:40 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 18 Jul 2012 21:34:15 +0000 (23:34 +0200)
20 files changed:
scripts/boot.sh
scripts/boot/9990-aaa-fixme.sh [new file with mode: 0755]
scripts/boot/9990-cmdline.sh [moved from scripts/boot/cmdline.sh with 100% similarity]
scripts/boot/9990-fstab.sh [moved from scripts/boot/fstab.sh with 100% similarity]
scripts/boot/9990-initramfs-tools.sh [moved from scripts/boot/initramfs-tools.sh with 100% similarity]
scripts/boot/9990-misc-helpers.sh [moved from scripts/boot/misc-helpers.sh with 100% similarity]
scripts/boot/9990-mount-cifs.sh [moved from scripts/boot/mount-cifs.sh with 100% similarity]
scripts/boot/9990-mount-http.sh [moved from scripts/boot/mount-http.sh with 100% similarity]
scripts/boot/9990-mount-iscsi.sh [moved from scripts/boot/mount-iscsi.sh with 100% similarity]
scripts/boot/9990-mount-nfs.sh [moved from scripts/boot/mount-nfs.sh with 100% similarity]
scripts/boot/9990-mountroot.sh [moved from scripts/boot/mountroot.sh with 100% similarity]
scripts/boot/9990-netbase.sh [moved from scripts/boot/netbase.sh with 100% similarity]
scripts/boot/9990-netboot.sh [moved from scripts/boot/netboot.sh with 100% similarity]
scripts/boot/9990-networking.sh [moved from scripts/boot/networking.sh with 100% similarity]
scripts/boot/9990-overlay.sh [moved from scripts/boot/overlay.sh with 100% similarity]
scripts/boot/9990-read-only.sh [moved from scripts/boot/read-only.sh with 100% similarity]
scripts/boot/9990-select-eth-device.sh [moved from scripts/boot/select-eth-device.sh with 100% similarity]
scripts/boot/9990-swapon.sh [moved from scripts/boot/swapon.sh with 100% similarity]
scripts/boot/9990-toram-todisk.sh [moved from scripts/boot/toram-todisk.sh with 100% similarity]
scripts/boot/9990-verify-checksums.sh [moved from scripts/boot/verify-checksums.sh with 100% similarity]

index 9539496..c031f00 100755 (executable)
@@ -2,66 +2,10 @@
 
 # set -e
 
-if [ -e /scripts/functions ]
-then
-       # initramfs-tools specific (FIXME)
-       . /scripts/functions
-fi
-
-for _SCRIPT in /lib/live/boot/*
+for _SCRIPT in /lib/live/boot/????-*
 do
        if [ -e "${_SCRIPT}" ]
        then
                . ${_SCRIPT}
        fi
 done
-
-export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
-
-echo "/root/lib" >> /etc/ld.so.conf
-echo "/root/usr/lib" >> /etc/ld.so.conf
-
-mountpoint="/live/image"
-alt_mountpoint="/media"
-LIVE_MEDIA_PATH="live"
-
-HOSTNAME="host"
-
-mkdir -p "${mountpoint}"
-tried="/tmp/tried"
-
-# Create /etc/mtab for debug purpose and future syncs
-if [ ! -d /etc ]
-then
-       mkdir /etc/
-fi
-
-if [ ! -f /etc/mtab ]
-then
-       touch /etc/mtab
-fi
-
-if [ ! -x "/bin/fstype" ]
-then
-       # klibc not in path -> not in initramfs
-       export PATH="${PATH}:/usr/lib/klibc/bin"
-fi
-
-# handle upgrade path from old udev (using udevinfo) to
-# recent versions of udev (using udevadm info)
-if [ -x /sbin/udevadm ]
-then
-       udevinfo='/sbin/udevadm info'
-else
-       udevinfo='udevinfo'
-fi
-
-old_root_overlay_label="live-rw"
-old_home_overlay_label="home-rw"
-custom_overlay_label="persistence"
-persistence_list="live-persistence.conf"
-
-if [ ! -f /live.vars ]
-then
-       touch /live.vars
-fi
diff --git a/scripts/boot/9990-aaa-fixme.sh b/scripts/boot/9990-aaa-fixme.sh
new file mode 100755 (executable)
index 0000000..77a291a
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+if [ -e /scripts/functions ]
+then
+       # initramfs-tools specific (FIXME)
+       . /scripts/functions
+fi
+
+export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
+
+echo "/root/lib" >> /etc/ld.so.conf
+echo "/root/usr/lib" >> /etc/ld.so.conf
+
+mountpoint="/live/image"
+alt_mountpoint="/media"
+LIVE_MEDIA_PATH="live"
+
+HOSTNAME="host"
+
+mkdir -p "${mountpoint}"
+tried="/tmp/tried"
+
+# Create /etc/mtab for debug purpose and future syncs
+if [ ! -d /etc ]
+then
+       mkdir /etc/
+fi
+
+if [ ! -f /etc/mtab ]
+then
+       touch /etc/mtab
+fi
+
+if [ ! -x "/bin/fstype" ]
+then
+       # klibc not in path -> not in initramfs
+       export PATH="${PATH}:/usr/lib/klibc/bin"
+fi
+
+# handle upgrade path from old udev (using udevinfo) to
+# recent versions of udev (using udevadm info)
+if [ -x /sbin/udevadm ]
+then
+       udevinfo='/sbin/udevadm info'
+else
+       udevinfo='udevinfo'
+fi
+
+old_root_overlay_label="live-rw"
+old_home_overlay_label="home-rw"
+custom_overlay_label="persistence"
+persistence_list="live-persistence.conf"
+
+if [ ! -f /live.vars ]
+then
+       touch /live.vars
+fi