Skip to content

Commit 7f98a25

Browse files
committed
kernel: set CONFIG_*_FS & CONFIG_VIRTIO_BLK=y in linux.config
- CONFIG_VIRTIO_BLK=y - CONFIG_XFS_FS=y - CONFIG_EXT3_FS=y - CONFIG_EXT4_FS=y Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
1 parent e7e3f7d commit 7f98a25

File tree

3 files changed

+310
-9
lines changed

3 files changed

+310
-9
lines changed

busybox.rcS

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/bin/sh
22
mount -t proc none /proc
33
mount -t sysfs none /sys
4+
5+
mknod /dev/vda b 254 0
6+
47
ip link set eth0 up
58
ip addr add {{ GUEST_IPV4_ADDR }} dev eth0
9+
10+
# DIRTY HACK:
11+
#
12+
# Forcing /linuxrc to stop processing here and start /bin/sh. Without it,
13+
# kernel will try to mount the disk provided by virtio-blk as rootfs and
14+
# finally panic.
15+
#
16+
# [ 559.258478][ T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
17+
# [ 559.258478][ T1] Kernel Offset: disabled
18+
# [ 559.258478][ T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
19+
exec /bin/sh

0 commit comments

Comments
 (0)