platform/upstream/dracut.git
12 years agoTEST-12-RAID-DEG: improve test case
Harald Hoyer [Wed, 15 Feb 2012 10:37:06 +0000 (11:37 +0100)]
TEST-12-RAID-DEG: improve test case

12 years ago99base/init: reload udev rules after "pre-trigger" hook
Harald Hoyer [Wed, 15 Feb 2012 10:32:21 +0000 (11:32 +0100)]
99base/init: reload udev rules after "pre-trigger" hook

12 years agoremoved now useless cleanup hooks
Harald Hoyer [Wed, 15 Feb 2012 09:08:59 +0000 (10:08 +0100)]
removed now useless cleanup hooks

in Fedora 17, we unpack /boot/initramfs-$(uname -r).img
on shutdown for a pivot root to disassemble the root device

12 years ago90mdraid: add "--offroot" support
Harald Hoyer [Mon, 13 Feb 2012 20:16:31 +0000 (21:16 +0100)]
90mdraid: add "--offroot" support

12 years ago95terminfo/module-setup.sh: check for terminfo/l/linux
Harald Hoyer [Mon, 13 Feb 2012 20:15:51 +0000 (21:15 +0100)]
95terminfo/module-setup.sh: check for terminfo/l/linux

on Fedora 17 the old check found /etc/terminfo, but this directory is
emtpy.

12 years agotest: fixed terminfo location
Harald Hoyer [Mon, 13 Feb 2012 20:15:22 +0000 (21:15 +0100)]
test: fixed terminfo location

12 years agoMakefile: s/dracut-initramfs-backup.sh/dracut-initramfs-restore.sh/
Harald Hoyer [Mon, 13 Feb 2012 17:20:12 +0000 (18:20 +0100)]
Makefile: s/dracut-initramfs-backup.sh/dracut-initramfs-restore.sh/

12 years ago98integrity/module-setup.sh: depend on selinux dracut module
Harald Hoyer [Mon, 13 Feb 2012 17:17:40 +0000 (18:17 +0100)]
98integrity/module-setup.sh: depend on selinux dracut module

12 years ago90kernel-modules/module-setup.sh: add "ata_piix" to hardcoded modules
Harald Hoyer [Mon, 13 Feb 2012 17:16:48 +0000 (18:16 +0100)]
90kernel-modules/module-setup.sh: add "ata_piix" to hardcoded modules

12 years agodracut.xml: mention log_buf_len=1M for rd.debug
Harald Hoyer [Mon, 13 Feb 2012 17:16:28 +0000 (18:16 +0100)]
dracut.xml: mention log_buf_len=1M for rd.debug

12 years agoshutdown on demand
Harald Hoyer [Fri, 10 Feb 2012 10:14:42 +0000 (11:14 +0100)]
shutdown on demand

Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.

12 years agoBackup and restore /run/initramfs via systemd services
Harald Hoyer [Fri, 10 Feb 2012 08:37:18 +0000 (09:37 +0100)]
Backup and restore /run/initramfs via systemd services

This saves the space /run/initramfs is taking for the shutdown

12 years ago99shutdown/shutdown: don't do console_init on shutdown emergency
Harald Hoyer [Thu, 9 Feb 2012 13:16:31 +0000 (14:16 +0100)]
99shutdown/shutdown: don't do console_init on shutdown emergency

12 years ago98usrmount/mount-usr.sh: remove extra slash
Harald Hoyer [Thu, 9 Feb 2012 12:58:49 +0000 (13:58 +0100)]
98usrmount/mount-usr.sh: remove extra slash

otherwise we have /sysroot//usr in fstab

12 years agodracut: honor binaries in sbin first
Harald Hoyer [Thu, 9 Feb 2012 12:58:13 +0000 (13:58 +0100)]
dracut: honor binaries in sbin first

12 years agolsinitrd: silence xz test
Harald Hoyer [Thu, 9 Feb 2012 10:36:21 +0000 (11:36 +0100)]
lsinitrd: silence xz test

12 years agoTEST-15-BTRFSRAID: write diskimage to tmp dir
Harald Hoyer [Wed, 8 Feb 2012 16:02:57 +0000 (17:02 +0100)]
TEST-15-BTRFSRAID: write diskimage to tmp dir

