From 93f04c508b6564e5e69deb065e0a02e1c16b7121 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 18 Oct 2013 11:45:22 +0200 Subject: [PATCH] gen_initramfs.sh: add /sbin/losetup symlink This will make possible to remove hardcoded /dev/loop0 paths --- gen_initramfs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 999e586..46a3a48 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -138,10 +138,11 @@ append_busybox() { gen_die "Busybox error: could not link ${i}!" done - local mod_applets="sbin/modprobe sbin/insmod sbin/rmmod bin/lsmod" + local sbin_applets="sbin/modprobe sbin/insmod" + sbin_applets+=" sbin/rmmod bin/lsmod sbin/losetup" local dir= local name= - for i in ${mod_applets}; do + for i in ${sbin_applets}; do dir=$(dirname $i) name=$(basename $i) rm -f ${TEMP}/initramfs-busybox-temp/$dir/$name