about summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-11 09:35:39 +0200
committerJuan RP <xtraeme@gmail.com>2014-05-11 09:35:39 +0200
commit340c8107eefcf2ec90dced9c8b4aec17d3cd70dd (patch)
treeb19c77d1b9de06e2019cf95dc252f4ff5a3bbf55 /mklive.sh.in
parent3b660f92901b4fb3d3f3f56ba8dadff1272573ac (diff)
downloadhrmpf-340c8107eefcf2ec90dced9c8b4aec17d3cd70dd.tar.gz
hrmpf-340c8107eefcf2ec90dced9c8b4aec17d3cd70dd.tar.xz
hrmpf-340c8107eefcf2ec90dced9c8b4aec17d3cd70dd.zip
mklive: load loop kmod in the grub stage instead.
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index aced9e7..3456436 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -192,6 +192,8 @@ generate_grub_efi_boot() {
     mkdir -p $GRUB_DIR/fonts
     cp -f $GRUB_DATADIR/unicode.pf2 $GRUB_DIR/fonts
 
+    modprobe -q loop
+
     # Create EFI vfat image.
     dd if=/dev/zero of=$GRUB_DIR/efiboot.img bs=1024 count=4096  >>$LOGFILE 2>&1
     mkfs.vfat -F12 -S 512 -n "grub_uefi" "$GRUB_DIR/efiboot.img" >>$LOGFILE 2>&1
@@ -213,7 +215,6 @@ generate_grub_efi_boot() {
 
 generate_squashfs() {
     # Find out required size for the rootfs and create an ext3fs image off it.
-    modprobe -q loop
     ROOTFS_SIZE=$(du -sk "$ROOTFS"|awk '{print $1}')
     mkdir -p "$BUILDDIR/tmp/LiveOS"
     dd if=/dev/zero of="$BUILDDIR/tmp/LiveOS/ext3fs.img" \