12 years agodracut: setup clean PATH w/o existing one
Harald Hoyer [Wed, 8 Feb 2012 16:02:17 +0000 (17:02 +0100)]
dracut: setup clean PATH w/o existing one

12 years agoVersion 15 015
Harald Hoyer [Tue, 7 Feb 2012 17:02:49 +0000 (18:02 +0100)]
Version 15

12 years ago30convertfs/convertfs.sh: call setfiles w/o path & check for existence
Harald Hoyer [Tue, 7 Feb 2012 19:56:14 +0000 (20:56 +0100)]
30convertfs/convertfs.sh: call setfiles w/o path & check for existence

12 years ago40network/net-genrules.sh: increase udev timeout
Harald Hoyer [Tue, 7 Feb 2012 19:47:29 +0000 (20:47 +0100)]
40network/net-genrules.sh: increase udev timeout

12 years agomove all file removal cleanups to "cleanup" hook
Harald Hoyer [Tue, 7 Feb 2012 18:23:22 +0000 (19:23 +0100)]
move all file removal cleanups to "cleanup" hook

12 years agouse "openvt" for emergency shell
Harald Hoyer [Tue, 7 Feb 2012 18:19:55 +0000 (19:19 +0100)]
use "openvt" for emergency shell

12 years agoomit dash for fedora
Harald Hoyer [Tue, 7 Feb 2012 18:18:49 +0000 (19:18 +0100)]
omit dash for fedora

12 years agoinit/shutdown: use "command -v" instead of "type"
Harald Hoyer [Tue, 7 Feb 2012 17:42:04 +0000 (18:42 +0100)]
init/shutdown: use "command -v" instead of "type"

12 years agoadd "install_items" to dracut.conf
Harald Hoyer [Tue, 7 Feb 2012 17:26:30 +0000 (18:26 +0100)]
add "install_items" to dracut.conf

12 years ago90btrfs/btrfs_finished.sh: put check in a function
Harald Hoyer [Tue, 7 Feb 2012 16:45:03 +0000 (17:45 +0100)]
90btrfs/btrfs_finished.sh: put check in a function

12 years agodracut: precreate "${initdir}/etc/cmdline.d"
Harald Hoyer [Tue, 7 Feb 2012 16:24:47 +0000 (17:24 +0100)]
dracut: precreate "${initdir}/etc/cmdline.d"

12 years ago99base/init: predefine path to init
Harald Hoyer [Tue, 7 Feb 2012 17:45:54 +0000 (18:45 +0100)]
99base/init: predefine path to init

if you add realinitpath="<path1> <path2>" to dracut.conf, then it will
be written to $initdir/etc/cmdline.d/distroinit.conf with
"rd.distroinit=<path1> rd.distroinit=<path2>" and evaluated by
99base/init, when it searches for init.

12 years agodracut-functions: handle relative symlinks with symlinked directories
Harald Hoyer [Tue, 7 Feb 2012 16:15:11 +0000 (17:15 +0100)]
dracut-functions: handle relative symlinks with symlinked directories

"inst_symlink /bin/sh" was not correctly working if:

/bin -> /usr/bin
/bin/sh -> bash

it produced

/usr/bin/sh -> ../usr/bin/bash

12 years agodracut-functions: simplify nosegneg path
Harald Hoyer [Tue, 7 Feb 2012 16:14:23 +0000 (17:14 +0100)]
dracut-functions: simplify nosegneg path

12 years agodracut-functions:inst_binary() bail out early if target exists
Harald Hoyer [Tue, 7 Feb 2012 16:13:32 +0000 (17:13 +0100)]
dracut-functions:inst_binary() bail out early if target exists

12 years agodracut-functions: use normal PATH for find_binary
Harald Hoyer [Tue, 7 Feb 2012 16:13:07 +0000 (17:13 +0100)]
dracut-functions: use normal PATH for find_binary

12 years agodracut: construct PATH with resolved symlinks
Harald Hoyer [Tue, 7 Feb 2012 16:11:58 +0000 (17:11 +0100)]
dracut: construct PATH with resolved symlinks

