Destroy ZFS dataset before rename

This commit is contained in:
Jose committed 2019-11-22 07:44:10 -04:00
1 parent 13f1739f96
commit cbd40d2d85
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
====================== ======================
Version Description Version Description
1.0.14......Destroy ZFS dataset before rename.
1.0.13......Add ability to enable ZFS easily. 1.0.13......Add ability to enable ZFS easily.
1.0.12......Change tar archive extension. 1.0.12......Change tar archive extension.
1.0.11......Backup and Restore implementation changes. 1.0.11......Backup and Restore implementation changes.
+1 -1
View File
@@ -604,8 +604,8 @@ zfs_activate()
zfs create ${bastille_zfs_options} ${bastille_zfs_zpool}/${bastille_zfs_prefix} zfs create ${bastille_zfs_options} ${bastille_zfs_zpool}/${bastille_zfs_prefix}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to enable ZFS, reverting changes." echo "Failed to enable ZFS, reverting changes."
mv ${CWDIR}.old ${CWDIR}
zfs destroy ${bastille_zfs_zpool}/${bastille_zfs_prefix} zfs destroy ${bastille_zfs_zpool}/${bastille_zfs_prefix}
mv ${CWDIR}.old ${CWDIR}
else else
echo "Synchronizing '${BASTILLE_DIR}' data on new dataset" echo "Synchronizing '${BASTILLE_DIR}' data on new dataset"
rsync -a ${CWDIR}.old/ ${CWDIR}/ rsync -a ${CWDIR}.old/ ${CWDIR}/
+1 -1
View File
@@ -1 +1 @@
1.0.13 1.0.14