mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
busybox-initramfs: some better descriptions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7e4af5d0ab
commit
8c5eecfb37
@ -441,17 +441,17 @@
|
|||||||
# /flash is filesystem with system image file
|
# /flash is filesystem with system image file
|
||||||
# use dd and mkfs.ext4 from system
|
# use dd and mkfs.ext4 from system
|
||||||
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
|
mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
|
||||||
echo "Creating empty file..."
|
echo "Creating empty file, this can take a long time..."
|
||||||
/sysroot/bin/busybox dd if=/dev/zero of="$storage_loop_file" bs=1M count=$STORAGE_USE &>/dev/null
|
/sysroot/bin/busybox dd if=/dev/zero of="$storage_loop_file" bs=1M count=$STORAGE_USE &>/dev/null
|
||||||
echo "Formating to EXT4 filesystem..."
|
echo "Formating to EXT4 filesystem, this can take a long time..."
|
||||||
LD_LIBRARY_PATH=/sysroot/usr/lib /sysroot/usr/bin/mkfs.ext4 -F -L StorageLive "$storage_loop_file" &>/dev/null
|
LD_LIBRARY_PATH=/sysroot/usr/lib /sysroot/usr/bin/mkfs.ext4 -F -L StorageLive "$storage_loop_file" &>/dev/null
|
||||||
/bin/busybox sync
|
/bin/busybox sync
|
||||||
umount /sysroot
|
umount /sysroot
|
||||||
else
|
else
|
||||||
# /flash is actual root filesystem
|
# /flash is actual root filesystem
|
||||||
echo "Creating empty file..."
|
echo "Creating empty file, this can take a long time..."
|
||||||
/flash/bin/busybox dd if=/dev/zero of="$storage_loop_file" bs=1M count=$STORAGE_USE &>/dev/null
|
/flash/bin/busybox dd if=/dev/zero of="$storage_loop_file" bs=1M count=$STORAGE_USE &>/dev/null
|
||||||
echo "Formating to EXT4 filesystem..."
|
echo "Formating to EXT4 filesystem, this can take a long time..."
|
||||||
LD_LIBRARY_PATH=/flash/usr/lib /flash/usr/bin/mkfs.ext4 -F -L StorageLive "$storage_loop_file" &>/dev/null
|
LD_LIBRARY_PATH=/flash/usr/lib /flash/usr/bin/mkfs.ext4 -F -L StorageLive "$storage_loop_file" &>/dev/null
|
||||||
/bin/busybox sync
|
/bin/busybox sync
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user