From a242d8f29a1b3a6c24f6e2dffbd9f78571bb1a69 Mon Sep 17 00:00:00 2001 From: David P Date: Tue, 17 Jul 2018 13:42:47 -0400 Subject: Release parabolaiso-v36 Signed-off-by: David P --- parabolaiso/initcpio/hooks/parabolaiso | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parabolaiso/initcpio') diff --git a/parabolaiso/initcpio/hooks/parabolaiso b/parabolaiso/initcpio/hooks/parabolaiso index ef79b2b..6499310 100644 --- a/parabolaiso/initcpio/hooks/parabolaiso +++ b/parabolaiso/initcpio/hooks/parabolaiso @@ -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/parabolaiso/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/parabolaiso/used_block_devices } -- cgit v1.2.2