-----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 iD8DBQFIjxJShmd3WOiFct4RCqtwAJ0d1igC6wf27Jedhx4a1jX8t8Y6dQCgtXVB 6BLXIvs/imXfQAfdvOV3pRc= =8Af3 -----END PGP SIGNATURE----- _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list