initfs: support for modloop boot option
This commit is contained in:
parent
7107c179aa
commit
83151c3bbb
@ -121,7 +121,12 @@ mount $mount_opts /dev/$ALPINE_DEV $ALPINE_MNT >/dev/null 2>&1
|
|||||||
eend $?
|
eend $?
|
||||||
ebegin "Mounting loopback device for kernel modules"
|
ebegin "Mounting loopback device for kernel modules"
|
||||||
modprobe loop
|
modprobe loop
|
||||||
mount -o loop,ro -t cramfs $ALPINE_MNT/$KOPT_BOOT_IMAGE.cmg /.modloop
|
if [ -n "$KOPT_modloop" ]; then
|
||||||
|
modloop=$KOPT_modloop
|
||||||
|
else
|
||||||
|
modloop=$KOPT_BOOT_IMAGE.cmg
|
||||||
|
fi
|
||||||
|
mount -o loop,ro -t cramfs $ALPINE_MNT/$modloop /.modloop
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ "$rc" = 0 ]; then
|
if [ "$rc" = 0 ]; then
|
||||||
rm -rf /lib/modules
|
rm -rf /lib/modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user