summaryrefslogtreecommitdiff
path: root/scripts/rename-image.pl
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-08 12:27:08 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-08 12:27:08 -0500
commit59240c87059fd207b3ec38238851f6fe6982e48c (patch)
treec308dcd9622c3f748bc2da542eff9328b4548f8c /scripts/rename-image.pl
parentb4275461305f74798c7805ce2a5d25105e82caea (diff)
downloadvyatta-op-59240c87059fd207b3ec38238851f6fe6982e48c.tar.gz
vyatta-op-59240c87059fd207b3ec38238851f6fe6982e48c.zip
Update debian live mountpoint directories.
Diffstat (limited to 'scripts/rename-image.pl')
-rw-r--r--scripts/rename-image.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rename-image.pl b/scripts/rename-image.pl
index 2c77d70..591c29d 100644
--- a/scripts/rename-image.pl
+++ b/scripts/rename-image.pl
@@ -27,7 +27,7 @@ use File::Temp qw/ tempfile tempdir /;
use File::Copy;
use Sys::Syslog qw/:standard :macros/;
-my $UNION_BOOT = '/live/image/boot';
+my $UNION_BOOT = '/lib/live/mount/persistence/boot';
my $XEN_DEFAULT_IMAGE = "$UNION_BOOT/%%default_image";
my $old_name;
@@ -43,7 +43,7 @@ if (!defined($old_name) || !defined($new_name)) {
exit 1;
}
-my $image_path = "/live/image/boot";
+my $image_path = "/lib/live/mount/persistence/boot";
if (! -e "$image_path") {
# must be running on old non-image installed system
@@ -80,7 +80,7 @@ if ($cur_name =~ s/BOOT_IMAGE=\/boot\///) {
# On Xen/pygrub systems, we figure out the running version by
# looking at the bind mount of /boot.
$cur_name = `mount | awk '/on \\/boot / { print \$1 }'`;
- $cur_name =~ s/\/live\/image\/boot\///;
+ $cur_name =~ s/\/lib\/live\/mount\/persistence\/boot\///;
chomp($cur_name);
}
}