X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2Fmisc-helpers.sh;fp=initramfs-tools%2Fscripts%2Flive-helpers;h=202ebe6255b0c4db3aff6fc1615875876ae5e9b0;hb=6d3f4fd5557f5efc83c42374417f4a05e99d3744;hp=73d15e7a3710adc7fd345f72ddf2d20b208a7ee7;hpb=c48696a0ebe9ffc938b84b921db90ac620339a52;p=live-boot-grml.git diff --git a/initramfs-tools/scripts/live-helpers b/scripts/boot/misc-helpers.sh old mode 100644 new mode 100755 similarity index 97% rename from initramfs-tools/scripts/live-helpers rename to scripts/boot/misc-helpers.sh index 73d15e7..202ebe6 --- a/initramfs-tools/scripts/live-helpers +++ b/scripts/boot/misc-helpers.sh @@ -1,27 +1,4 @@ -# live-boot helper functions, used by live-boot on boot and by live-snapshot - -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="custom-ov" -root_snapshot_label="live-sn" -old_root_snapshot_label="live-sn" -home_snapshot_label="home-sn" -persistence_list="live-persistence.conf" +#!/bin/sh is_in_list_separator_helper () { local sep=${1}