platform/upstream/dracut.git
14 years agorootfs-block/mount-root.sh: fixed fsck "-a" option
Harald Hoyer [Wed, 3 Nov 2010 17:40:42 +0000 (13:40 -0400)]
rootfs-block/mount-root.sh: fixed fsck "-a" option

14 years agorootfs-block:mount-root.sh add fsck
Harald Hoyer [Fri, 29 Oct 2010 17:00:35 +0000 (19:00 +0200)]
rootfs-block:mount-root.sh add fsck

14 years ago10i18n/parse-i18n.sh: run console_init directly if /dev/tty0 exists
Harald Hoyer [Fri, 29 Oct 2010 16:38:55 +0000 (18:38 +0200)]
10i18n/parse-i18n.sh: run console_init directly if /dev/tty0 exists

14 years agodracut.spec: s#fedora_version#fedora#g and simplified %if checks
Harald Hoyer [Fri, 29 Oct 2010 14:57:52 +0000 (16:57 +0200)]
dracut.spec: s#fedora_version#fedora#g and simplified %if checks

14 years agodracut.conf.d/suse.conf.example: remove hostonly mode
Harald Hoyer [Fri, 29 Oct 2010 14:22:56 +0000 (16:22 +0200)]
dracut.conf.d/suse.conf.example: remove hostonly mode

14 years agodracut.spec: dracut-network obsoletes and provides dracut-generic
Harald Hoyer [Fri, 29 Oct 2010 13:22:59 +0000 (15:22 +0200)]
dracut.spec: dracut-network obsoletes and provides dracut-generic

14 years agodracut.spec: add dracut.html to %doc
Harald Hoyer [Fri, 29 Oct 2010 13:08:51 +0000 (15:08 +0200)]
dracut.spec: add dracut.html to %doc

14 years agoi18n/install: if hostonly install fails, install all files
Harald Hoyer [Fri, 29 Oct 2010 12:07:56 +0000 (14:07 +0200)]
i18n/install: if hostonly install fails, install all files

14 years agoi18n/install: s/dwarn/dwarning/
Harald Hoyer [Fri, 29 Oct 2010 12:00:13 +0000 (14:00 +0200)]
i18n/install: s/dwarn/dwarning/

14 years agoi18n/install: do not error out, if local i18n could not be found
Harald Hoyer [Fri, 29 Oct 2010 11:58:40 +0000 (13:58 +0200)]
i18n/install: do not error out, if local i18n could not be found

14 years agoi18n/install: cleanup and honor new config files
Harald Hoyer [Fri, 29 Oct 2010 11:55:22 +0000 (13:55 +0200)]
i18n/install: cleanup and honor new config files

honor local /etc/locale.conf and /etc/vconsole.conf files

14 years agodracut.conf.d/fedora.conf.example: SYSFONT -> FONT
Harald Hoyer [Fri, 29 Oct 2010 11:47:05 +0000 (13:47 +0200)]
dracut.conf.d/fedora.conf.example: SYSFONT -> FONT

14 years agoi18n: move to vconfig.* and locale.* namespace
Harald Hoyer [Fri, 29 Oct 2010 11:39:20 +0000 (13:39 +0200)]
i18n: move to vconfig.* and locale.* namespace

14 years agobase/init: rd.shell=1 per default
Harald Hoyer [Fri, 29 Oct 2010 11:24:12 +0000 (13:24 +0200)]
base/init: rd.shell=1 per default

to securely lock a machine, the admin has to set rd.shell=0!

14 years agodracut-functions:find_block_device() workaround for btrfs
Harald Hoyer [Fri, 29 Oct 2010 10:34:27 +0000 (12:34 +0200)]
dracut-functions:find_block_device() workaround for btrfs

/proc/self/mountinfo contains the btrfs virtual device major minor.
Determine the real major minor with the device.

14 years agobase/init: s/RDTIMESTAMP/RD_TIMESTAMP/g
Harald Hoyer [Thu, 28 Oct 2010 16:09:45 +0000 (18:09 +0200)]
base/init: s/RDTIMESTAMP/RD_TIMESTAMP/g

