busybox-initramfs: use (external) dd from /sysroot

This commit is contained in:
Stefan Saraev 2013-05-30 12:25:08 +03:00 committed by Stephan Raue
parent 26b08a48c6
commit bc5bda62ee

View File

@ -407,8 +407,10 @@
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
echo "Creating empty file, this can take a long time..."
dd if=/dev/zero of="$storage_loop_file" bs=1M count=$STORAGE_USE &>/dev/null
# use dd from SYSTEM (may change later, needs CONFIG_DD_* & so in busybox-initramfs.conf)
/sysroot/bin/busybox dd if=/dev/zero of="$storage_loop_file" bs=1M count=$STORAGE_USE &>/dev/null
echo "Formating to EXT4 filesystem, this can take a long time..."
# use mkfs.ext4 from SYSTEM
LD_LIBRARY_PATH=/sysroot/usr/lib /sysroot/sbin/mkfs.ext4 -F -L StorageLive "$storage_loop_file" &>/dev/null
sync
umount /sysroot