index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Hesse <mail@eworm.de> | 2018-06-29 11:16:19 +0200 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@gmail.com> | 2018-06-29 13:08:24 -0300 |
commit | 65536f1f6cfc56a92db6bd0b0f887431e03bee22 (patch) | |
tree | 577f96879246906336ebe7c8fc187f4042edaeb7 | |
parent | e595fd1690b029922d4a2bffdfbfacbc82f87e5e (diff) |
-rw-r--r-- | hooks/archiso | 4 |
diff --git a/hooks/archiso b/hooks/archiso index 753e3da..5c56561 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -33,6 +33,10 @@ _mnt_dmsnapshot() { dmsetup create ${dm_snap_name} --table "0 ${ro_dev_size} snapshot ${ro_dev} ${rw_dev} ${cow_persistent} ${cow_chunksize}" + if [[ "${cow_persistent}" != "P" ]]; then + rm -f "/run/archiso/cowspace/${cow_directory}/${img_name}.cow" + fi + _mnt_dev "/dev/mapper/${dm_snap_name}" "${newroot}${mnt}" "-w" "defaults" echo $(readlink -f /dev/mapper/${dm_snap_name}) >> /run/archiso/used_block_devices } |