mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
busybox-initramfs: use (external) dd from /sysroot
This commit is contained in:
parent
702bfed946
commit
5572a27b5e
@ -407,8 +407,10 @@
|
|||||||
|
|
||||||
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
|
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
|
||||||
echo "Creating empty file, this can take a long time..."
|
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..."
|
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
|
LD_LIBRARY_PATH=/sysroot/usr/lib /sysroot/sbin/mkfs.ext4 -F -L StorageLive "$storage_loop_file" &>/dev/null
|
||||||
sync
|
sync
|
||||||
umount /sysroot
|
umount /sysroot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user