FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 01-13-2012, 02:10 PM
"Brian C. Lane"
 
Default liveinst: Check for live-baseloop LIVE_BLOCK

From: "Brian C. Lane" <bcl@redhat.com>

---
data/liveinst/liveinst | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/data/liveinst/liveinst b/data/liveinst/liveinst
index 930461f..ae7dd64 100755
--- a/data/liveinst/liveinst
+++ b/data/liveinst/liveinst
@@ -41,11 +41,13 @@ if [[ "$LIVECMD $*" =~ "--liveinst" ]]; then
LIVE_INSTALL=1
fi

-
+# Try to sort out where the live device is
if [ -z "$LIVE_BLOCK" ]; then
- if [ -b "/dev/mapper/live-osimg-min" ]; then
+ if [ -b "/run/initramfs/live-baseloop" ]; then
+ LIVE_BLOCK="/run/initramfs/live-baseloop"
+ elif [ -b "/dev/mapper/live-osimg-min" ]; then
LIVE_BLOCK="/dev/mapper/live-osimg-min"
- else
+ elif [ -b "/dev/live-osimg" ]; then
LIVE_BLOCK="/dev/live-osimg"
fi
fi
--
1.7.6.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-18-2012, 03:38 PM
Chris Lumens
 
Default liveinst: Check for live-baseloop LIVE_BLOCK

> diff --git a/data/liveinst/liveinst b/data/liveinst/liveinst
> index 930461f..ae7dd64 100755
> --- a/data/liveinst/liveinst
> +++ b/data/liveinst/liveinst
> @@ -41,11 +41,13 @@ if [[ "$LIVECMD $*" =~ "--liveinst" ]]; then
> LIVE_INSTALL=1
> fi
>
> -
> +# Try to sort out where the live device is
> if [ -z "$LIVE_BLOCK" ]; then
> - if [ -b "/dev/mapper/live-osimg-min" ]; then
> + if [ -b "/run/initramfs/live-baseloop" ]; then
> + LIVE_BLOCK="/run/initramfs/live-baseloop"
> + elif [ -b "/dev/mapper/live-osimg-min" ]; then
> LIVE_BLOCK="/dev/mapper/live-osimg-min"
> - else
> + elif [ -b "/dev/live-osimg" ]; then
> LIVE_BLOCK="/dev/live-osimg"
> fi
> fi

Looks fine.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org