Harald Hoyer [Wed, 14 Mar 2012 15:13:48 +0000 (16:13 +0100)]
remove --ctty
Harald Hoyer [Wed, 14 Mar 2012 15:00:42 +0000 (16:00 +0100)]
NEWS: update
Harald Hoyer [Wed, 14 Mar 2012 14:52:35 +0000 (15:52 +0100)]
TEST-10-RAID: wait for udev settle before deconstructing
Harald Hoyer [Wed, 14 Mar 2012 14:19:39 +0000 (15:19 +0100)]
precompile doc
Harald Hoyer [Wed, 14 Mar 2012 12:58:26 +0000 (13:58 +0100)]
replace xml documentation with asciidoc
Harald Hoyer [Wed, 14 Mar 2012 12:27:13 +0000 (13:27 +0100)]
remove dracut-gencmdline
Harald Hoyer [Wed, 14 Mar 2012 10:50:07 +0000 (11:50 +0100)]
AUTHORS: update
Harald Hoyer [Wed, 14 Mar 2012 10:48:48 +0000 (11:48 +0100)]
README: added github and sourceforge git links
Will Woods [Thu, 8 Mar 2012 23:03:48 +0000 (18:03 -0500)]
Add 'live.updates' to livenet module
live.updates allows you to specify the URL for an "updates image" that
should be applied to the live runtime before switch_root.
The URL can be anything supported by url-lib (http, https, ftp, possibly
nfs) and the image can be anything supported by img-lib (xz/gzip
compressed cpio/tar, uncompressed cpio/tar, filesystem image, etc.)
Will Woods [Thu, 8 Mar 2012 23:03:39 +0000 (18:03 -0500)]
url-lib: clean up output
For curl_fetch_url (http/https/ftp):
- use --progress-bar (the output is less messy)
- print the URL we're fetching so the user know's what's happening
For curl and nfs:
- don't echo the filename if it was provided by the user
Will Woods [Thu, 8 Mar 2012 23:02:29 +0000 (18:02 -0500)]
img-lib: fix unpack_img()
- det_img should have been det_archive
- for ft=xz|gzip|bzip2, decompr should be "$ft -dc"
Dan Horák [Fri, 2 Mar 2012 10:41:37 +0000 (11:41 +0100)]
install ctcm network module on s390
The ctcm module is not loaded automagically because it doesn't pass the
"ether_type_trans" test in 40net/module-setup.sh, so load it explicitly.
Harald Hoyer [Thu, 8 Mar 2012 12:40:21 +0000 (13:40 +0100)]
dracut.spec: add 98pollcdrom
Harald Hoyer [Thu, 8 Mar 2012 11:26:00 +0000 (12:26 +0100)]
95iscsi/iscsiroot.sh: fix for empty $root
Harald Hoyer [Thu, 8 Mar 2012 11:25:30 +0000 (12:25 +0100)]
TEST-20-NFS/test.sh: fsck with "-a"
Will Woods [Tue, 6 Mar 2012 23:25:25 +0000 (18:25 -0500)]
add initqueue --env and "online" hook
The "online" hook runs whenever a network interface comes online (that
is, once it's actually up and configured).
The initqueue --env argument is used to set "$netif" to the name of the
newly-online network interface.
Will Woods [Tue, 6 Mar 2012 23:25:24 +0000 (18:25 -0500)]
network: refactor stuff from netroot/parse-ip-opts to net-lib
Add new functions: all_ifaces_up, get_netroot_ip, ip_is_local, ifdown,
setup_net, set_ifname, ibft_to_cmdline
Use them in netroot.sh and parse-ip-opts.sh.
There's also a couple little unrelated cleanups.
Harald Hoyer [Fri, 2 Mar 2012 14:08:25 +0000 (15:08 +0100)]
move wait_for_loginit() to dracut-lib.sh
Harald Hoyer [Fri, 2 Mar 2012 13:53:22 +0000 (14:53 +0100)]
98pollcdrom: factored out the ugly cdrom polling in the main loop
Harald Hoyer [Fri, 2 Mar 2012 13:46:11 +0000 (14:46 +0100)]
add "initqueue/*" to hookdirs and create them in dracut itsself
now we can just use
inst_hook initqueue/settled 99 "$moddir/pollcdrom.sh"
Harald Hoyer [Fri, 2 Mar 2012 12:58:48 +0000 (13:58 +0100)]
TEST-20-NFS: use ext3 on server and fsck after kill
Harald Hoyer [Fri, 2 Mar 2012 13:25:57 +0000 (14:25 +0100)]
get rid of /tmp/root.info
Harald Hoyer [Fri, 2 Mar 2012 11:03:38 +0000 (12:03 +0100)]
ifup.sh: check for "-m" to set manualup
Harald Hoyer [Fri, 2 Mar 2012 11:01:49 +0000 (12:01 +0100)]
dracut-functions.sh: check for .kernelmodseen dir, before using it
Harald Hoyer [Fri, 2 Mar 2012 10:39:11 +0000 (11:39 +0100)]
40network/net-genrules.sh: move ifup in the initqueue
Will Woods [Wed, 7 Mar 2012 22:22:18 +0000 (17:22 -0500)]
fix apply-live-updates failing because of /lib symlink
Since cp won't copy a directory over a symlink, any updates that were
supposed to go into e.g. /lib would get dropped if you had /updates/lib
as an actual directory, but the target system had /lib->/usr/lib.
Will Woods [Wed, 7 Mar 2012 22:21:54 +0000 (17:21 -0500)]
write-ifcfg.sh: add UUID=.. and save the lease files with the same uuid
As described in https://bugzilla.redhat.com/show_bug.cgi?id=541410#c2,
if you want NetworkManager to take over an interface that you're using
for NFS root (or other network root device), you need to:
a) set UUID=<uuid> in ifcfg-<iface>, and
b) save the lease file as /var/lib/dhclient-<uuid>-<iface>.lease
This patch should make write-ifcfg handle both these things.
Will Woods [Wed, 7 Mar 2012 22:21:53 +0000 (17:21 -0500)]
write-ifcfg.sh: cleanups
mkdir -p creates intermediate directories and never returns an error, so
we don't need to create the intermediate directories ourself.
Harald Hoyer [Thu, 8 Mar 2012 09:58:16 +0000 (10:58 +0100)]
40network/kill-dhclient.sh: kill dhclient silently
Will Woods [Wed, 29 Feb 2012 18:09:57 +0000 (13:09 -0500)]
url-lib: make nfs support optional
Only include /lib/nfs-lib.sh if it exists, and then only run
add_url_handler if nfs-lib was imported.
Will Woods [Wed, 29 Feb 2012 18:09:58 +0000 (13:09 -0500)]
move emergency_shell to dracut-lib.sh
This lets things running outside init call an emergency_shell.
(example: scripts called by initqueue)
Jan Stodola [Thu, 1 Mar 2012 19:22:57 +0000 (20:22 +0100)]
Fix correct nfs path
Harald Hoyer [Thu, 1 Mar 2012 16:45:30 +0000 (17:45 +0100)]
dracut-functions.sh:install_kmod_with_fw() delay .kernelmodseen
first check for omit, then mark the kernel module as seen
when we temporarily omit_drivers, we don't want to mark them as seen.
example: nfs.ko module in kernel-modules, but the nfs module
should be able to load it later on.
Harald Hoyer [Wed, 29 Feb 2012 15:20:02 +0000 (16:20 +0100)]
90crypt/parse-crypt.sh: simplify rd.luks.uuid testing
Harald Hoyer [Wed, 29 Feb 2012 12:21:51 +0000 (13:21 +0100)]
30convertfs/convertfs.sh: correct check for /usr/bin
Harald Hoyer [Tue, 28 Feb 2012 15:35:08 +0000 (16:35 +0100)]
98usrmount/mount-usr.sh: check, if we have $NEWROOT/etc/fstab
Harald Hoyer [Tue, 28 Feb 2012 11:54:01 +0000 (12:54 +0100)]
98usrmount/mount-usr.sh: ignore comments in fstab
Harald Hoyer [Tue, 28 Feb 2012 11:19:39 +0000 (12:19 +0100)]
TODO: update
Harald Hoyer [Sat, 25 Feb 2012 16:22:02 +0000 (17:22 +0100)]
make bzip2 optional
Harald Hoyer [Sat, 25 Feb 2012 16:18:51 +0000 (17:18 +0100)]
10i18n/module-setup.sh: optimize install of all kbd files
Harald Hoyer [Sat, 25 Feb 2012 15:51:35 +0000 (16:51 +0100)]
95terminfo/module-setup.sh: no need to call "find"
Harald Hoyer [Sat, 25 Feb 2012 15:40:38 +0000 (16:40 +0100)]
dracut.spec: require "hardlink"
Harald Hoyer [Sat, 25 Feb 2012 15:11:36 +0000 (16:11 +0100)]
dracut.sh/dracut-functions.sh: use a marker-dir for kernel modules
use "$initdir/.kernelmodseen" to mark kernel modules, which we already
handled with install_kmod_with_fw()
Harald Hoyer [Sat, 25 Feb 2012 15:10:07 +0000 (16:10 +0100)]
dracut-functions.sh: instmods() print only filename instead of fullpath
do not print the full path, when we use "find" for kernel modules, but
rather only the filename.
Harald Hoyer [Sat, 25 Feb 2012 15:09:38 +0000 (16:09 +0100)]
dracut-functions.sh: instmods() removed special case for "=ata"
Harald Hoyer [Sat, 25 Feb 2012 15:08:30 +0000 (16:08 +0100)]
dracut-functions.sh: instmods(): replace egrep with shell code
Harald Hoyer [Sat, 25 Feb 2012 15:07:45 +0000 (16:07 +0100)]
dracut-functions.sh: get_fs_env() replaced egrep with shell
Harald Hoyer [Sat, 25 Feb 2012 15:06:38 +0000 (16:06 +0100)]
30convertfs/convertfs.sh: use hardlinks for inter-/usr cp
Harald Hoyer [Sat, 25 Feb 2012 15:06:16 +0000 (16:06 +0100)]
95nfs/module-setup.sh: removed "egrep" and "ls" calls
Harald Hoyer [Sat, 25 Feb 2012 15:05:51 +0000 (16:05 +0100)]
99fs-lib/module-setup.sh: removed "touch"
Harald Hoyer [Fri, 24 Feb 2012 14:38:08 +0000 (15:38 +0100)]
Version 017
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
Harald Hoyer [Fri, 24 Feb 2012 11:49:49 +0000 (12:49 +0100)]
dracut-functions.sh: optimize ldd
Harald Hoyer [Fri, 24 Feb 2012 10:47:17 +0000 (11:47 +0100)]
dracut-functions.sh: only call ldd in find_binary() for "*.so*"
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.
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
Harald Hoyer [Thu, 23 Feb 2012 11:26:16 +0000 (12:26 +0100)]
dracut.spec,Makefile: backward compat symlink for dracut-functions.sh
Harald Hoyer [Wed, 22 Feb 2012 18:51:55 +0000 (19:51 +0100)]
dracut.spec: changes for RHEL-6
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.
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
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.
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>
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.
Harald Hoyer [Wed, 22 Feb 2012 14:33:08 +0000 (15:33 +0100)]
git2spec.pl: detect renames
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
Harald Hoyer [Wed, 22 Feb 2012 15:12:10 +0000 (16:12 +0100)]
change omit_drivers to support regexp expressions
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
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
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()
Harald Hoyer [Wed, 22 Feb 2012 12:05:23 +0000 (13:05 +0100)]
dracut-functions.sh:inst_simple(): no inst_dir if dir exists
Harald Hoyer [Wed, 22 Feb 2012 12:04:37 +0000 (13:04 +0100)]
dracut-functions.sh: set IFS only for variable setting
Harald Hoyer [Wed, 22 Feb 2012 12:04:16 +0000 (13:04 +0100)]
dracut-functions.sh: turn off regexp for strstr()
Harald Hoyer [Wed, 22 Feb 2012 11:28:20 +0000 (12:28 +0100)]
dracut.sh: skip symlink dirs for prelink unlink
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
Harald Hoyer [Wed, 22 Feb 2012 10:35:13 +0000 (11:35 +0100)]
95nfs/module-setup.sh: whitespace fixup
Harald Hoyer [Wed, 22 Feb 2012 09:14:17 +0000 (10:14 +0100)]
Renamed all shell scripts to *.sh
Harald Hoyer [Wed, 22 Feb 2012 09:15:24 +0000 (10:15 +0100)]
TEST-30-ISCSI/test.sh: factor out client runs
Harald Hoyer [Wed, 22 Feb 2012 09:15:49 +0000 (10:15 +0100)]
.gitignore: add eclipse directories
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>
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.
Harald Hoyer [Thu, 16 Feb 2012 10:49:19 +0000 (11:49 +0100)]
dracut-functions: documentation and restructuring
Harald Hoyer [Thu, 16 Feb 2012 10:48:17 +0000 (11:48 +0100)]
dracut-functions: factor out all get_maj_min() variants
Harald Hoyer [Thu, 16 Feb 2012 10:37:21 +0000 (11:37 +0100)]
TEST-30-ISCSI: add test case for "root=iscsi:...." and untabify
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
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>
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>
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>
Harald Hoyer [Thu, 16 Feb 2012 08:36:13 +0000 (09:36 +0100)]
Makefile: also link dracut-shutdown.service to shutdown target
Harald Hoyer [Wed, 15 Feb 2012 17:05:34 +0000 (18:05 +0100)]
Version 16
Harald Hoyer [Wed, 15 Feb 2012 16:59:46 +0000 (17:59 +0100)]
dracut.spec: add missing modules
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
Harald Hoyer [Wed, 15 Feb 2012 14:45:42 +0000 (15:45 +0100)]
s/bash/sh for all new *-lib.sh
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>
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>
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>
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>
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>
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>
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>
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>