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 > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-04-2010, 07:42 AM
Radek Vykydal
 
Default Default to /images/install.img if no dir is given in stage2=hd: (#528809)

This should (partly) fix installation from boot.iso dd'ed on USB.
The BZ from comment is for Fedora, there is also corresponding rhel6 BZ
(#549398), but see note (2) below.

(1) If not specified in stage2= parameter, stage2 had to be set in UI which made
(due to invalidRepoParam set to 1 in hdinstall.c) --repo parameter for stage 2
reset from stage2 ("hd:...") whereas in this case (boot.iso) the parameter is
expected to be empty (meaning: use the repos in /etc/yum.repos.d).

(2) boot.iso options for rhel contain askmethod anyway (unlike in Fedora) so
stage2 will be set in UI anyway and thus --repo will be reset from
stage2 value to "hd:..." again

(3) UI asking can happen also if the usb device is not settled yet when trying to
mount stage 2.

(4) I couldn't came up with any case of "stage2=hd:" case where we wouldn't
want the proposed change (the default).

Another option to approach the bug could be to append "/images/install.img" to
"hd:LABEL="XXX" in buildinstall.
---
loader/hdinstall.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/loader/hdinstall.c b/loader/hdinstall.c
index ea39095..4397dc2 100644
--- a/loader/hdinstall.c
+++ b/loader/hdinstall.c
@@ -151,8 +151,11 @@ char * mountHardDrive(struct installMethod * method,
/* if exist, duplicate */
if (kspartition)
kspartition = strdup(kspartition);
- if (ksdirectory)
+ if (ksdirectory) {
ksdirectory = strdup(ksdirectory);
+ } else {
+ ksdirectory = strdup("/images/install.img");
+ }

if (!kspartition || !ksdirectory) {
logMessage(ERROR, "missing partition or directory specification");
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-04-2010, 01:53 PM
Ales Kozumplik
 
Default Default to /images/install.img if no dir is given in stage2=hd: (#528809)

On 03/04/2010 09:42 AM, Radek Vykydal wrote:

This should (partly) fix installation from boot.iso dd'ed on USB.
The BZ from comment is for Fedora, there is also corresponding rhel6 BZ
(#549398), but see note (2) below.

(1) If not specified in stage2= parameter, stage2 had to be set in UI which made
(due to invalidRepoParam set to 1 in hdinstall.c) --repo parameter for stage 2
reset from stage2 ("hd:...") whereas in this case (boot.iso) the parameter is
expected to be empty (meaning: use the repos in /etc/yum.repos.d).

(2) boot.iso options for rhel contain askmethod anyway (unlike in Fedora) so
stage2 will be set in UI anyway and thus --repo will be reset from
stage2 value to "hd:..." again

(3) UI asking can happen also if the usb device is not settled yet when trying to
mount stage 2.

(4) I couldn't came up with any case of "stage2=hd:" case where we wouldn't
want the proposed change (the default).

Another option to approach the bug could be to append "/images/install.img" to
"hd:LABEL="XXX" in buildinstall.
---
loader/hdinstall.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/loader/hdinstall.c b/loader/hdinstall.c
index ea39095..4397dc2 100644
--- a/loader/hdinstall.c
+++ b/loader/hdinstall.c
@@ -151,8 +151,11 @@ char * mountHardDrive(struct installMethod * method,
/* if exist, duplicate */
if (kspartition)
kspartition = strdup(kspartition);
- if (ksdirectory)
+ if (ksdirectory) {
ksdirectory = strdup(ksdirectory);
+ } else {
+ ksdirectory = strdup("/images/install.img");
+ }

if (!kspartition || !ksdirectory) {
logMessage(ERROR, "missing partition or directory specification");


Ack.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-04-2010, 02:57 PM
James Laska
 
Default Default to /images/install.img if no dir is given in stage2=hd: (#528809)

On Thu, 2010-03-04 at 09:42 +0100, Radek Vykydal wrote:
> This should (partly) fix installation from boot.iso dd'ed on USB.
> The BZ from comment is for Fedora, there is also corresponding rhel6 BZ
> (#549398), but see note (2) below.
>
> (1) If not specified in stage2= parameter, stage2 had to be set in UI which made
> (due to invalidRepoParam set to 1 in hdinstall.c) --repo parameter for stage 2
> reset from stage2 ("hd:...") whereas in this case (boot.iso) the parameter is
> expected to be empty (meaning: use the repos in /etc/yum.repos.d).
>
> (2) boot.iso options for rhel contain askmethod anyway (unlike in Fedora) so
> stage2 will be set in UI anyway and thus --repo will be reset from
> stage2 value to "hd:..." again
>
> (3) UI asking can happen also if the usb device is not settled yet when trying to
> mount stage 2.
>
> (4) I couldn't came up with any case of "stage2=hd:" case where we wouldn't
> want the proposed change (the default).
>
> Another option to approach the bug could be to append "/images/install.img" to
> "hd:LABEL="XXX" in buildinstall.

I've been meaning to ask about this for URL stage2= methods. For
instance, I always make the mistake of doing
"stage2=http://server1/path/to/images repo=http://server2/path/to/repo"
and forget I need to be exact with the stage2 filename.

How would you feel about modifying the stage2 access methods so that if
the provided stage2 URL doesn't reference a file, always append
"/images/install.img" and retry?

Thanks,
James

> ---
> loader/hdinstall.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/loader/hdinstall.c b/loader/hdinstall.c
> index ea39095..4397dc2 100644
> --- a/loader/hdinstall.c
> +++ b/loader/hdinstall.c
> @@ -151,8 +151,11 @@ char * mountHardDrive(struct installMethod * method,
> /* if exist, duplicate */
> if (kspartition)
> kspartition = strdup(kspartition);
> - if (ksdirectory)
> + if (ksdirectory) {
> ksdirectory = strdup(ksdirectory);
> + } else {
> + ksdirectory = strdup("/images/install.img");
> + }
>
> if (!kspartition || !ksdirectory) {
> logMessage(ERROR, "missing partition or directory specification");


_______________________________________________
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 03:19 PM.

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