12 years ago95ssh-client/module-setup.sh: add executable bit
Harald Hoyer [Tue, 7 Feb 2012 11:18:52 +0000 (12:18 +0100)]
95ssh-client/module-setup.sh: add executable bit

12 years agoauto setup network without netroot
Dave Young [Thu, 2 Feb 2012 07:59:52 +0000 (15:59 +0800)]
auto setup network without netroot

Current dracut network only will be setup when netroot is used. But there are
some cases we need network even without netroot. For example kdump will need
copy vmcore to remote machine via scp or nfs mount. OTOH, if we use dracut as
a recovery system the network is helpful even root is not a network device.

This implementation is based on the manually bring up method. Here add a kernel
cmdline argument rd.neednet. If rd.neednet is set dracut will bring up network
with ifup $INTERFACE -m. If netroot is used we still keep original behavior.

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agodo not check dev node exist for fstab-sys mounting
Dave Young [Thu, 2 Feb 2012 08:00:11 +0000 (16:00 +0800)]
do not check dev node exist for fstab-sys mounting

in case nfs mounting do not check if $_dev exist

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agosplit nfs rpc daemons startup script
Dave Young [Thu, 2 Feb 2012 08:00:07 +0000 (16:00 +0800)]
split nfs rpc daemons startup script

fstab-sys will mount nonroot nfs as well, so we need to split the necessary
code from nfsroot to start rpc daemon as hook script.

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agosource dracut-lib.sh in nfs cleanup script
Dave Young [Thu, 2 Feb 2012 08:00:04 +0000 (16:00 +0800)]
source dracut-lib.sh in nfs cleanup script

nfsroot-cleanup.sh need source dracut-lib.sh for function incol2

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoadd nobody group for rpc.idmapd
Dave Young [Thu, 2 Feb 2012 07:59:59 +0000 (15:59 +0800)]
add nobody group for rpc.idmapd

Add nobody group due to rpc.idmapd will fail to startup without nobody group

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agofix fstab-sys module check
Dave Young [Thu, 2 Feb 2012 07:59:56 +0000 (15:59 +0800)]
fix fstab-sys module check

If /etc/fstab.sys does not exist installing fstab-sys module will fail.
Fix this by checking use_fstab and fstab_lines as well

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoallow ifup bring up network manually even without netroot
Dave Young [Thu, 2 Feb 2012 07:59:49 +0000 (15:59 +0800)]
allow ifup bring up network manually even without netroot

For kdump we need scp vmcore to remote machine, the nic to be used is
not limited to netroot one. we need a feature for manually bringing up
 network interface. Also it is useful for emergency shell with
ssh-client for recovery or test purpose

I implement this by adding one argument to ifup script, user can use
`/sbin/ifup eth0 -m` to bring up eth0, note ifup will regard it a
manual operation for the nic specified in 1st argument if there's
the 2nd argument.

If same nic is used for netroot the 2nd argument will be ignored,
in this case we will leave netroot bring up it automatically to
avoid side effect. And in this case hooks such as kdump will need to
execute after netroot mounted.

`ifup eth0 -m` will create /tmp/net.eth0.manualup stamp file,
later dhclient-script can check this and pass $2 to netroot,
then netroot script will bring eth0 up

Thanks for comments and suggestions from David Dillow.

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agobtrfs: fix two bugs in module-setup.sh
Cong Wang [Mon, 30 Jan 2012 09:58:55 +0000 (17:58 +0800)]
btrfs: fix two bugs in module-setup.sh

First, $host_fs_types is an array.
Second, use strstr to match btrfs type.

Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
12 years ago90crypt/crypt-cleanup.sh: send unneeded output to /dev/null
Harald Hoyer [Tue, 7 Feb 2012 10:23:42 +0000 (11:23 +0100)]
90crypt/crypt-cleanup.sh: send unneeded output to /dev/null

12 years agomore cleanup in pre-pivot
Harald Hoyer [Tue, 7 Feb 2012 09:32:35 +0000 (10:32 +0100)]
more cleanup in pre-pivot

12 years ago30convertfs/convertfs.sh: move /var/run and /var/lock fix to the start
Harald Hoyer [Tue, 7 Feb 2012 09:24:10 +0000 (10:24 +0100)]
30convertfs/convertfs.sh: move /var/run and /var/lock fix to the start

