summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * Fix "memcheck=0" (and other store_true boot args)Will Woods2012-04-042-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | optparse.Option will ignore the value for options that have the action "store_true" or "store_false". This is fine if the boolean values match, but wrong otherwise (e.g. memcheck=yes sets memcheck=True, but so does memcheck=0). So: if we have a store_true option with a value that's False, skip the normal behavior and just set the value to False. As for store_false.. all our existing "store_false" options start with "no", which means that negating them yields a double-negative (e.g. nomemcheck=yes). We've decided that's just too confusing to accept. so nomemcheck=yes should still set memcheck=False. So we don't need to do anything special for "store_false".
| | | * write new options to zipl.confDan Horák2012-04-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | zipl now provides functionality originally provides by our patch and zipl.conf needs 2 variables set so the behaviour is the same. (cherry picked from commit 67b1dab5f588d3a92f327a9ecbdcde65d4da1960)
| | | * New version.Brian C. Lane2012-04-033-13/+18
| | | |
| | | * Revert "Wait for device activation / "online" hook if rd.neednet is set"Brian C. Lane2012-04-031-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 104c442a33098670065c2dd398db991f035babed. With this patch the network never comes up. Reverting it at least allows updates=http and ks=http to work.
| | | * Add missing os import to platform.pyBrian C. Lane2012-04-031-0/+1
| | | |
| | | * New version.Brian C. Lane2012-04-033-34/+52
| | | |
| | | * Don't allow /usr as a separate partition (#804913)Chris Lumens2012-04-031-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Brian C. Lane <bcl@redhat.com>
| | | * use /sys/class/dmi instead of dmidecodeBrian C. Lane2012-04-032-9/+2
| | | | | | | | | | | | | | | | | | | | removes dmidecode binary requirement from specfile and changes isMactel to read the information directly.
| | | * restore the GPT blacklist codeBrian C. Lane2012-04-032-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It ends up that setting the pmbr on GPT labeled disks only fixes some of the systems that have trouble booting from GPT. We still need to blacklist Lenovo systems from using GPT on BIOS systems. This also changes from using dmidecode to using /sys/class/dmi/ files.
| | | * add virtio rsyslogd logging to anacondaBrian C. Lane2012-04-032-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before noloader this was handled by loader. It detects a specific virtio path (org.fedoraproject.anaconda.log.0) and restarts rsyslogd to pass logs to the host via virtio. If the path doesn't exist this has no effect. This also switches to using systemctl to restart rsyslogd since HUP no longer works as of v5.
| | * | check for valid mountpoints (#748209)Brian C. Lane2012-04-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | _is_valid_format needs to also check the mountpoints to make sure they are valid. Without this it will accept a previously formatted EFI fs and let the install continue without having it mounted on /boot/efi
| | * | read flags using filename globsBrian C. Lane2012-04-051-1/+7
| | | | | | | | | | | | | | | | | | | | read flags from all the conf files in /run/initramfs/etc/cmdline.d/ And add support for filename globs to the read() method
| | * | use /sys/class/dmi instead of dmidecodeBrian C. Lane2012-04-042-9/+2
| | | | | | | | | | | | | | | | | | | | removes dmidecode binary requirement from specfile and changes isMactel to read the information directly.
| | * | restore the GPT blacklist codeBrian C. Lane2012-04-042-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It ends up that setting the pmbr on GPT labeled disks only fixes some of the systems that have trouble booting from GPT. We still need to blacklist Lenovo systems from using GPT on BIOS systems. This also changes from using dmidecode to using /sys/class/dmi/ files.
| | * | add virtio rsyslogd logging to anacondaBrian C. Lane2012-04-042-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before noloader this was handled by loader. It detects a specific virtio path (org.fedoraproject.anaconda.log.0) and restarts rsyslogd to pass logs to the host via virtio. If the path doesn't exist this has no effect. This also switches to using systemctl to restart rsyslogd since HUP no longer works as of v5.
| | * | Don't allow /usr as a separate partition (#804913)Chris Lumens2012-04-031-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Brian C. Lane <bcl@redhat.com>
| | * | Merge branch 'f17-branch'Will Woods2012-04-0311-49/+103
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * f17-branch: dracut/parse-kickstart: handle network --device=link (or none) dracut: fix kssendmac/inst.ks.sendmac Set ONBOOT=yes for at least one wired netdev by default (#806466) detect live backing device (#809342) Wait for device activation / "online" hook if rd.neednet is set Fix kickstart failure if ks is on the same disk as stage2 fix 'mount: Too many levels of symbolic links' error message support {stage2,repo}=.../path/to/file.img (#808499) dracut when_diskdev_appears: only run cmd once per device dracut: don't do kickstart twice, don't use root.info Don't use the bootloader config path to find the splash image (#807510)
| | | * dracut/parse-kickstart: handle network --device=link (or none)Will Woods2012-04-031-22/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you have a kickstart where your first network line has no device (or --device=link), we won't have a valid net.device ("" or "link", respectively.) Still a valid kickstart though, so we need to generate correct dracut args for that case. Also we need to set rd.neednet so the device always goes online in dracut (matching loader's behavior). This means we don't need to write ifcfg if net.device is empty: 1) empty 'net.device' is only valid for the first device, 2) first device always comes online, 3) online devices get ifcfg written by dracut. (It also means we don't need to touch /tmp/net.ifaces, since that happens in step 3.)
| | | * dracut: fix kssendmac/inst.ks.sendmacWill Woods2012-04-031-4/+8
| | | | | | | | | | | | | | | | | | | | Can't get MAC addresses until after the network modules have loaded, so schedule set_ks_sendmac to happen at the start of the mainloop.
| | | * Set ONBOOT=yes for at least one wired netdev by default (#806466)Will Woods2012-04-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | loader used to set ONBOOT=yes for any device it activated, so having an active netdev implied that at least one of them had ONBOOT=yes. This logic doesn't necessarily work anymore, so let's just check to see if any of them have ONBOOT=yes directly.
| | | * detect live backing device (#809342)David Lehman2012-04-032-40/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In F17 we now have /run/initramfs/live which, when mounted, is the install media being used. This uses that to add the disk to the list of protected devices. Signed-off-by: Brian C. Lane <bcl@redhat.com>
| | | * Wait for device activation / "online" hook if rd.neednet is setWill Woods2012-04-031-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're expecting network devices to come up, we need to tell dracut to wait for devices to activate before proceeding to stage 2, otherwise we won't have ifcfg files, and the NM handover will fail, and anaconda considers it a fatal error if a network device isn't active when the kickstart says it should be. (It would be nice if anaconda could set up the network itself so we didn't have to handle this all in initramfs..)
| | | * Fix kickstart failure if ks is on the same disk as stage2Will Woods2012-04-032-5/+22
| | | | | | | | | | | | | | | | | | | | Not too hard really - just check to see if the disk is already mounted, and don't bother mounting it again if it is.
| | | * fix 'mount: Too many levels of symbolic links' error messageWill Woods2012-04-031-1/+1
| | | |
| | | * support {stage2,repo}=.../path/to/file.img (#808499)Will Woods2012-04-034-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | preupgrade uses stage2=hd:XXX:/path/upgrade.img, so we need to handle that. stage2=XXX overrides repo=XXX, if both are present.
| | | * dracut when_diskdev_appears: only run cmd once per deviceWill Woods2012-04-033-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Use initqueue --unique to ensure the command can only be enqueued once. Also, make sure anaconda-diskroot gets the correct device name.
| | | * dracut: don't do kickstart twice, don't use root.infoWill Woods2012-04-033-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Empty "$kickstart" in run_kickstart, so we don't end up looking for the kickstart again - and don't run fetch-kickstart-disk if it already ran. Also, newer dracut doesn't bother with root.info so neither should we.
| | | * Don't use the bootloader config path to find the splash image (#807510)Peter Jones2012-04-021-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | On EFI the bootloader config file is in /boot/efi/EFI/redhat/grub.conf, but the splash image is still what the fedora-logos package put in /boot/grub/splash.xpm.gz , so use that path instead.
| | * | detect live backing device (#809342)David Lehman2012-04-032-40/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In F17 we now have /run/initramfs/live which, when mounted, is the install media being used. This uses that to add the disk to the list of protected devices. Signed-off-by: Brian C. Lane <bcl@redhat.com>
| | * | Don't use the bootloader config path to find the splash image (#807510)Peter Jones2012-04-021-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | On EFI the bootloader config file is in /boot/efi/EFI/redhat/grub.conf, but the splash image is still what the fedora-logos package put in /boot/grub/splash.xpm.gz , so use that path instead.
| | * | Merge 'f17-branch'Will Woods2012-03-3027-289/+2699
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings in the 'noloader' changes from f17-branch. The changelogs have been dropped from the specfile, but that was somewhat intentional. Conflicts: anaconda anaconda.spec.in configure.ac data/linuxrc.s390 data/systemd/Makefile.am data/systemd/anaconda.service data/systemd/anaconda.target data/systemd/anaconda@.service data/systemd/loader.service dracut/Makefile.am dracut/anaconda-lib.sh dracut/anaconda-netroot.sh dracut/kickstart-genrules.sh dracut/module-setup.sh dracut/parse-anaconda-kickstart.sh dracut/parse-anaconda-options.sh dracut/parse-anaconda-repo.sh dracut/parse-kickstart dracut/repo-genrules.sh po/anaconda.pot
| | | * New version.Brian C. Lane2012-03-283-11/+18
| | | |
| | | * makeupdates: install liveinst to /usr/sbinBrian C. Lane2012-03-281-0/+2
| | | | | | | | | | | | | | | | The liveinst script can now be updated by an updates.img
| | | * liveinst: adjust updates path (#807397)Brian C. Lane2012-03-281-3/+6
| | | | | | | | | | | | | | | | For F17 updates images are now relative to /
| | | * dracut: add missing spaces for module loading (#804522)Brian C. Lane2012-03-281-6/+7
| | | | | | | | | | | | | | | | Missed some needed spaces in the lists of modules.
| | | * Don't set MALLOC_PERTURB_ when calling grub2-install. (workaround #806784)Peter Jones2012-03-282-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With MALLOC_PERTURB_ set, we get: [anaconda root@testraid ~]# export MALLOC_PERTURB_=204 [anaconda root@testraid ~]# grub2-install --no-floppy /dev/mapper/nvidia_dejcgici /sbin/grub2-bios-setup: error: disk `hostdisk//dev/mapper/�����������������������������������������������������������������������������������������' not found. This is obviously bad, so we're going to work around it by not setting that for now.
| | | * New version.Brian C. Lane2012-03-273-17/+26
| | | |
| | | * make ks=file:... parse kickstart earlier (#806931)Will Woods2012-03-272-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ks=file:... was parsing the kickstart *after* the 'cmdline' hook finished, so the new arguments weren't being used. Move the parsing into the 'cmdline' hook so the new arguments can get used by the rest of dracut.
| | | * Let "root=..." override "repo=..."Will Woods2012-03-271-0/+3
| | | | | | | | | | | | | | | | | | | | If both "root" and "repo" are given, we should probably use the explicit root device rather than the one implied by "repo".
| | | * dracut cleanup: use consistent filenames for cmdline.d filesWill Woods2012-03-272-4/+4
| | | |
| | | * fix "strsep: command not found" error with repo:hd:.. (#806966)Will Woods2012-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The function is actually called "splitsep", not "strsep". Strong work, Will. Didn't you used to test things?
| | | * load modules needed by Anaconda (#804522)Brian C. Lane2012-03-273-1/+30
| | | | | | | | | | | | | | | | | | | | Anaconda expects a minimum set of modules to be loaded, things like raid1, etc.
| | | * Fix nfs/nfsiso (NM handover problems / empty net.ifaces)Will Woods2012-03-262-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 0544eff was supposed to make anaconda try to write net.ifaces whenever an interface came up, but because of a quoting error it *emptied* /tmp/net.ifaces instead. It also didn't handle adding things to net.ifaces correctly. This patch fixes both problems.
| | | * Format PReP partitionMark Hamzy2012-03-262-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes two bugs. The first is that the PReP partition is not created during a text mode install. The second is that the PReP partition needs to be zeroed out before grub is run. Grub verifies that no data exists on the partition before installation. (cherry picked from commit 00fa7bcc9e09a96d51039d112c3feadee9ade75a)
| | | * New version.Brian C. Lane2012-03-223-19/+40
| | | |
| | | * Revert "dracut: use /run/install/source for repodir"Brian C. Lane2012-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /mnt/install/source is used by anaconda to mount install media, if it finds the boot iso mounted there it will try to unmount it, which will fail since we are running from it. Leave it at install/repo so that this doesn't happen. This reverts commit 37144b9e86e801074fa4ae4656da458fe83f6e07.
| | | * Disable creation of btrfs filesystems aside from kickstart. (#787341)David Lehman2012-03-221-1/+1
| | | | | | | | | | | | | | | | (cherry picked from commit a54230199fecffa90add5854893816eab7722c5f)
| | | * fix text mode KeyError crash (#804483)Will Woods2012-03-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | anaconda didn't know how to deal with LANG=C. So if we have LANG=C, just treat it like we had no LANG set: reset to DEFAULT_LANG. Just to be sure, use TTYReset=yes in anaconda.service, which will make systemd reset the terminal to sane (and unicode-ready) settings. Finally, emit the magic control sequence to set UTF-8 output, which fixes the line-drawing characters in text-mode virtual terminals.
| | | * Default to text-mode if 'console=XXX' was provided (#804506)Will Woods2012-03-221-3/+8
| | | | | | | | | | | | | | | | | | | | loader used to set '--text' based on the boot args. But we can parse our own boot args now, thank you very much.
| | | * dracut startup: "Loading $product $version $arch installer..."Will Woods2012-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If you boot with 'quiet', things are quiet. Almost.. *too* quiet. Add a startup message. If "$product" or "$version" can't be found the message will just be "Loading $arch installer..." which is pretty OK.