Bug 859569
Summary: | anaconda loads stage2 install.img twice when booting into rescue mode from CD/DVD | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Timo Kokkonen <tjko> |
Component: | anaconda | Assignee: | Brian Lane <bcl> |
Status: | CLOSED ERRATA | QA Contact: | Ladislav Jozsa <ljozsa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3 | CC: | ljozsa, mbanas, sbueno |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | anaconda-13.21.200-1 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
Rescue mode unmounted the source iso before checking for .discinfo.
Consequence:
stage2 would be loaded twice, increasing the time to boot.
Fix:
Skip the check for .discinfo in rescue mode, it isn't needed for rescue anyway.
Result:
stage2 is only loaded once.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-21 09:54:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Timo Kokkonen
2012-09-21 23:25:57 UTC
Following patch to loader.c would seem to fix the issue (not sure if this is "correct" way to fix the problem though...) --- anaconda-13.21.176/loader/loader.c.orig 2012-06-12 12:40:09.000000000 -0700 +++ anaconda-13.21.176/loader/loader.c 2012-09-21 15:34:14.941896296 -0700 @@ -1309,7 +1309,7 @@ static char *doLoaderMain(struct loaderD * installation source. */ - if (!access("/mnt/stage2/.discinfo", R_OK)) { + if (!access("/mnt/stage2/.discinfo", R_OK) || FL_RESCUE(flags)) { skipLangKbd = 1; flags |= LOADER_FLAGS_NOPASS; When booting with initrd.img that contains the patched /sbin/loader, I get following log output: # cat /tmp/anaconda.log 17:13:15,550 INFO : kernel command line: initrd=initrd.img rescue BOOT_IMAGE=vmlinuz 17:13:15,550 DEBUG : readNetInfo /tmp/s390net not found, early return 17:13:15,550 INFO : anaconda version 13.21.176 on x86_64 starting 17:13:18,707 DEBUG : Saving module ipv6 17:13:18,707 DEBUG : Saving module iscsi_ibft 17:13:18,707 DEBUG : Saving module iscsi_boot_sysfs 17:13:18,707 DEBUG : Saving module pcspkr 17:13:18,707 DEBUG : Saving module edd 17:13:18,707 DEBUG : Saving module iscsi_tcp 17:13:18,707 DEBUG : Saving module libiscsi_tcp 17:13:18,707 DEBUG : Saving module libiscsi 17:13:18,707 DEBUG : Saving module scsi_transport_iscsi 17:13:18,707 DEBUG : Saving module squashfs 17:13:18,707 DEBUG : Saving module cramfs 17:13:18,708 DEBUG : probing buses 17:13:18,727 DEBUG : waiting for hardware to initialize 17:13:22,793 INFO : Trying to detect vendor driver discs 17:13:23,163 DEBUG : probing buses 17:13:23,179 DEBUG : waiting for hardware to initialize 17:13:26,563 INFO : trying to mount CD device /dev/sr0 on /mnt/stage2 17:13:26,566 INFO : drive status is CDS_DISC_OK 17:13:26,639 INFO : transferring /mnt/stage2/images/install.img to /tmp 17:14:13,417 INFO : mounted loopback device /mnt/runtime on /dev/loop0 as /tmp/install.img 17:14:13,417 INFO : Looking for updates in /mnt/stage2/images/updates.img 17:14:13,417 INFO : Looking for product in /mnt/stage2/images/product.img 17:14:13,734 INFO : mounted loopback device /tmp/product-disk on /dev/loop7 as /mnt/stage2/images/product.img 17:14:14,421 INFO : umounting loopback /tmp/product-disk /dev/loop7 17:14:14,480 INFO : Detected stage 2 image on CD (url: cdrom:///dev/sr0:/mnt/stage2) 17:14:21,128 DEBUG : going to set language to en_US.UTF-8 17:14:21,128 INFO : setting language to en_US.UTF-8 17:14:21,137 INFO : 53 keymaps are available 17:14:24,283 INFO : starting STEP_METHOD 17:14:24,283 DEBUG : loaderData->method is set, adding skipMethodDialog 17:14:24,283 DEBUG : skipMethodDialog is set 17:14:24,283 INFO : stage2 url is cdrom:///dev/sr0:/mnt/stage2 17:14:24,333 INFO : Loading SELinux policy 17:14:24,793 INFO : getting ready to spawn shell now 17:14:25,099 INFO : Running anaconda script /usr/bin/anaconda 17:14:27,742 INFO : using only installclass Red Hat Enterprise Linux Server 17:14:27,746 INFO : created new libuser.conf at /tmp/libuser.e8JvJD with instPath="/mnt/sysimage" This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Reproduced on RHEL6.4 GA, qa_ack+ Verified with anaconda-13.21.213-1.el6. install.img is transferred only once in rescue mode from CD/DVD. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1588.html |