Skip to content

Commit

Permalink
v6.25
Browse files Browse the repository at this point in the history
+ DietPi-RAMdisk | Before storing DietPi to disk, remove status files that are recreated on boot/demand
  • Loading branch information
MichaIng authored Jul 3, 2019
1 parent 88a27bf commit 2f64b16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dietpi/func/dietpi-ramdisk
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@
# - Remove old DietPi form disk before storing new DietPi from RAM
#rm -R $FP_DISK/dietpi # Skip this to prevent unrecoverable removal of DietPi in case of error while copying to RAM

# - Remove status files that are recreated on boot/demand
rm -f $FP_RAM/dietpi/.{update_available,timesync_exit_status}

# - Store DietPi to disk
cp -Rf $FP_RAM/* $FP_DISK/ || EXIT_CODE=1

Expand Down

0 comments on commit 2f64b16

Please sign in to comment.