systemd will clear all RD_* env for its children

14 years agomkdir /dev/.initramfs with "-p"
Harald Hoyer [Thu, 28 Oct 2010 15:10:46 +0000 (17:10 +0200)]
mkdir /dev/.initramfs with "-p"

14 years agobase: send DRACUT_LOG_END to loginit at the end
Harald Hoyer [Thu, 28 Oct 2010 15:10:17 +0000 (17:10 +0200)]
base: send DRACUT_LOG_END to loginit at the end

14 years agoTEST-50-MULTINIC/test.sh: only set hdc for no cdrom
Harald Hoyer [Thu, 28 Oct 2010 14:57:21 +0000 (16:57 +0200)]
TEST-50-MULTINIC/test.sh: only set hdc for no cdrom

14 years agotest/TEST-*/test.sh: set -serial to null for servers
Harald Hoyer [Thu, 28 Oct 2010 14:10:05 +0000 (16:10 +0200)]
test/TEST-*/test.sh: set -serial to null for servers

-serial udp might have stalled

14 years agonetwork: don't die if gateway is down and root server is local
Pádraig Brady [Thu, 28 Oct 2010 13:49:37 +0000 (15:49 +0200)]
network: don't die if gateway is down and root server is local

modules.d/40network/netroot: Don't arping the gateway if we don't need to

14 years agotest/*/*-init: set PATH
Harald Hoyer [Thu, 28 Oct 2010 12:39:53 +0000 (14:39 +0200)]
test/*/*-init: set PATH

/sbin and /usr/sbin are no longer in $PATH

14 years agodracut-functions:inst_symlink() create target dir
Harald Hoyer [Thu, 28 Oct 2010 11:35:17 +0000 (13:35 +0200)]
dracut-functions:inst_symlink() create target dir

if the target directory of the symlink didn't exist, we failed

14 years agoifcfg/write-ifcfg.sh: fixes typos and generated ifcfg files
Vladislav Bogdanov [Thu, 28 Oct 2010 11:12:18 +0000 (13:12 +0200)]
ifcfg/write-ifcfg.sh: fixes typos and generated ifcfg files

14 years agobase/init: fix for /sbin/init being an absolute softlink
Harald Hoyer [Thu, 28 Oct 2010 10:46:17 +0000 (12:46 +0200)]
base/init: fix for /sbin/init being an absolute softlink

14 years agonew parameter option names with "rd.*" namespace
Harald Hoyer [Thu, 28 Oct 2010 10:47:45 +0000 (12:47 +0200)]
new parameter option names with "rd.*" namespace

   Renamed Options
       Here is a list of options, which were used in dracut prior to
       version 008, and their new replacement.

       rdbreak
           rd.break

       rd_CCW
           rd.ccw

       rdcopystate
           rd.copystate

       rd_DASD_MOD
           rd.dasd_mod.dasd

       rd_DASD
           rd.dasd

       rdinitdebug rdnetdebug
           rd.debug

       rd_NO_DM
           rd.dm=0

       rd_DM_UUID
           rd.dm.uuid

       rdblacklist
           rd.driver.blacklist

       rdinsmodpost
           rd.driver.post

       rdloaddriver
           rd.driver.pre

       rd_NO_FSTAB
           rd.fstab=0

       rdinfo
           rd.info

       check
           rd.live.check

       rdlivedebug
           rd.live.debug

       live_dir
           rd.live.dir

       liveimg
           rd.live.image

       overlay
           rd.live.overlay

       readonly_overlay
           rd.live.overlay.readonly

       reset_overlay
           rd.live.overlay.reset

       live_ram
           rd.live.ram

       rd_NO_CRYPTTAB
           rd.luks.crypttab=0

       rd_LUKS_KEYDEV_UUID
           rd.luks.keydev.uuid

       rd_LUKS_KEYPATH
           rd.luks.keypath

       rd_NO_LUKS
           rd.luks=0

       rd_LUKS_UUID
           rd.luks.uuid

       rd_LUKS_UUID
           rd.luks.uuid

       rd_NO_LVMCONF
           rd.lvm.conf

       rd_LVM_LV
           rd.lvm.lv

       rd_NO_LVM
           rd.lvm=0

       rd_LVM_SNAPSHOT
           rd.lvm.snapshot

       rd_LVM_SNAPSIZE
           rd.lvm.snapsize

       rd_LVM_VG
           rd.lvm.vg

       rd_NO_MDADMCONF
           rd.md.conf=0

       rd_NO_MDIMSM
           rd.md.imsm=0

       rd_NO_MD
           rd.md=0

       rd_MD_UUID
           rd.md.uuid

       rd_NFS_DOMAIN
           rd.nfs.domain

       rd_NO_PLYMOUTH
           rd.plymouth=0

       rd_retry
           rd.retry

       rdshell
           rd.shell

       rd_NO_SPLASH
           rd.splash

       rdudevdebug
           rd.udev.debug

       rdudevinfo
           rd.udev.info

       rd_NO_ZFCPCONF
           rd.zfcp.conf=0

       rd_ZFCP
           rd.zfcp

