summaryrefslogtreecommitdiff
path: root/archiso/initcpio
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-02 09:34:05 +0200
committerErich Eckner <git@eckner.net>2018-07-02 09:34:05 +0200
commit637b26fb466c702e29d93666ce02907d4c0bb97b (patch)
treec1b116fb25fafcb51f64242441eaebc25c577a4c /archiso/initcpio
parentfbbca2204022368943d735d4e26aa3662527dbf6 (diff)
parenta00ba0f49921fb19ac1fb77b50d0ed74e04ac062 (diff)
downloadarchiso32-637b26fb466c702e29d93666ce02907d4c0bb97b.tar.xz
Merge remote-tracking branch 'upstream/master'i686-v36
Diffstat (limited to 'archiso/initcpio')
-rw-r--r--archiso/initcpio/hooks/archiso4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiso/initcpio/hooks/archiso b/archiso/initcpio/hooks/archiso
index 753e3da..5c56561 100644
--- a/archiso/initcpio/hooks/archiso
+++ b/archiso/initcpio/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
}