diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-02-08 11:06:17 -0500 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-02-08 11:06:17 -0500 |
commit | 0c77160cd5e22714c2373e9554998c140b9c0bdd (patch) | |
tree | 3974d4f4ad169f55e01ad8184cb7e7dff22ee73e /scripts | |
parent | 86afea56242bfe3c18cca7a7adc5477aba7ee265 (diff) | |
download | vyatta-op-0c77160cd5e22714c2373e9554998c140b9c0bdd.tar.gz vyatta-op-0c77160cd5e22714c2373e9554998c140b9c0bdd.zip |
Update paths in del_non_image_files function.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-boot-image.pl | 18 |
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"); } |