Parcourir la source

mklive.sh: dont error out if loop module cannot be loaded.

Juan RP il y a 10 ans
Parent
commit
f5af7c32bd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      mklive.sh.in

+ 1 - 1
mklive.sh.in

@@ -177,7 +177,7 @@ generate_grub_efi_boot() {
         -e "s|@@BOOT_CMDLINE@@|${BOOT_CMDLINE}|" \
         -e "s|@@LOCALE@@|${LOCALE}|" $GRUB_DIR/grub_void.cfg
 
-    modprobe -q loop
+    modprobe -q loop || :
 
     # Create EFI vfat image.
     dd if=/dev/zero of=$GRUB_DIR/efiboot.img bs=1024 count=4096  >>$LOGFILE 2>&1