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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-29-2008, 12:51 PM
Alexander Todorov
 
Default RFE: Support kickstart files in rescue mode - take 2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello folks,
I've done some more work on this feature and here's the result:

*) Add rescue command to pykickstart. Synopsis is:
~ rescue [--nomount | --romount]

*) In loader.c - always pass --kickstart <url> to stage 2

*) Add setRescueModeFromKickstart function in anaconda to handle the flag for
rescue mode from command line or kickstart. Similar to 'vnc'.

*) In anaconda process the kickstart file if present and we're going in rescue mode.

*) In rescue.py do:
~ - if nomount then execute %post else;
~ - mount rw by default or read only if kickstart tells us to
~ - write to the log instead of popping up windows
~ - at the end execute %post

What is tested with F9 and works is: boot with the following options on cmd line
and/or kickstart

cmd line | ks.cfg
- ---------------+--------
~ | rescue
~ rescue |
~ rescue | rescue
- ---------------+---------------------> shows that we properly enter rescue mode
rescue nomount |
rescue nomount | rescue
~ | rescue --nomount
- ---------------+---------------------> shows that nomount works properly
~ | rescue --nomount --romount -----> expected kickstart error
- ---------------+---------------------
~ | rescue --romount
- ---------------+----------------------> shows that read only mount works [1]

[1] - rescue --romount will work only when we have %post --nochroot. Looks like
it first does chroot and then saves the script text under /tmp for execution.
This fails as /tmp is on the chrooted read-only file system. Sounds expected to me.

Thanks,
Alexander.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFIjxJShmd3WOiFct4RCqtwAJ0d1igC6wf27Jedhx4a1j X8t8Y6dQCgtXVB
6BLXIvs/imXfQAfdvOV3pRc=
=8Af3
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 08-11-2008, 05:08 PM
Chris Lumens
 
Default RFE: Support kickstart files in rescue mode - take 2

> *) Add rescue command to pykickstart. Synopsis is:
> ~ rescue [--nomount | --romount]
>
> *) In loader.c - always pass --kickstart <url> to stage 2
>
> *) Add setRescueModeFromKickstart function in anaconda to handle the flag for
> rescue mode from command line or kickstart. Similar to 'vnc'.
>
> *) In anaconda process the kickstart file if present and we're going in rescue mode.
>
> *) In rescue.py do:
> ~ - if nomount then execute %post else;
> ~ - mount rw by default or read only if kickstart tells us to
> ~ - write to the log instead of popping up windows
> ~ - at the end execute %post
>
> What is tested with F9 and works is: boot with the following options on cmd line
> and/or kickstart

Committed and pushed. Thanks for the patch.

- 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 08:23 AM.

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