platform/upstream/dracut.git
12 years agoVersion 017 017
Harald Hoyer [Fri, 24 Feb 2012 14:38:08 +0000 (15:38 +0100)]
Version 017

12 years ago30convertfs/convertfs.sh: add check for /usr/bin
Harald Hoyer [Fri, 24 Feb 2012 13:54:59 +0000 (14:54 +0100)]
30convertfs/convertfs.sh: add check for /usr/bin

Check if /usr is mounted, by checking for /usr/bin

12 years agodracut-functions.sh: optimize ldd
Harald Hoyer [Fri, 24 Feb 2012 11:49:49 +0000 (12:49 +0100)]
dracut-functions.sh: optimize ldd

12 years agodracut-functions.sh: only call ldd in find_binary() for "*.so*"
Harald Hoyer [Fri, 24 Feb 2012 10:47:17 +0000 (11:47 +0100)]
dracut-functions.sh: only call ldd in find_binary() for "*.so*"

12 years agodracut.sh: first install /usr dirs, then toplevel
Harald Hoyer [Thu, 23 Feb 2012 20:10:17 +0000 (21:10 +0100)]
dracut.sh: first install /usr dirs, then toplevel

This saves some checks in inst_dir.

12 years agodracut-functions.sh: optimized
Harald Hoyer [Thu, 23 Feb 2012 20:09:39 +0000 (21:09 +0100)]
dracut-functions.sh: optimized

get rid off lots of duplicated checks and code

12 years agodracut.spec,Makefile: backward compat symlink for dracut-functions.sh
Harald Hoyer [Thu, 23 Feb 2012 11:26:16 +0000 (12:26 +0100)]
dracut.spec,Makefile: backward compat symlink for dracut-functions.sh

12 years agodracut.spec: changes for RHEL-6
Harald Hoyer [Wed, 22 Feb 2012 18:51:55 +0000 (19:51 +0100)]
dracut.spec: changes for RHEL-6

12 years agohost-only checks corrected and kernel_only mode
Harald Hoyer [Wed, 22 Feb 2012 18:07:39 +0000 (19:07 +0100)]
host-only checks corrected and kernel_only mode

In kernel_only mode, we don't want to write /etc/cmdline.d

Correctly return the check functions, so we have a valid return of
for_each_host_dev_fs().

mdraid and dmraid functions had wrong checkings for the filesystem
type.

12 years agodracut-functions.sh:for_each_host_dev_fs() return a value
Harald Hoyer [Wed, 22 Feb 2012 18:06:00 +0000 (19:06 +0100)]
dracut-functions.sh:for_each_host_dev_fs() return a value

for_each_host_dev_fs() now returns 0 if one func returned with 0

12 years agolvm: Only activate a given vg+lv once.
Colin Guthrie [Thu, 16 Feb 2012 00:00:03 +0000 (00:00 +0000)]
lvm: Only activate a given vg+lv once.