14 years agodracut-functions: suppress modinfo errors for hostonly mode
Harald Hoyer [Wed, 27 Oct 2010 09:19:27 +0000 (11:19 +0200)]
dracut-functions: suppress modinfo errors for hostonly mode

14 years agofcoe: remove vconfig requirement
Harald Hoyer [Tue, 26 Oct 2010 10:45:59 +0000 (12:45 +0200)]
fcoe: remove vconfig requirement

14 years agodracut.spec: own dracut/modules.d directory
Harald Hoyer [Tue, 26 Oct 2010 09:50:09 +0000 (11:50 +0200)]
dracut.spec: own dracut/modules.d directory

14 years agodracut-gencmdline: strip also _rnetdev
Harald Hoyer [Tue, 26 Oct 2010 09:48:14 +0000 (11:48 +0200)]
dracut-gencmdline: strip also _rnetdev

https://bugzilla.redhat.com/show_bug.cgi?id=644494

14 years agobootchart: fixed file perms
Harald Hoyer [Mon, 25 Oct 2010 15:23:51 +0000 (17:23 +0200)]
bootchart: fixed file perms

14 years agodracut.spec: modified to build on opensuse
Harald Hoyer [Mon, 25 Oct 2010 15:23:28 +0000 (17:23 +0200)]
dracut.spec: modified to build on opensuse

14 years agodracut.spec: removed gittag
Harald Hoyer [Mon, 25 Oct 2010 12:21:33 +0000 (14:21 +0200)]
dracut.spec: removed gittag

14 years agodracut.spec: add opensuse
Harald Hoyer [Mon, 25 Oct 2010 10:53:28 +0000 (12:53 +0200)]
dracut.spec: add opensuse

14 years agodracut.spec: add 95fstab-sys and 96insmodpost
Harald Hoyer [Mon, 25 Oct 2010 12:18:39 +0000 (14:18 +0200)]
dracut.spec: add 95fstab-sys and 96insmodpost

14 years agoadd dracut.conf.d/suse.conf.example
Harald Hoyer [Mon, 25 Oct 2010 10:32:59 +0000 (12:32 +0200)]
add dracut.conf.d/suse.conf.example

14 years agobase: install switch_root to /sbin and call it with the full path
Harald Hoyer [Mon, 25 Oct 2010 10:31:38 +0000 (12:31 +0200)]
base: install switch_root to /sbin and call it with the full path

14 years agoi18n: also search in /usr/share/kbd
Harald Hoyer [Mon, 25 Oct 2010 10:31:07 +0000 (12:31 +0200)]
i18n: also search in /usr/share/kbd

14 years agochmod 0755 modules.d/40network/parse-bond.sh
Harald Hoyer [Mon, 18 Oct 2010 14:20:19 +0000 (16:20 +0200)]
chmod 0755 modules.d/40network/parse-bond.sh

14 years agoadd bonding
Vladislav Bogdanov [Mon, 18 Oct 2010 14:10:41 +0000 (16:10 +0200)]
add bonding

