summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-07-17do not wait_for_dev for the root deviceHarald Hoyer1-2/+4
it's specified on the kernel command line
2013-07-17systemd: add systemd-fsck-root.serviceHarald Hoyer1-0/+1
2013-07-17rootfs-block: do not touch root-fsckHarald Hoyer1-1/+0
in systemd environments, we use systemd in the initramfs
2013-07-17i18n: do not moan about missing kbd directoryHarald Hoyer1-6/+0
2013-07-17base: remove RD_TIMESTAMPHarald Hoyer1-7/+0
2013-07-15dracut.sh: Support early microcode loading.Konrad Rzeszutek Wilk2-4/+76
On Wed, Jul 10, 2013 at 10:58:15AM -0400, Konrad Rzeszutek Wilk wrote: > On Wed, Jul 10, 2013 at 09:37:11AM +0200, Harald Hoyer wrote: > > On 07/10/2013 02:29 AM, Yu, Fenghua wrote: > > >> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com] > > >> Sent: Tuesday, July 09, 2013 12:24 PM > > >> Implement it per Linux kernel Documentation/x86/early-microcode.txt > > >> (from v3.11-rc0): > > [...] > > > This patch works fine with one microcode blob in binary format. There are situations that the microcode is not delivered in one blob in binary format: > > > > > > First, each microcode patch is one file instead all microcode patches are in one big blob. Secondly, old delivered microcode file is in ascii format. > > > > > > To handle those formats, additional code needs to convert the formats into one big binary microcode blob. I'm not sure if we should consider the code and if we should put the code in dracut. > > > > > > Thanks. > > > > > > -Fenghua > > > > > > > > > $ ls /lib/firmware/amd-ucode > > microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_solaris.bin > > Right, so all of those blobs (for AMD) get stuck in AuthenticAMD.bin. > > > $ ls /lib/firmware/intel-ucode > > 06-03-02 06-06-00 06-07-02 06-08-0a 06-0b-04 06-0f-06 06-16-01 06-1c-02 > > 06-25-02 06-2d-07 0f-01-02 0f-02-09 0f-04-03 0f-04-0a > > 06-05-00 06-06-05 06-07-03 06-09-05 06-0d-06 06-0f-07 06-17-06 06-1c-0a > > 06-25-05 06-2f-02 0f-02-04 0f-03-02 0f-04-04 0f-06-02 > > 06-05-01 06-06-0a 06-08-01 06-0a-00 06-0e-08 06-0f-0a 06-17-07 06-1d-01 > > 06-26-01 06-3a-09 0f-02-05 0f-03-03 0f-04-07 0f-06-04 > > 06-05-02 06-06-0d 06-08-03 06-0a-01 06-0e-0c 06-0f-0b 06-17-0a 06-1e-04 > > 06-2a-07 0f-00-07 0f-02-06 0f-03-04 0f-04-08 0f-06-05 > > 06-05-03 06-07-01 06-08-06 06-0b-01 06-0f-02 06-0f-0d 06-1a-04 06-1e-05 > > 06-2d-06 0f-00-0a 0f-02-07 0f-04-01 0f-04-09 0f-06-08 > > And all of those get catted in GenuineIntel.bin. > > > > > Also, for [[ $hostonly ]], we only want to add the current running CPU microcode. > > <nods> Will do that. Are you OK with me adding some of this CPU detection logic > in dracut-functions.sh? This is still RFC, as I had not done the --no-compress logic (or tested it). Please see if this is OK: >From 5f853d2ececd4cadff648e22cb9c9287a01a9783 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Date: Tue, 9 Jul 2013 13:57:01 -0400 Subject: [PATCH] dracut.sh: Support early microcode loading. Implement it per Linux kernel Documentation/x86/early-microcode.txt (from v3.11-rc0): <start> Early load microcode ==================== By Fenghua Yu <fenghua.yu@intel.com> Kernel can update microcode in early phase of boot time. Loading microcode early can fix CPU issues before they are observed during kernel boot time. Microcode is stored in an initrd file. The microcode is read from the initrd file and loaded to CPUs during boot time. The format of the combined initrd image is microcode in cpio format followed by the initrd image (maybe compressed). Kernel parses the combined initrd image during boot time. The microcode file in cpio name space is: on Intel: kernel/x86/microcode/GenuineIntel.bin on AMD : kernel/x86/microcode/AuthenticAMD.bin During BSP boot (before SMP starts), if the kernel finds the microcode file in the initrd file, it parses the microcode and saves matching microcode in memory. If matching microcode is found, it will be uploaded in BSP and later on in all APs. The cached microcode patch is applied when CPUs resume from a sleep state. There are two legacy user space interfaces to load microcode, either through /dev/cpu/microcode or through /sys/devices/system/cpu/microcode/reload file in sysfs. In addition to these two legacy methods, the early loading method described here is the third method with which microcode can be uploaded to a system's CPUs. The following example script shows how to generate a new combined initrd file in /boot/initrd-3.5.0.ucode.img with original microcode microcode.bin and original initrd image /boot/initrd-3.5.0.img. mkdir initrd cd initrd mkdir -p kernel/x86/microcode cp ../microcode.bin kernel/x86/microcode/GenuineIntel.bin (or AuthenticAMD.bin) find . | cpio -o -H newc >../ucode.cpio cd .. cat ucode.cpio /boot/initrd-3.5.0.img >/boot/initrd-3.5.0.ucode.img <end> That is what we do in the patch. Furthermoere there is also an off-switch: "no-early-microcode" to disable it. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> [v1: Support --host-only parameter]
2013-07-12dracut.sh: correct dropindirs_sortHarald Hoyer1-2/+2
2013-07-12base/module-setup.sh: do not add devs to initqueue/finishedHarald Hoyer1-17/+20
when need-initqueue is not set in systemd mode
2013-07-12base/module-setup.sh: do not include systemd-timestampHarald Hoyer1-1/+5
when using systemd in the initramfs
2013-07-12dracut-cmdline.service: remove Before: systemd-vconsole-setup.serviceHarald Hoyer1-1/+0
2013-07-11systemd/module-setup.sh: create emtpy /etc/machine-idHarald Hoyer1-4/+4
Even in hostonly mode, if none was found on the system.
2013-07-05dracut.sh: unset all LC_* and LANGHarald Hoyer1-0/+4
saves 10% of time :-)
2013-07-05modules.d/10i18n/module-setup.sh: handle empty vconsole.confHarald Hoyer1-0/+9
if /etc/vconsole.conf exists and is empty, then do not install anything.
2013-07-05terminfo: only install l/linux v/vt100 and v/vt220Harald Hoyer1-2/+4
2013-07-05add PARTLABEL and PARTUUIDHarald Hoyer6-1/+28
2013-07-04masterkey/module-setup.sh:check() check for $hostonly rather than "-h"Harald Hoyer1-1/+1
2013-07-04beautified shell codeHarald Hoyer17-264/+290
checked with shellcheck http://www.shellcheck.net/about.html
2013-06-28use "rm --" to guard against filenames beginning with "-"Harald Hoyer67-150/+150
2013-06-28TEST-04-FULL-SYSTEMD/test.sh: dlfgjlkdfjgldfjHarald Hoyer1-9/+10
2013-06-28test/run-qemu: specify the kernelHarald Hoyer1-1/+12
2013-06-28systemd/module-setup.sh: add slices.targetHarald Hoyer1-3/+4
2013-06-26TEST-04-FULL-SYSTEMD: call xargs with "-r"Harald Hoyer1-1/+1
2013-06-26systemd: add system.slice unitHarald Hoyer1-0/+3
2013-06-24use findmnt with "--source" or "--target"Harald Hoyer3-8/+26
This avoids hanging on stale NFS mounts, which are not part of the boot process. https://bugzilla.redhat.com/show_bug.cgi?id=975401
2013-06-18udev-rules: add 75-net-description.rulesHarald Hoyer1-1/+1
we need IMPORT{builtin}="net_id" for the persistent network names
2013-06-18selinux: umount $NEWROOT/dev and its submountsWANG Chao1-0/+1
$NEWROOT/dev and its submounts should be umounted after we use it. Otherwise it fails other scripts that umount /sysroot only. Signed-off-by: WANG Chao <chaowang@redhat.com>
2013-06-14NEWS: update029Harald Hoyer1-0/+21
2013-06-1390lvm/module-setup.sh: redirect error message of lvs to /dev/nullBaoquan He1-1/+1
Signed-off-by: Baoquan He <bhe@redhat.com>
2013-06-13test/TEST-50-MULTINIC: fix interface testHarald Hoyer1-2/+6
2013-06-13network: refix BOOTIF logicHarald Hoyer3-3/+16
2013-06-13test/TEST-50-MULTINIC: fixed debug outputHarald Hoyer1-2/+2
2013-06-13systemd/module-setup.sh: mkdir /etc/systemdHarald Hoyer1-1/+1
2013-06-13net-lib: fix set_ifname()Will Woods1-1/+1
/sys/class/$name$num isn't ever going to work; /sys/class/net/$name$num (e.g. /sys/class/net/ibft0) should work right.
2013-06-13net-lib: add configured_ifaces()Will Woods1-0/+31
configured_ifaces is a function that returns the names of each interface that the user wanted configured. Currently, this is accomplished by reading the list from /tmp/net.ifaces. But if we want to allow the user to specify an interface by its MAC address or IP or something, we need a function that will read the cache and convert the MACs etc. to names. (Obviously this conversion only works once udev starts, so it will warn you if you try it too early.)
2013-06-13net-lib: add find_iface_with_link()Will Woods1-0/+13
Add a function to look at the system network interfaces and return the first one it finds with an active link (if any.)
2013-06-13Don't explode when mixing BOOTIF and ip=Will Woods2-10/+14
Now that we can use a MAC as a device identifier, we can just bring up the device specified by BOOTIF as a normal interface. So instead of ignoring everything but BOOTIF, we'll put BOOTIF in the IFACES list and bring it up as normal, defaulting to DHCP if nothing else is specified. We can also handle anaconda-style 'ksdevice=bootif' this way.
2013-06-13net-genrules: accept MAC address for $iface, cleanupsWill Woods1-14/+19
A MAC address is a unique identifier for a particular network interface. We can use the MAC to generate udev rules to bring up that interface, like we currently do with BOOTIF. This patch allows interfaces to be specified as a MAC address, either in the usual colon-separated form or the PXE-style dash-separated form. (The latter is more useful on the commandline, since it allows for arguments like: "ip=77-77-6f-6f-64-73:dhcp") This is useful since it's common for a user who is booting a new OS for the first time to know the MAC of the device, but not know what the kernel name will be.
2013-06-13move fix_bootif to net-libWill Woods2-12/+14
This might be useful to other parts of dracut; move it to net-lib.sh.
2013-06-13Makefile: source dracut-version.sh and correct dist tarballHarald Hoyer1-6/+7
2013-06-13Makefile: pipe git describe errors to /dev/nullHarald Hoyer1-2/+2
2013-06-13add dracut-shutdown.service.8.asc manpageHarald Hoyer3-0/+52
2013-06-13move dracut-shutdown.service to modules.d/98systemdHarald Hoyer2-1/+1
2013-06-13Don't use do syncheck for target all and refine syncheckHarald Hoyer3-6/+6
instead of "dash -n" we now use "bash --posix -n" we also check for "[[ " in posix shell files
2013-06-13systemd: make unit files symlinksHarald Hoyer2-19/+19
2013-06-13systemd/dracut-pre-pivot.service: also execute for cleanup hooks or rd.breakHarald Hoyer1-0/+3
2013-06-13i18n: make the default font configurableHarald Hoyer2-1/+2
To set the default font for your distribution, add i18n_default_font="latarcyrheb-sun16" to your /lib/dracut/dracut.conf.d/01-dist.conf distribution config.
2013-06-12network: wait 40 seconds for IPv6 auto configurationHarald Hoyer2-0/+13
https://bugzilla.redhat.com/show_bug.cgi?id=973719
2013-06-12NEWS: update028Harald Hoyer1-0/+35
2013-06-12rename kernel command line param action_on_fail to rd.action_on_failHarald Hoyer2-2/+2
2013-06-12dmsquash-live/iso-scan: wait until the iso-scan/filename is foundHarald Hoyer2-10/+23
Do not only run once, but wait until all devices are found.