index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | nl6720 <nl6720@gmail.com> | 2022-01-10 16:19:05 +0200 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2022-01-10 16:19:05 +0200 |
commit | 697d750a64dbece971f8a33234a11a769dfdeda9 (patch) | |
tree | fd6ca665244e5638a2dd2d48325ef040f3494fda | |
parent | a4c9d8c3aa25fce0d1fb98be4150ebd25ec99e4b (diff) | |
parent | 57a8d9bb182295a3f83be2e06148c94261385dff (diff) |
-rw-r--r-- | hooks/archiso | 5 |
diff --git a/hooks/archiso b/hooks/archiso index 59c5765..7e40077 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -244,7 +244,10 @@ archiso_mount_handler() { fi if [ -n "${cow_device}" ]; then - _mnt_dev "${cow_device}" "/run/archiso/cowspace" "-w" "${cow_flags}" + # Mount cow_device read-only at first and remount it read-write right after. This prevents errors when the + # device is already mounted read-only somewhere else (e.g. if cow_device and archisodevice are the same). + _mnt_dev "${cow_device}" "/run/archiso/cowspace" "-r" "${cow_flags}" + mount -o remount,rw "/run/archiso/cowspace" else msg ":: Mounting /run/archiso/cowspace (tmpfs) filesystem, size=${cow_spacesize}..." mkdir -p /run/archiso/cowspace |