diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-19 08:33:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-19 08:33:52 +0000 |
commit | 83151c3bbba336a392444ba42e2e198216e60571 (patch) | |
tree | 40060cd58cc645f0d22c6d368b0057dcbcf6c588 /initramfs-init | |
parent | 7107c179aa5f23295daf5c9e564d9b4be7e03d52 (diff) | |
download | abuild-83151c3bbba336a392444ba42e2e198216e60571.tar.gz abuild-83151c3bbba336a392444ba42e2e198216e60571.tar.bz2 abuild-83151c3bbba336a392444ba42e2e198216e60571.tar.xz abuild-83151c3bbba336a392444ba42e2e198216e60571.zip |
initfs: support for modloop boot option
Diffstat (limited to 'initramfs-init')
-rwxr-xr-x | initramfs-init | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/initramfs-init b/initramfs-init index 79016ee..a25aab2 100755 --- a/initramfs-init +++ b/initramfs-init @@ -121,7 +121,12 @@ mount $mount_opts /dev/$ALPINE_DEV $ALPINE_MNT >/dev/null 2>&1 eend $? ebegin "Mounting loopback device for kernel modules" 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=$? if [ "$rc" = 0 ]; then rm -rf /lib/modules |