index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-28 10:35:05 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-28 10:35:05 -0300 |
commit | 50cab06b8494b6c414b241cd03a25a80c92c835b (patch) | |
tree | 203433c10874c5c48307e5c1b801a5c164efa8ce /archiso/hooks | |
parent | 87f3297ea37a4b8c80e4f7d0ab77b80f130e8362 (diff) |
-rw-r--r-- | archiso/hooks/archiso | 9 | ||||
-rw-r--r-- | archiso/hooks/archiso_loop_mnt | 6 |
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index 5d9e5df..f446bd2 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -167,11 +167,7 @@ archiso_mount_handler() { _init_loop_dev - if [[ "${archisodevice}" -ef "${cow_device}" ]]; then - _mnt_dev "${archisodevice}" "/run/archiso/bootmnt" - else - _mnt_dev "${archisodevice}" "/run/archiso/bootmnt" "-r" - fi + _mnt_dev "${archisodevice}" "/run/archiso/bootmnt" "-r" if [[ ! -f "${aitab}" ]]; then echo "ERROR: '${aitab}' file does not exist." @@ -203,7 +199,8 @@ archiso_mount_handler() { fi if [[ -n "${cow_device}" ]]; then - _mnt_dev "${cow_device}" "/run/archiso/cowspace" + _mnt_dev "${cow_device}" "/run/archiso/cowspace" "-r" + mount -o remount,rw "/run/archiso/cowspace" else msg ":: Mounting /run/archiso/cowspace (tmpfs) filesystem, size=${cowspace_size}..." mkdir -p /run/archiso/cowspace diff --git a/archiso/hooks/archiso_loop_mnt b/archiso/hooks/archiso_loop_mnt index c1b25df..e52dc69 100644 --- a/archiso/hooks/archiso_loop_mnt +++ b/archiso/hooks/archiso_loop_mnt @@ -11,11 +11,7 @@ archiso_loop_mount_handler () { newroot="${1}" msg ":: Setup a loop device from ${img_loop} located at device ${img_dev}" - if [[ "${img_dev}" -ef "${cow_device}" ]]; then - _mnt_dev "${img_dev}" "/run/archiso/img_dev" - else - _mnt_dev "${img_dev}" "/run/archiso/img_dev" "-r" - fi + _mnt_dev "${img_dev}" "/run/archiso/img_dev" "-r" _dev_loop=$(losetup -f) if ! losetup "${_dev_loop}" "/run/archiso/img_dev/${img_loop}"; then |