Format:
bond=<bondname>[:<bondslaves>:[:<options>]]

bondslaves is a comma-separated list of physical (ethernet) interfaces.

options is a comma-separated list on bonding options (modinfo bonding for
details) in format compatible with initscripts.

If options include multi-valued arp_ip_target option, then its values
should be separated by semicolon.

bond without parameters assumes bond=bond0:eth0,eth1:balance-rr

14 years agoadd 96insmodpost dracut module
Harald Hoyer [Mon, 18 Oct 2010 14:07:58 +0000 (16:07 +0200)]
add 96insmodpost dracut module

due to popular demand, this module loads a custom kernel module, after the
first udev settle (all basic device drivers loaded)

14 years agodocumentation update
Harald Hoyer [Mon, 18 Oct 2010 14:05:47 +0000 (16:05 +0200)]
documentation update

14 years agodocumentation update
Harald Hoyer [Fri, 15 Oct 2010 11:14:08 +0000 (13:14 +0200)]
documentation update

14 years agosuppress modprobe errors on builtins (credits to Kay Sievers)
Amadeusz Żołnowski [Wed, 13 Oct 2010 17:39:14 +0000 (19:39 +0200)]
suppress modprobe errors on builtins (credits to Kay Sievers)

Install /lib/modules/$kv/modules.builtin.bin to suppress modprobe error
messages saying module was not found, while it's built-in.

Credits go to Kay Sievers who enlighten us about meaning of this cool
file.

14 years agoRevert "add option --ignore-kernel-modules"
Amadeusz Żołnowski [Wed, 13 Oct 2010 17:39:13 +0000 (19:39 +0200)]
Revert "add option --ignore-kernel-modules"

This reverts commit 0ca3a5ee849614e85241274d24380f3eabd73b78
and removes later changes related to this commit.

Conflicts:

dracut
dracut.8
modules.d/99base/install

14 years agoinit: symlink /dev/stdin /dev/stdout /dev/stderr
Harald Hoyer [Thu, 7 Oct 2010 17:11:11 +0000 (19:11 +0200)]
init: symlink /dev/stdin /dev/stdout /dev/stderr

14 years ago99base/init: honor env. vars provided by kernel (PATH, HOME and TERM)
Amadeusz Żołnowski [Sat, 25 Sep 2010 22:06:54 +0000 (00:06 +0200)]
99base/init: honor env. vars provided by kernel (PATH, HOME and TERM)

Let take a look at Linux sources, /usr/src/linux-2.6.35/init/main.c:

  204: char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };

  857: run_init_process("/sbin/init");

  817: static void run_init_process(char *init_filename)
  818: {
  819:        argv_init[0] = init_filename;
  820:        kernel_execve(init_filename, argv_init, envp_init);
  821: }

As we can see HOME=/ and TERM=linux are provided for init and this might be
expected on some systems (Gentoo comes to my mind, here ;-)).  That's why we
should give to init the same set of env. vars as Linux kernel does.

14 years agoinit: removed bogus nop line
Harald Hoyer [Thu, 23 Sep 2010 15:45:37 +0000 (17:45 +0200)]
init: removed bogus nop line

+    initargs="$initargs"

14 years agonetwork: kill -9 dhclient, if normal kill does not succeed
Harald Hoyer [Thu, 23 Sep 2010 14:23:33 +0000 (16:23 +0200)]
network: kill -9 dhclient, if normal kill does not succeed

https://bugzilla.redhat.com/show_bug.cgi?id=583348

14 years agotest: double disk space for root images
Harald Hoyer [Thu, 23 Sep 2010 14:06:53 +0000 (16:06 +0200)]
test: double disk space for root images

14 years ago95fstab-sys: mount all /etc/fstab.sys volumes before switch_root
Ian Dall [Wed, 22 Sep 2010 14:49:19 +0000 (16:49 +0200)]
95fstab-sys: mount all /etc/fstab.sys volumes before switch_root

A new dracut module to implement fstab.sys handling