Even, if the system is already converted, we want to fix /var/run and
/var/lock.

12 years agobtrfs_finished.sh: fix udevadm query
Harald Hoyer [Tue, 7 Feb 2012 09:22:51 +0000 (10:22 +0100)]
btrfs_finished.sh: fix udevadm query

12 years agokernel-modules: add hid-logitech-dj to hardcoded hid devices
Harald Hoyer [Fri, 3 Feb 2012 11:03:36 +0000 (12:03 +0100)]
kernel-modules: add hid-logitech-dj to hardcoded hid devices

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

12 years agodracut.spec: s/usrmove/convertfs
Harald Hoyer [Fri, 3 Feb 2012 10:56:15 +0000 (11:56 +0100)]
dracut.spec: s/usrmove/convertfs

12 years ago30convertfs/convertfs.sh: fix check for /var/run and /var/lock
Harald Hoyer [Thu, 2 Feb 2012 18:18:48 +0000 (19:18 +0100)]
30convertfs/convertfs.sh: fix check for /var/run and /var/lock

12 years agorenamed usrmove to convertfs
Harald Hoyer [Thu, 2 Feb 2012 17:50:26 +0000 (18:50 +0100)]
renamed usrmove to convertfs

12 years agodracut-functions: install nosegneg libs additionally to standard ones
Harald Hoyer [Thu, 2 Feb 2012 17:25:49 +0000 (18:25 +0100)]
dracut-functions: install nosegneg libs additionally to standard ones

12 years ago30usrmove/usrmove-convert.sh: do not force selinux autorelabel
Harald Hoyer [Mon, 30 Jan 2012 13:06:39 +0000 (14:06 +0100)]
30usrmove/usrmove-convert.sh: do not force selinux autorelabel

12 years agofix kernel modules search for s390
Harald Hoyer [Thu, 26 Jan 2012 17:08:46 +0000 (18:08 +0100)]
fix kernel modules search for s390

forgot last ; in {}

12 years agofix kernel modules search for s390
Harald Hoyer [Thu, 26 Jan 2012 16:30:06 +0000 (17:30 +0100)]
fix kernel modules search for s390

find_kernel_modules_by_path only takes one parameter

fixes c254ac796fe52d19ad47df99055cd58fee5e517e
and 4fcd5409e09e693349e991bd2a78303114a735f5

12 years agodracut.spec: create compat symlink, instead of %ghost
Harald Hoyer [Thu, 26 Jan 2012 15:39:09 +0000 (16:39 +0100)]
dracut.spec: create compat symlink, instead of %ghost

12 years ago30usrmove/usrmove-convert.sh: rename duplicate libraries
Harald Hoyer [Thu, 26 Jan 2012 14:37:50 +0000 (15:37 +0100)]
30usrmove/usrmove-convert.sh: rename duplicate libraries

ldconfig does not ignore the duplicate leftover libs with a .usrmove~
suffix, so we rename ".so" to "_so".

12 years agousrmove: install missing binaries and "set -x" only for rd.debug
Harald Hoyer [Thu, 26 Jan 2012 12:55:50 +0000 (13:55 +0100)]
usrmove: install missing binaries and "set -x" only for rd.debug

12 years agodracut.spec: add compat symlinks to /sbin
Harald Hoyer [Thu, 26 Jan 2012 11:41:03 +0000 (12:41 +0100)]
dracut.spec: add compat symlinks to /sbin

12 years agoadd usrmove module
Harald Hoyer [Thu, 26 Jan 2012 10:33:51 +0000 (11:33 +0100)]
add usrmove module

12 years ago95ssh-client/module-setup.sh: do not install ssh-client by default
Harald Hoyer [Wed, 25 Jan 2012 09:02:29 +0000 (10:02 +0100)]
95ssh-client/module-setup.sh: do not install ssh-client by default

Do not install ssh-client by default and report the missing ctty in the
install section.

12 years ago95ssh-client/module-setup.sh: spell corrections
Harald Hoyer [Wed, 25 Jan 2012 08:59:12 +0000 (09:59 +0100)]
95ssh-client/module-setup.sh: spell corrections

