mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-11-09 18:04:55 -06:00
ramdisk: add fsck in initramfs
This commit is contained in:
@@ -9,6 +9,8 @@ nod /dev/console 644 0 0 c 5 1
|
||||
|
||||
file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -9,6 +9,8 @@ nod /dev/console 644 0 0 c 5 1
|
||||
|
||||
file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -9,6 +9,8 @@ nod /dev/console 644 0 0 c 5 1
|
||||
|
||||
file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -9,6 +9,8 @@ nod /dev/console 644 0 0 c 5 1
|
||||
|
||||
file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
BIN
ramdisk/initramfs/musl_riscv64/e2fsck
Executable file
BIN
ramdisk/initramfs/musl_riscv64/e2fsck
Executable file
Binary file not shown.
@@ -86,6 +86,8 @@ then
|
||||
fi
|
||||
|
||||
mkdir /realroot
|
||||
e2fsck -fvp /dev/mmcblk0p2
|
||||
resize2fs /dev/mmcblk0p2
|
||||
mount -o rw /dev/mmcblk0p2 /realroot
|
||||
mfail="$?"
|
||||
|
||||
|
||||
BIN
ramdisk/initramfs/musl_riscv64/resize2fs
Executable file
BIN
ramdisk/initramfs/musl_riscv64/resize2fs
Executable file
Binary file not shown.
Reference in New Issue
Block a user