diff options
author | Deepti Kulkarni <deepti@vyatta.com> | 2012-04-12 03:08:38 -0700 |
---|---|---|
committer | Deepti Kulkarni <deepti@vyatta.com> | 2012-04-12 03:08:38 -0700 |
commit | a3c90c3227a51561f1da90ddce81e1afad698e33 (patch) | |
tree | f02b89b8092a06e9b9daf9ed7ba81bdb0a2fcc45 /scripts/show-image-storage.pl | |
parent | 9982bad6bfabbe5a2162988eccd36bd6445a8b90 (diff) | |
download | vyatta-op-a3c90c3227a51561f1da90ddce81e1afad698e33.tar.gz vyatta-op-a3c90c3227a51561f1da90ddce81e1afad698e33.zip |
bug fix for 5792 - Fix the op-mode system image commands for live-cd
Diffstat (limited to 'scripts/show-image-storage.pl')
-rw-r--r-- | scripts/show-image-storage.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/show-image-storage.pl b/scripts/show-image-storage.pl index 80294a5..f8de35e 100644 --- a/scripts/show-image-storage.pl +++ b/scripts/show-image-storage.pl @@ -41,7 +41,11 @@ sub better_units { # Figure out where the images live... my $imagedir = "/live/image/boot"; +my $livecd = "/live/image/live"; if (! -e $imagedir) { + if (-d $livecd) { + die "System running on Live-CD\n"; + } # Must be running on Old non-image system. $imagedir = "/boot"; if (! -e $imagedir) { |