12 years agolet some modules to respect $mount_needs
Cong Wang [Wed, 25 Jan 2012 01:04:17 +0000 (09:04 +0800)]
let some modules to respect $mount_needs

Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
12 years agonetroot: actually run netroot hooks
Will Woods [Tue, 24 Jan 2012 18:09:34 +0000 (13:09 -0500)]
netroot: actually run netroot hooks

The line "source_all netroot" was trying to source netroot hooks from
/netroot, which doesn't exist, so netroot hooks were never executed.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago99base/init: remove tmpfs on /dev
Harald Hoyer [Mon, 23 Jan 2012 15:08:46 +0000 (16:08 +0100)]
99base/init: remove tmpfs on /dev

tmpfs on /dev is not supported anymore and devtmpfs is supported in
kernels for a long time.

12 years ago90crypt/module-setup.sh: prepend "luks-" to hostonly cmdline file
Harald Hoyer [Mon, 23 Jan 2012 12:50:27 +0000 (13:50 +0100)]
90crypt/module-setup.sh: prepend "luks-" to hostonly cmdline file

12 years agodracut-functions: get_maj_min() major and minor was swapped
Harald Hoyer [Mon, 23 Jan 2012 12:50:05 +0000 (13:50 +0100)]
dracut-functions: get_maj_min() major and minor was swapped

12 years agodracut: _get_fs_type() also handle /dev/block/maj:min
Harald Hoyer [Mon, 23 Jan 2012 12:49:39 +0000 (13:49 +0100)]
dracut: _get_fs_type() also handle /dev/block/maj:min

12 years agoiscsi/multipath: also search in drivers/s390/scsi
Harald Hoyer [Mon, 23 Jan 2012 11:35:41 +0000 (12:35 +0100)]
iscsi/multipath: also search in drivers/s390/scsi

12 years agofix rpm build error after adding ssh-client module
Cong Wang [Tue, 10 Jan 2012 03:42:33 +0000 (11:42 +0800)]
fix rpm build error after adding ssh-client module

This patch fixes the following error when building rpm,

      error: Installed (but unpackaged) file(s) found:
       /usr/lib/dracut/modules.d/95ssh-client/module-setup.sh

Based on my kdump tree.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years ago40network: also look in drivers/s390/net for network drivers
Harald Hoyer [Mon, 23 Jan 2012 10:41:44 +0000 (11:41 +0100)]
40network: also look in drivers/s390/net for network drivers

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

12 years ago98usrmount/mount-usr.sh: do not mount /usr read-only
Harald Hoyer [Mon, 23 Jan 2012 10:32:06 +0000 (11:32 +0100)]
98usrmount/mount-usr.sh: do not mount /usr read-only

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

12 years agodracut, dracut.8.xml: added more documentation about "[LIST]"
Harald Hoyer [Mon, 23 Jan 2012 10:26:17 +0000 (11:26 +0100)]
dracut, dracut.8.xml: added more documentation about "[LIST]"

added examples on how to use [LIST] on the shell command line.

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

12 years agoAUTHORS: updated and fixed .mailmap
Harald Hoyer [Mon, 23 Jan 2012 10:06:16 +0000 (11:06 +0100)]
AUTHORS: updated and fixed .mailmap

12 years agonetwork/dhclient-script: set FQDN
Ian Dall [Mon, 23 Jan 2012 09:46:10 +0000 (10:46 +0100)]
network/dhclient-script: set FQDN

When booting with nfsroot, dracut doesn't necessarily set the initial
hostname correctly.

According to dhcp-options(5), the name may or may not be qualified with
the local domain. It goes on to say "it is preferable to use the
domain-name option to specify the domain name".

So dhclient-script needs to be able to handle the cases: a) where
host-name is fully qualified and domain name is also specified; b)
where hostname is fully qualified and the domain is not separately
specified; c) where host-name is "short" and domain-name is also
specified; and d) do its best where host-name is short but domain-name
is not specified.

The dhclient-script in initramfs does not handle case "c", apparently
the preferred situation properly, setting hostname to "short".

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

