summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-08 11:06:17 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-08 11:06:17 -0500
commit0c77160cd5e22714c2373e9554998c140b9c0bdd (patch)
tree3974d4f4ad169f55e01ad8184cb7e7dff22ee73e /scripts
parent86afea56242bfe3c18cca7a7adc5477aba7ee265 (diff)
downloadvyatta-op-0c77160cd5e22714c2373e9554998c140b9c0bdd.tar.gz
vyatta-op-0c77160cd5e22714c2373e9554998c140b9c0bdd.zip
Update paths in del_non_image_files function.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-boot-image.pl18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/vyatta-boot-image.pl b/scripts/vyatta-boot-image.pl
index a4c0169..0a15bb0 100755
--- a/scripts/vyatta-boot-image.pl
+++ b/scripts/vyatta-boot-image.pl
@@ -431,15 +431,15 @@ sub del_non_image_files {
system("echo Deleting disk-based system files at: `date` >> $logfile");
system("echo Run by: `whoami` >> $logfile");
- foreach my $entry (glob("/live/image/*")) {
- if ($entry eq "/live/image/boot") {
- print "Skipping $entry.\n";
- } else {
- print "Deleting $entry...";
- system ("echo deleting $entry >> $logfile");
- system ("rm -rf $entry >> $logfile 2>&1");
- print "\n";
- }
+ foreach my $entry (glob("/lib/live/mount/persistence/*")) {
+ if ($entry eq "/lib/live/mount/persistence/boot") {
+ print "Skipping $entry.\n";
+ } else {
+ print "Deleting $entry...";
+ system ("echo deleting $entry >> $logfile");
+ system ("rm -rf $entry >> $logfile 2>&1");
+ print "\n";
+ }
}
system ("echo done at: `date` >> $logfile");
}