This module implements fstab.sys handling. This has to happen after the root
mount and before the nfsroot-cleanup pre-pivot at least. I've made to happen at
the beginning of the pre-pivot scripts, although it should maybe be at the end
of the mount scripts. This latter would be harder to do because the actual
mount is currently done by 99mount-root.sh and there is no 2 digit integer
higher than 99 :-(

There are perhaps other ways of achieving this end, such as having the
nfsroot-cleanup trawl through the newroot's /etc/fstab and auto-magically
figure out if there are any mounts which are pre-requisites for the
/var/lib/nfs/rpc_pipefs mount and do them first. Likewise post pivot,
/etc/rc.sysinit could figure out of there are any pre-requisite mounts for
/var/lib/stateless/{writeable,state} before doing those mounts. In short, make
it the responsibility of anything doing a mount to check if there are any
pre-requisites in /etc/fstab and mount them first. However, this spreads the
changes needed over more places, so I favour the fstab.sys approach. Also, who
knows what other uses administartors may have put fstab.sys to? and this undoes
a regression caused by the move from mkinitrd to dracut.

14 years agolvm: support for dynamic LVM SNAPSHOT root volume
James Laska [Wed, 22 Sep 2010 14:28:59 +0000 (16:28 +0200)]
lvm: support for dynamic LVM SNAPSHOT root volume

I'm looking for a way to have a system with disposable storage that can be
rebooted and all filesystem changes are thrown away.  After reboot, the system
starts with a fresh root volume again.  The use case is for automated testing.
We run test scripts that could potentially not clean up after themselves.

This is almost like stateless, but the storage is local to the system (not
iSCSI, NFS or NBB).

1. Install Fedora 13 using default partition layout
  NOTE: modify the layout to leave extra room in the LVM volume group
2. Apply attached patch
3. Update grub.conf to enable dracut LVM snapshot support.  Add the following
boot arguments

 rd_LVM_SNAPSHOT=vg_test1055/lv_snap (note the VG name will depend on your
system).
 rd_LVM_SNAPSIZE= (optional, defaults to size of volume specified with by
rd_LVM_SNAPSHOT)

4. Adjust grub.conf and fstab to use LVM snapshot
 $ sed -i -e 's|lv_root|lv_snap|' /boot/grub/grub.conf
 $ sed -i -e 's|lv_root|lv_snap|' /etc/fstab
5. Reboot system

Expected results (no value provided for rd_LVM_SNAPSIZE):

  dracut: Starting plymouth daemon
  dracut: rd_NO_DM: removing DM RAID activation
  dracut: rd_NO_MD: removing MD RAID activation
  dracut: Removing existing LVM snapshot vg_test1055/lv_snap
  dracut: Logical volume "lv_snap" successfully removed
  dracut: No LVM snapshot size provided, using size of vg_test1055/lv_root (
9024.00m)
  dracut: Creating LVM snapshot vg_test1055/lv_snap  (  9024.00m)
  dracut: Logical volume "lv_snap" created
  dracut: Scanning devices sda2  for LVM logical volumes vg_test1055/lv_root
vg_test1055/lv_swap
  dracut: inactive Original '/dev/vg_test1055/lv_root' [8.81 GiB] inherit
  dracut: inactive '/dev/vg_test1055/lv_swap' [1.00 GiB] inherit
  dracut: inactive Snapshot '/dev/vg_test1055/lv_snap' [8.81 GiB] inherit
  dracut: Mounted root filesystem /dev/mapper/vg_test1055-lv_snap
  dracut: Loading SELinux policy
  dracut: Switching root

Expected results (rd_LVM_SNAPSIZE=100m):

  dracut: Starting plymouth daemon
  dracut: rd_NO_DM: removing DM RAID activation
  dracut: rd_NO_MD: removing MD RAID activation
  dracut: Removing existing LVM snapshot vg_test1055/lv_snap
  dracut: Logical volume "lv_snap" successfully removed
  dracut: Creating LVM snapshot vg_test1055/lv_snap  (100m )
  dracut: Rounding up size to full physical extent 128.00 MiB
  dracut: Logical volume "lv_snap" created
  dracut: Scanning devices sda2  for LVM logical volumes vg_test1055/lv_root
vg_test1055/lv_swap
  dracut: inactive Original '/dev/vg_test1055/lv_root' [8.81 GiB] inherit
  dracut: inactive '/dev/vg_test1055/lv_swap' [1.00 GiB] inherit
  dracut: inactive Snapshot '/dev/vg_test1055/lv_snap' [128.00 MiB] inherit
  dracut: Mounted root filesystem /dev/mapper/vg_test1055-lv_snap
  dracut: Loading SELinux policy
  dracut: Switching root

14 years agodracut-functions: filter_kernel_modules() search in extra dirs
Harald Hoyer [Tue, 10 Aug 2010 13:54:03 +0000 (15:54 +0200)]
dracut-functions: filter_kernel_modules() search in extra dirs

search also in "extra" and "weak-updates" for kernel modules
https://bugzilla.redhat.com/show_bug.cgi?id=622641

14 years agolvm: also handle LVM1 volumes
Harald Hoyer [Wed, 22 Sep 2010 14:12:55 +0000 (16:12 +0200)]
lvm: also handle LVM1 volumes

14 years agodocumentation update
Harald Hoyer [Wed, 22 Sep 2010 12:33:10 +0000 (14:33 +0200)]
documentation update

14 years agobase/init: set RDTIMESTAMP
Harald Hoyer [Tue, 14 Sep 2010 08:48:06 +0000 (10:48 +0200)]
base/init: set RDTIMESTAMP

set $RDTIMESTAMP for init, if rd.timestamp is specified on the
kernel command line, so that systemd can print out:

"systemd: Boot finished after 15s = 3s (kernel) + 2s (initrd) + 10s
(userspace)"

14 years agoadd dracut.xml documentation
Harald Hoyer [Mon, 23 Aug 2010 10:25:03 +0000 (12:25 +0200)]
add dracut.xml documentation

14 years agodracut: added --list-modules
Harald Hoyer [Fri, 17 Sep 2010 06:36:26 +0000 (08:36 +0200)]
dracut: added --list-modules

14 years agolsinitrd: add "catinitrd" functionality
Harald Hoyer [Fri, 17 Sep 2010 13:21:27 +0000 (15:21 +0200)]
lsinitrd: add "catinitrd" functionality

lsinitrd <initramfs image> [<file to cat>]

14 years agobase/init: unset HOME and TERM for real init
Harald Hoyer [Wed, 15 Sep 2010 09:54:37 +0000 (11:54 +0200)]
base/init: unset HOME and TERM for real init

14 years agoBe sure and get the right architecture for rsylogd modules.
Peter Jones [Fri, 10 Sep 2010 15:30:28 +0000 (11:30 -0400)]
Be sure and get the right architecture for rsylogd modules.

I've tested this locally on 64-bit with:

dracut -a syslog -f -v foo.img `uname -r`

And I see this in the output:

I: *** Sourcing module syslog
I: Installing /sbin/rsyslogd
I: Installing /lib64/rsyslog/lmnet.so
I: Installing /lib64/rsyslog/imklog.so
I: Installing /lib64/rsyslog/imuxsock.so
I: Installing /usr/share/dracut/modules.d/98syslog/parse-syslog-opts.sh
I: Installing /usr/share/dracut/modules.d/98syslog/syslog-genrules.sh
I: Installing /usr/share/dracut/modules.d/98syslog/syslog-cleanup.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslogd-start.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslogd-stop.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslog.conf

14 years agonfs/install: fixed s/LIBDIR/libdir
Harald Hoyer [Fri, 10 Sep 2010 15:51:32 +0000 (17:51 +0200)]
nfs/install: fixed s/LIBDIR/libdir

14 years agoreformat source
Harald Hoyer [Fri, 10 Sep 2010 13:55:51 +0000 (15:55 +0200)]
reformat source

untabified

14 years agoreformat source code
Harald Hoyer [Fri, 10 Sep 2010 13:23:06 +0000 (15:23 +0200)]
reformat source code

removed tabs and set indention to 4 spaces
added emacs and vi format headers

14 years agoupdate rsyslog plugin paths
Glen Gray [Wed, 23 Jun 2010 11:28:00 +0000 (07:28 -0400)]
update rsyslog plugin paths

rsyslog's plugin paths moved, so correct for them.

14 years agoplymouth: do not create hvc0
Harald Hoyer [Wed, 25 Aug 2010 11:26:13 +0000 (13:26 +0200)]
plymouth: do not create hvc0

must have been a copy&paste error

14 years agomkinitrd-dracut.sh: fix stray "fi"
Andrey Borzenkov [Mon, 23 Aug 2010 17:56:24 +0000 (21:56 +0400)]
mkinitrd-dracut.sh: fix stray "fi"

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
14 years agodmraid: switch to rd_NO_MDIMSM, if no mdadm installed
Harald Hoyer [Mon, 23 Aug 2010 12:42:33 +0000 (14:42 +0200)]
dmraid: switch to rd_NO_MDIMSM, if no mdadm installed

14 years agobootchart module cleanup
Andrey Borzenkov [Wed, 11 Aug 2010 17:46:56 +0000 (21:46 +0400)]
bootchart module cleanup

- create /lib/bootchart in initramfs, not in live filesystem
- use proper dracut API to install files

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
14 years agofixed "use $libdir and $usrlibdir instead of ..."
Harald Hoyer [Mon, 23 Aug 2010 10:40:15 +0000 (12:40 +0200)]
fixed "use $libdir and $usrlibdir instead of ..."

14 years agomanpage corrections
Harald Hoyer [Mon, 23 Aug 2010 10:22:52 +0000 (12:22 +0200)]
manpage corrections

14 years agoNEWS: fixed typo
Harald Hoyer [Mon, 23 Aug 2010 10:22:03 +0000 (12:22 +0200)]
NEWS: fixed typo

14 years agomkinitrd: do not call dracut in host only mode
Harald Hoyer [Mon, 23 Aug 2010 08:36:46 +0000 (10:36 +0200)]
mkinitrd: do not call dracut in host only mode

14 years agodm: install all md/dm* kernel modules
Harald Hoyer [Mon, 23 Aug 2010 09:01:04 +0000 (11:01 +0200)]
dm: install all md/dm* kernel modules

14 years agodracut: fixed "Add support for bzip2 and xz"
Harald Hoyer [Mon, 23 Aug 2010 10:06:28 +0000 (12:06 +0200)]
dracut: fixed "Add support for bzip2 and xz"

s/xz/lzma/g and added manpage documentation

14 years agodracut: fixed "Clean up some conditional checking..."
Harald Hoyer [Mon, 23 Aug 2010 09:58:39 +0000 (11:58 +0200)]
dracut: fixed "Clean up some conditional checking..."

14 years agodracut: fixed "Shorten permission checking..."
Harald Hoyer [Mon, 23 Aug 2010 09:57:39 +0000 (11:57 +0200)]
dracut: fixed "Shorten permission checking..."

14 years agoMerged cryptroot-ask.sh from plymouth to crypt module.
Matt Smith [Sun, 22 Aug 2010 00:59:10 +0000 (18:59 -0600)]
Merged cryptroot-ask.sh from plymouth to crypt module.

First, it's duplicate code.

Second, it did not allow those who had plymouth installed to use other
methods, like the new usb key file. When building the initram,
it would install the plymouth cryptroot-ask script, and not
the crypt module one.

Added these new items to crypt module's cryptroot-ask.sh:
  - 'unset' for used variables
  - udevsettle

The non-plymouth cryptsetup prompt was using $1 instead of $device.
Changed prompt number from 1 to 5, as this is much nicer.
I believe plymouth already does infinite prompts.

Also added unset for usb key. Just saw it didn't unset its vars.

14 years agouse $libdir and $usrlibdir instead of individual detect with ldd
Amadeusz Żołnowski [Wed, 18 Aug 2010 18:11:29 +0000 (20:11 +0200)]
use $libdir and $usrlibdir instead of individual detect with ldd

14 years agodracut: lib and usr/lib dirs detection
Amadeusz Żołnowski [Wed, 18 Aug 2010 18:06:44 +0000 (20:06 +0200)]
dracut: lib and usr/lib dirs detection

First we check if $libdir and $usrlibdir vars are already set in config
file. If not we perform simple detect. Vars are exported - to be useful
in module/check scripts.

14 years ago60xen: use 'hash' instead of 'type'
Amadeusz Żołnowski [Wed, 18 Aug 2010 15:31:03 +0000 (17:31 +0200)]
60xen: use 'hash' instead of 'type'

14 years agouse 'type' built-in instead of external cmd 'which' in every Bash script
Amadeusz Żołnowski [Wed, 18 Aug 2010 15:29:44 +0000 (17:29 +0200)]
use 'type' built-in instead of external cmd 'which' in every Bash script

14 years agoAdd a PKGBUILD file to make building on Arch Linux from a git checkout easy.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Add a PKGBUILD file to make building on Arch Linux from a git checkout easy.

This might come in handy for anyone else trying out dracut on Arch.

14 years agoWe are precise about hostonly checking these days.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
We are precise about hostonly checking these days.

So get rid of the comment in 90crypt/check.
Also do a bit of trivial bashification.

14 years agoTrivial bashification of 00dash/install
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification of 00dash/install

14 years agoTrivial bashification and minor code rearrangement for initramfs compression.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification and minor code rearrangement for initramfs compression.

14 years agoPrettify the option setting loop in dracut.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Prettify the option setting loop in dracut.

THis just makes the args line up all nice and pretty.

14 years agoBashify mkinitrd-dracut.sh, introduce read_arg.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Bashify mkinitrd-dracut.sh, introduce read_arg.

Hack up argument processing in dracut and mkinitrd-dracut.sh to use
read_arg to flexibly process arguments.

14 years agoBashify error() and usage() in mkinitrd-dracut.sh
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Bashify error() and usage() in mkinitrd-dracut.sh

Some more trivial bashification.

14 years agoJust test the status of the cpio-and-compress pipe directly.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Just test the status of the cpio-and-compress pipe directly.

14 years agoAdd support for bzip2 and xz compressed initramfs images.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Add support for bzip2 and xz compressed initramfs images.

Current kernels know how to uncompress bzip2 and xz, so use them for compressing
the initramfs if asked.  The more compression the merrier.

Also add support for generating uncompressed images, although they
are usually not what you want.

14 years agoWe have $UID, use it instead of $(id -u)
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
We have $UID, use it instead of $(id -u)

No point in spawning a command and parsing its output when the UID
is already in the environment.

14 years agoFlatten our check to ensure that depmod works.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Flatten our check to ensure that depmod works.

No need for a nested if here.

14 years agoShorten permission checking to ensure we can actually write our initramfs.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Shorten permission checking to ensure we can actually write our initramfs.

These tests can be combined into an if... elif... elif... statement, and
that makes it clear they are all part of the same test.

14 years agoBashify the code that actually sources out config files.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Bashify the code that actually sources out config files.

Just some trivial bashification.

14 years agoClean up some conditional checking when trying to find our config files.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Clean up some conditional checking when trying to find our config files.

No point in checking the same condition twice when compound commands will do.

14 years agoGet rid of unneeded dirname calls.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Get rid of unneeded dirname calls.

Use parameter expansion instead.

14 years agoTrivial cleanups in dracut-functions
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Trivial cleanups in dracut-functions

This is a patch series I have been playing with for awhile.

It cleans up some of the dracut code and adds a PKGBUILD file to make
it easier to use in Arch Linux.

14 years agoplymouth: udev trigger with action=add
Harald Hoyer [Fri, 13 Aug 2010 09:26:34 +0000 (11:26 +0200)]
plymouth: udev trigger with action=add

14 years agoversion inc
Harald Hoyer [Mon, 9 Aug 2010 14:28:38 +0000 (16:28 +0200)]
version inc