12 years agoplymouth/kernel: cleanup not needed parts for shutdown
Harald Hoyer [Mon, 23 Jan 2012 09:41:41 +0000 (10:41 +0100)]
plymouth/kernel: cleanup not needed parts for shutdown

remove plymouth and kernel parts from /run/initramfs, which are not
needed at shutdown.

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

12 years agolsinitrd: use xz with --single-stream, if available
Harald Hoyer [Mon, 23 Jan 2012 09:34:03 +0000 (10:34 +0100)]
lsinitrd: use xz with --single-stream, if available

The F16 installation image is two concatenated cpio images:
[xz-compressed dracut initramfs][uncompressed cpio with /squashfs.img]

So to show the contents, use xz with the "--single-stream" option.

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

12 years agodracut: unset GREP_OPTIONS
Harald Hoyer [Mon, 23 Jan 2012 09:10:25 +0000 (10:10 +0100)]
dracut: unset GREP_OPTIONS

GREP_OPTIONS can influence the image creation, if set to user defined
values, so unset it.

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

12 years agolsinitrd: add '-s' option to sort the initrd output by file size
Cong Wang [Tue, 10 Jan 2012 14:45:45 +0000 (22:45 +0800)]
lsinitrd: add '-s' option to sort the initrd output by file size

This is useful to analyse which files consume the space of initrd.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoadd xz compression for kernel modules
James Buren [Sun, 22 Jan 2012 19:02:47 +0000 (13:02 -0600)]
add xz compression for kernel modules

12 years agoplymouth: add xz support for kernel modules
James Buren [Sun, 22 Jan 2012 18:56:24 +0000 (12:56 -0600)]
plymouth: add xz support for kernel modules

This rewrites a portion of the module to support xz, as well as allow
an easier expansion should future compression methods for kernel
modules ever materialize.

12 years ago--ctty: add help line in usage
Dave Young [Mon, 26 Dec 2011 06:42:18 +0000 (14:42 +0800)]
--ctty: add help line in usage

Adding missed help line in usage

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoAdd ssh client module code
Dave Young [Mon, 26 Dec 2011 06:29:21 +0000 (14:29 +0800)]
Add ssh client module code

Add ssh client module which support ssh key mode and interactive mode.
with --sshkey option you can provide the ssh key to be installed

>why not call it "ssh" module?
ssh-client is better, maybe future there will be ssh-server come in.
In debian these are also two different packages.

Usage:
1. sshkey mode:
transfer your public key to remote machine with ssh-copy-id or do it mannaully
example of options:
./dracut -l -H -a ssh-client --sshkey /root/.ssh/id_rsa i.img
2. interactive mode:
need use --ctty option, ie.:
./dracut -l -H -a ssh-client --ctty i.img

[v2 changes]:
per wangcong: add patch description about module name
add help line in usage()
remove useless comment

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agochange root home dir to /root
Dave Young [Mon, 26 Dec 2011 06:29:18 +0000 (14:29 +0800)]
change root home dir to /root

ssh need to read knownhosts from home directory, so change root home to /root

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoAdd job control support to emergency shell
Michal Soltys [Mon, 26 Dec 2011 06:29:15 +0000 (14:29 +0800)]
Add job control support to emergency shell

Option --ctty will optionally add setsid binary to dracut's image.

During runtime, if rd.ctty is set and is a character device,
emergency shells will be spawned with job control.

in case no ctty was provided, shell was spawned without caring about
/dev/console. Also, the ctty is more opportunistic. If the image was
generated with --ctty, we will fallback to /dev/tty1 if rc.ctty is
invalid or missing. Otherwise we spawn standard shell on /dev/console

[dyoung@redhat.com: Rebased to usrmove branch]

Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agodeal common part of etc passwd in 99base
Dave Young [Mon, 26 Dec 2011 06:29:11 +0000 (14:29 +0800)]
deal common part of etc passwd in 99base

ssh module will need root user in /etc/passwd, so add root and nobody
to /etc/passwd in 99base instead of nfs module

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoremove extra semicolons in dracut.8.xml
Cong Wang [Tue, 10 Jan 2012 14:49:03 +0000 (22:49 +0800)]
remove extra semicolons in dracut.8.xml

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoip= server-id should be server-IP
Anton Blanchard [Mon, 26 Dec 2011 22:08:29 +0000 (09:08 +1100)]
ip= server-id should be server-IP

 From looking at the code it seems like server-id should really
