Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/initcpio/hooks/archiso_loop_mnt
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-02-02 15:45:48 +0100
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2016-02-04 23:13:28 -0300
commit57251837166b25e07f39b203d8bb8f5596188f23 (patch)
tree67f366f5c25eddce7b6c4293b4e3f50dbc2b2124 /archiso/initcpio/hooks/archiso_loop_mnt
parent03c296cb4f031148f657b8924460a30c5c9dfecc (diff)
fix boot parameters for mount options
Fixes: 03c296cb4f031148f657b8924460a30c5c9dfecc Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'archiso/initcpio/hooks/archiso_loop_mnt')
-rw-r--r--archiso/initcpio/hooks/archiso_loop_mnt3
1 files changed, 2 insertions, 1 deletions
diff --git a/archiso/initcpio/hooks/archiso_loop_mnt b/archiso/initcpio/hooks/archiso_loop_mnt
index f95a47d..2e99404 100644
--- a/archiso/initcpio/hooks/archiso_loop_mnt
+++ b/archiso/initcpio/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