index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-10-26 01:35:05 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-10-26 02:02:59 -0300 |
commit | d69ea15142267e891c3ba22dd0d546c029341914 (patch) | |
tree | 8aebbe6613de07f849e71bcd71e98550ccf23045 /archiso/hooks | |
parent | 16f4fe71cf0d2e8562c3684333592218e755a597 (diff) |
-rw-r--r-- | archiso/hooks/archiso | 13 |
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index 8ff23a3..aeaded2 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -49,6 +49,13 @@ run_hook () if [ "x${ramdisk_size}" = "x" ]; then ramdisk_size="75%" fi + + if [ "x${isomounts}" != "x" ]; then + isomounts="/bootmnt/${isomounts}" + else + isomounts="/bootmnt/isomounts" + fi + msg -n ":: Mounting tmpfs, size=${ramdisk_size}..." mount -t tmpfs -o "size=${ramdisk_size}" tmpfs /tmpfs msg "done." @@ -73,10 +80,10 @@ run_hook () _FSTYPE=$FSTYPE fi if mount -r -t "${_FSTYPE}" /dev/archiso /bootmnt >/dev/null 2>&1; then - if [ -e "/bootmnt/isomounts" ]; then + if [ -e "${isomounts}" ]; then echo "SUCCESS: Mounted archiso volume successfully." else - echo "ERROR: Mounting was successful, but the isomounts file does not exist." + echo "ERROR: Mounting was successful, but the ${isomounts} file does not exist." exit 1 fi else @@ -112,7 +119,7 @@ run_hook () elif [ "${type}" = "squashfs" ]; then _mnt_squashfs "/bootmnt/${img}" "${mountpoint}" fi - done < "/bootmnt/isomounts" + done < "${isomounts}" # Bind our bootmnt dir into the live system _mnt_bind /bootmnt /bootmnt |