Due to the way the main loop runs to detect partions, the same one
might be included twice (albeit via different symlinks.

This code simply prevents the same combo being activated twice.

A better fix might simply be to not include duplicate (after
resolving symlinks) entries in the host_fs_types variable.

12 years agomount-usr: Calculate and pass full fsck options when mounting /usr.
Colin Guthrie [Thu, 15 Dec 2011 21:53:46 +0000 (21:53 +0000)]
mount-usr: Calculate and pass full fsck options when mounting /usr.

Edited-By: Harald Hoyer <harald@redhat.com>
12 years agofs-lib: No need to pass in _dev and _fop as they are inherited, not used as arguments.
Colin Guthrie [Thu, 15 Dec 2011 21:48:00 +0000 (21:48 +0000)]
fs-lib: No need to pass in _dev and _fop as they are inherited, not used as arguments.

12 years agogit2spec.pl: detect renames
Harald Hoyer [Wed, 22 Feb 2012 14:33:08 +0000 (15:33 +0100)]
git2spec.pl: detect renames

12 years ago90kernel-modules/module-setup.sh: exclude nfs* lockd from standard
Harald Hoyer [Wed, 22 Feb 2012 10:53:26 +0000 (11:53 +0100)]
90kernel-modules/module-setup.sh: exclude nfs* lockd from standard

do not install nfs* lockd filesystems for the standard kernel modules

12 years agochange omit_drivers to support regexp expressions
Harald Hoyer [Wed, 22 Feb 2012 15:12:10 +0000 (16:12 +0100)]
change omit_drivers to support regexp expressions

12 years agodracut.sh: do not install some files in installkernel
Harald Hoyer [Wed, 22 Feb 2012 15:11:19 +0000 (16:11 +0100)]
dracut.sh: do not install some files in installkernel

/etc/cmdline.d
/etc/fstab

12 years ago40network/parse-ip-opts.sh: "local" can only be used in functions
Harald Hoyer [Wed, 22 Feb 2012 14:14:34 +0000 (15:14 +0100)]
40network/parse-ip-opts.sh: "local" can only be used in functions

12 years agodracut-functions.sh:inst_library(): readlink source dir first
Harald Hoyer [Wed, 22 Feb 2012 12:06:05 +0000 (13:06 +0100)]
dracut-functions.sh:inst_library(): readlink source dir first

read link of the source dir, before convert_abs_to_rel()

12 years agodracut-functions.sh:inst_simple(): no inst_dir if dir exists
Harald Hoyer [Wed, 22 Feb 2012 12:05:23 +0000 (13:05 +0100)]
dracut-functions.sh:inst_simple(): no inst_dir if dir exists

12 years agodracut-functions.sh: set IFS only for variable setting
Harald Hoyer [Wed, 22 Feb 2012 12:04:37 +0000 (13:04 +0100)]
dracut-functions.sh: set IFS only for variable setting

12 years agodracut-functions.sh: turn off regexp for strstr()
Harald Hoyer [Wed, 22 Feb 2012 12:04:16 +0000 (13:04 +0100)]
dracut-functions.sh: turn off regexp for strstr()

12 years agodracut.sh: skip symlink dirs for prelink unlink
Harald Hoyer [Wed, 22 Feb 2012 11:28:20 +0000 (12:28 +0100)]
dracut.sh: skip symlink dirs for prelink unlink

12 years ago90kernel-modules/module-setup.sh: install modules.* in installkernel()
Harald Hoyer [Wed, 22 Feb 2012 10:49:47 +0000 (11:49 +0100)]
90kernel-modules/module-setup.sh: install modules.* in installkernel()

modules.* should be in the kernel initramfs

12 years ago95nfs/module-setup.sh: whitespace fixup
Harald Hoyer [Wed, 22 Feb 2012 10:35:13 +0000 (11:35 +0100)]
95nfs/module-setup.sh: whitespace fixup

12 years agoRenamed all shell scripts to *.sh
Harald Hoyer [Wed, 22 Feb 2012 09:14:17 +0000 (10:14 +0100)]
Renamed all shell scripts to *.sh

12 years agoTEST-30-ISCSI/test.sh: factor out client runs
Harald Hoyer [Wed, 22 Feb 2012 09:15:24 +0000 (10:15 +0100)]
TEST-30-ISCSI/test.sh: factor out client runs

12 years ago.gitignore: add eclipse directories
Harald Hoyer [Wed, 22 Feb 2012 09:15:49 +0000 (10:15 +0100)]
.gitignore: add eclipse directories

12 years agourl-lib: fix fetch_url return value for dotfiles
Will Woods [Thu, 16 Feb 2012 23:54:49 +0000 (18:54 -0500)]
url-lib: fix fetch_url return value for dotfiles

If you do "fetch_url $url/.somefile", fetch_url would return failure,
because "$outdir/*" wouldn't match the file.

Use ls -A (which busybox ls supports) to actually find possible dotfiles
in the created output dir.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago98usrmount/mount-usr.sh: honor fs_passno in /etc/fstab
Harald Hoyer [Mon, 20 Feb 2012 16:27:32 +0000 (17:27 +0100)]
98usrmount/mount-usr.sh: honor fs_passno in /etc/fstab

If the sixth field in /etc/fstab is "0" or not present for /usr, do not
run fsck.

This prevents fsck for nfs /usr also.

12 years agodracut-functions: documentation and restructuring
Harald Hoyer [Thu, 16 Feb 2012 10:49:19 +0000 (11:49 +0100)]
dracut-functions: documentation and restructuring

12 years agodracut-functions: factor out all get_maj_min() variants
Harald Hoyer [Thu, 16 Feb 2012 10:48:17 +0000 (11:48 +0100)]
dracut-functions: factor out all get_maj_min() variants

12 years agoTEST-30-ISCSI: add test case for "root=iscsi:...." and untabify
Harald Hoyer [Thu, 16 Feb 2012 10:37:21 +0000 (11:37 +0100)]
TEST-30-ISCSI: add test case for "root=iscsi:...." and untabify

12 years ago95iscsi: fix "root=iscsi:...." case
Harald Hoyer [Thu, 16 Feb 2012 10:34:37 +0000 (11:34 +0100)]
95iscsi: fix "root=iscsi:...." case

install udev rules and wait for /dev/root

12 years agossh-client module install fix
Dave Young [Wed, 15 Feb 2012 06:40:24 +0000 (14:40 +0800)]
ssh-client module install fix

commit 38164332e198f7cc8f339b42d555796918de04b3 try to
disallow ssh-client install for without proper options.
But ssh-client will fail installation with --sshkey for
publickey mode

Fix it by refusing to install only when both --ctty and --sshkey
are not added in options.

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agolivenet: avoid spurious error message / wait_for_dev
Will Woods [Wed, 15 Feb 2012 18:36:09 +0000 (13:36 -0500)]
livenet: avoid spurious error message / wait_for_dev

If the user didn't request a livenet boot, don't print an error
and don't do wait_for_dev.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoadd function wait_for_route_ok
Dave Young [Thu, 16 Feb 2012 01:36:29 +0000 (09:36 +0800)]
add function wait_for_route_ok

Manually setuping nic through udev is not always done when
we want network access. Here add a function wait_for_route_ok to
wait and make sure the network is accesible

[v1 -> v2]:
Harald: don't use bash syntax
Add check for [ -n "$li" ] because `ip route show` will show nothing probably

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoMakefile: also link dracut-shutdown.service to shutdown target
Harald Hoyer [Thu, 16 Feb 2012 08:36:13 +0000 (09:36 +0100)]
Makefile: also link dracut-shutdown.service to shutdown target

12 years agoVersion 16 016
Harald Hoyer [Wed, 15 Feb 2012 17:05:34 +0000 (18:05 +0100)]
Version 16

12 years agodracut.spec: add missing modules
Harald Hoyer [Wed, 15 Feb 2012 16:59:46 +0000 (17:59 +0100)]
dracut.spec: add missing modules

12 years ago95nfs/nfs-lib.sh: do not bail out at sourcing in nfsroot_from_dhcp()
Harald Hoyer [Wed, 15 Feb 2012 15:39:41 +0000 (16:39 +0100)]
95nfs/nfs-lib.sh: do not bail out at sourcing in nfsroot_from_dhcp()

nfsroot_from_dhcp() returned with failure if one of
/tmp/net.$iface.override /tmp/dhclient.$iface.dhcpopts was missing

12 years agos/bash/sh for all new *-lib.sh
Harald Hoyer [Wed, 15 Feb 2012 14:45:42 +0000 (15:45 +0100)]
s/bash/sh for all new *-lib.sh

12 years agoadd img-lib: a library for handling filesystem images
Will Woods [Tue, 14 Feb 2012 17:38:09 +0000 (12:38 -0500)]
add img-lib: a library for handling filesystem images

img-lib handles identifying and unpacking archives (uncompressed or
compressed) and filesystem images.

Currently tar and gzip are required; cpio and xz are optional, and bzip2
is supported but unused.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoadd set_http_header to url-lib
Will Woods [Tue, 14 Feb 2012 17:38:08 +0000 (12:38 -0500)]
add set_http_header to url-lib

This allows you to set custom headers for curl to send with HTTP
requests.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agourl-lib: add support for NFS
Will Woods [Tue, 14 Feb 2012 17:38:07 +0000 (12:38 -0500)]
url-lib: add support for NFS

This adds nfs_fetch_url to allow fetching arbitrary files from NFS.

This means that livenet can now run using an NFS-mounted live image,
which reduces memory usage by a lot.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago90livenet: port to url-lib
Will Woods [Tue, 14 Feb 2012 17:38:06 +0000 (12:38 -0500)]
90livenet: port to url-lib

This makes the livenetroot module use url-lib for fetching its root
image/filesystem. There's also some minor tweaks for POSIX compliance.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoadd module 45url-lib
Will Woods [Tue, 14 Feb 2012 17:38:05 +0000 (12:38 -0500)]
add module 45url-lib

url-lib adds some functions for dealing with URLs (mostly for fetching
files, for the moment).

It uses curl to handle http/https/ftp URLs, but it can be extended by other
modules at runtime by using the "add_url_handler" function.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoport nfsroot to nfs-lib
Will Woods [Tue, 14 Feb 2012 17:38:04 +0000 (12:38 -0500)]
port nfsroot to nfs-lib

Rewrite nfsroot to use nfs-lib. The functionality should be unchanged.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago95nfs: add nfs-lib.sh
Will Woods [Tue, 14 Feb 2012 17:38:03 +0000 (12:38 -0500)]
95nfs: add nfs-lib.sh

nfs-lib.sh contains a bunch of functions used to parse NFS "url"s of
various types, pull nfs information out of dhcp info, and actually
perform nfs mounts sanely.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago40network: add net-lib.sh
Will Woods [Tue, 14 Feb 2012 17:38:02 +0000 (12:38 -0500)]
40network: add net-lib.sh

net-lib.sh is a library of useful functions for network stuff.

More things may get added/moved here in the future.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago99base/init: removed redirection of mount errors to /dev/null
Harald Hoyer [Wed, 15 Feb 2012 14:40:04 +0000 (15:40 +0100)]
99base/init: removed redirection of mount errors to /dev/null

12 years ago90kernel-modules: removed hard-removal of "ocfs2"
Harald Hoyer [Wed, 15 Feb 2012 13:53:58 +0000 (14:53 +0100)]
90kernel-modules: removed hard-removal of "ocfs2"

put omit_driver+=" ocfs2 " in the distribution configuration file

12 years agodracut: add "--omit-driver"
Harald Hoyer [Wed, 15 Feb 2012 13:53:18 +0000 (14:53 +0100)]
dracut: add "--omit-driver"

12 years agoTEST-40-NBD: correct symlinks by rerunning ldconfig
Harald Hoyer [Wed, 15 Feb 2012 13:10:47 +0000 (14:10 +0100)]
TEST-40-NBD: correct symlinks by rerunning ldconfig

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.