Skip to content

Commit 2f939c7

Browse files
committed
Start lived before regular disk drivers
This ensures that it takes priority when mounting the rootfs, preventing hangs in live mode if a disk driver hangs when trying to access it.
1 parent 2dfe26c commit 2f939c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

recipes/core/base-initfs/init.rc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ fbbootlogd
2121
inputd -A 1
2222
fbcond 2
2323

24+
# Live disk
25+
# Note: Needs to start before drivers to ensure it gets priority when redoxfs searches for disks
26+
lived
27+
unset DISK_LIVE_ADDR DISK_LIVE_SIZE
28+
2429
# Drivers
2530
run /scheme/initfs/etc/init_drivers.rc
2631
unset RSDP_ADDR RSDP_SIZE
2732

2833
# Mount rootfs
29-
lived
30-
unset DISK_LIVE_ADDR DISK_LIVE_SIZE
3134
redoxfs --uuid $REDOXFS_UUID file $REDOXFS_BLOCK
3235
unset REDOXFS_UUID REDOXFS_BLOCK REDOXFS_PASSWORD_ADDR REDOXFS_PASSWORD_SIZE
3336

0 commit comments

Comments
 (0)