be named server-IP.

12 years agoserver-id in ip= is not optional
Anton Blanchard [Mon, 26 Dec 2011 22:08:28 +0000 (09:08 +1100)]
server-id in ip= is not optional

The documentation suggests that server-id is an optional argument
but ip_to_var fails if it is not specified. Fix the documentation.

12 years agoHandle upper case MAC addresses in ifname option
Anton Blanchard [Mon, 26 Dec 2011 22:08:27 +0000 (09:08 +1100)]
Handle upper case MAC addresses in ifname option

While the documentation states that ifname MAC addresses must be
lower case, we silently accept upper case ones and fail later on
when udev doesn't rename the device.

Instead of adding sanity checking on the MAC address just convert
it to lower case and remove the requirement completely.

12 years ago90kernel-modules/module-setup.sh: install modules.order
Harald Hoyer [Fri, 20 Jan 2012 11:06:41 +0000 (12:06 +0100)]
90kernel-modules/module-setup.sh: install modules.order

Also install modules.order and all modules.builtin*

12 years agodmsquash-live: really changed /dev/live-baseloop to /run/initramfs/
Harald Hoyer [Fri, 20 Jan 2012 11:02:15 +0000 (12:02 +0100)]
dmsquash-live: really changed /dev/live-baseloop to /run/initramfs/

Forgot to amend my change to ce32e32f2a8288de15968c22f57fff306fa81753

12 years agomktemp was long obsoleted by coreutils
Peter Robinson [Wed, 11 Jan 2012 10:28:12 +0000 (10:28 +0000)]
mktemp was long obsoleted by coreutils

commit 2e55bb35640c5c2b3b5604e06232cc679559defa
Author: Peter Robinson <pbrobinson@gmail.com>
Date:   Wed Jan 11 10:28:05 2012 +0000

    mktemp was long obsoleted by coreutils

 dracut.spec |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

12 years agotypo fix
Hermann Gausterer [Mon, 16 Jan 2012 16:19:12 +0000 (17:19 +0100)]
typo fix

Signed-off-by: Hermann Gausterer <git-dracut-2012@mrq1.org>
12 years agofstab-sys: mount it in initramfs instead of newroot if mount point is not found
Dave Young [Thu, 12 Jan 2012 08:00:31 +0000 (16:00 +0800)]
fstab-sys: mount it in initramfs instead of newroot if mount point is not found

fstab-sys now also handles device passed by dracut argument "--mount"
The "--mount" mount point is possible not exist in $NEWROOT. Thus mount it
in initramfs if mount point is not exist in real rootfs

12 years agominor cleanups in parsing for dmsquash-live and livenet
Will Woods [Wed, 11 Jan 2012 17:48:28 +0000 (12:48 -0500)]
minor cleanups in parsing for dmsquash-live and livenet

- use wait_for_dev in livenet
- clarify log message and fix missing newline in dmsquash-live

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agointerpret 'off' as false in getargbool
Will Woods [Wed, 11 Jan 2012 17:48:27 +0000 (12:48 -0500)]
interpret 'off' as false in getargbool

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoCreate a symlink for the live image's base loop device
Brian C. Lane [Tue, 20 Dec 2011 22:22:33 +0000 (14:22 -0800)]
Create a symlink for the live image's base loop device

It is useful to know that loop device that the live image's / is mounted
from. Make a /run/initramfs/live-baseloop symlink that points to it.

Edited-By: harald@redhat.com: changed /dev/live-baseloop
                              to /run/initramfs/live-baseloop

12 years agolvm: pass the correct rd.lvm.lv parameter
Cong Wang [Tue, 20 Dec 2011 06:10:01 +0000 (14:10 +0800)]
lvm: pass the correct rd.lvm.lv parameter

rd.lvm.lv accepts ${DM_VG_NAME}/${DM_LV_NAME}, not ${DM_LV_NAME}.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agonfs: fix regex patterns in check()
Cong Wang [Tue, 20 Dec 2011 06:10:00 +0000 (14:10 +0800)]
nfs: fix regex patterns in check()

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>