ramdisk: add fsck in initramfs

This commit is contained in:
Lu
2024-05-10 10:10:05 +08:00
parent 66fedc1a27
commit 90f973b98b
7 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

Binary file not shown.

View File

@@ -86,6 +86,8 @@ then
fi
mkdir /realroot
e2fsck -fvp /dev/mmcblk0p2
resize2fs /dev/mmcblk0p2
mount -o rw /dev/mmcblk0p2 /realroot
mfail="$?"

Binary file not shown.