Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/hooks
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-28 10:35:05 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-28 10:35:05 -0300
commit334db092b52e78a68d012ce2fa453ec243943c64 (patch)
treea016f729ff0a3a97496f2199a030dd9aa34f2f3e /archiso/hooks
parentf097724080a48e880728bcf8c57ef4a5433fbe44 (diff)
[archiso] Check if /run/archiso/bootmnt is a mountpoint.
In this way allow to mount /run/archiso/bootmnt from another hook, but still use the logic from the main mount_hook, skipping only this mount. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/hooks')
-rw-r--r--archiso/hooks/archiso2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index 839be9b..d03914a 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -167,7 +167,7 @@ archiso_mount_handler() {
_init_loop_dev
- _mnt_dev "${archisodevice}" "/run/archiso/bootmnt" "-r"
+ mountpoint -q "/run/archiso/bootmnt" || _mnt_dev "${archisodevice}" "/run/archiso/bootmnt" "-r"
if [[ ! -f "${aitab}" ]]; then
echo "ERROR: '${aitab}' file does not exist."