index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Hesse <mail@eworm.de> | 2016-02-02 15:45:48 +0100 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@gmail.com> | 2016-02-04 23:13:28 -0300 |
commit | 98c50484705c3e24fc907187e71d5bd03cf6fe5b (patch) | |
tree | 39a4a6736bff45276514ab9838ab0503cbd1d7d1 /hooks/archiso_loop_mnt | |
parent | e7ea394e5181de37a403b29e55d89afc34fdb867 (diff) |
-rw-r--r-- | hooks/archiso_loop_mnt | 3 |
diff --git a/hooks/archiso_loop_mnt b/hooks/archiso_loop_mnt index f95a47d..2e99404 100644 --- a/hooks/archiso_loop_mnt +++ b/hooks/archiso_loop_mnt @@ -2,6 +2,7 @@ run_hook () { [[ -n "${img_label}" ]] && img_dev="/dev/disk/by-label/${img_label}" + [[ -z "${img_flags}" ]] && img_flags="defaults" if [[ -n "${img_dev}" && -n "${img_loop}" ]]; then mount_handler="archiso_loop_mount_handler" fi @@ -13,7 +14,7 @@ archiso_loop_mount_handler () { local _dev_loop msg ":: Setup a loop device from ${img_loop} located at device ${img_dev}" - _mnt_dev "${img_dev}" "/run/archiso/img_dev" "-r" + _mnt_dev "${img_dev}" "/run/archiso/img_dev" "-r" "${img_flags}" if [[ "${copytoram}" != "y" ]]; then echo $(readlink -f ${img_dev}) >> /run/archiso/used_block_devices fi |