ln -s linuxrc $DESTDIR/init
# create dirs that we really need
-inst_d /{lib,bin,etc,dev{,/pts,/shm},loopfs,var,proc,run,sys,tmp}
+inst_d /{lib,bin,sbin,etc,dev{,/pts,/shm},loopfs,var,proc,run,sys,tmp}
modules_install "$MODULES"
fi
verbose "Adding BLKID support to initrd"
- inst_exec $blkid /bin/blkid
+ inst_exec $blkid /sbin/blkid
initrd_gen_devices
add_linuxrc <<-'EOF'
# if built with blkid change ROOT=LABEL=something into ROOT=/dev/device parsed by blkid
if [ "${ROOT##LABEL=}" != "${ROOT}" -o "${ROOT##UUID=}" != "${ROOT}" ]; then
- blkid="$(/bin/blkid -t $ROOT -o device -l)"
+ blkid="$(/sbin/blkid -t $ROOT -o device -l)"
if [ -n "$blkid" ]; then
ROOT=$blkid
fi