Will Woods
c1df00d2c6
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>
2012-02-16 11:21:34 +01:00
Dave Young
75cade1216
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>
2012-02-16 11:19:07 +01:00
Harald Hoyer
a2c631c0a3
Makefile: also link dracut-shutdown.service to shutdown target
2012-02-16 09:37:11 +01:00
Harald Hoyer
6bee336909
Version 16
2012-02-15 18:05:34 +01:00
Harald Hoyer
5c4bb360e3
dracut.spec: add missing modules
2012-02-15 17:59:46 +01:00
Harald Hoyer
969394f503
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
2012-02-15 16:39:41 +01:00
Harald Hoyer
4977febf46
s/bash/sh for all new *-lib.sh
2012-02-15 15:46:24 +01:00
Will Woods
285e81c9e2
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>
2012-02-15 15:46:24 +01:00
Will Woods
d663f5aeb0
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>
2012-02-15 15:46:24 +01:00
Will Woods
370329ca3b
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>
2012-02-15 15:46:24 +01:00
Will Woods
5978983b30
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>
2012-02-15 15:46:24 +01:00
Will Woods
753c82d0e6
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>
2012-02-15 15:46:24 +01:00
Will Woods
9fcfa04ca9
port nfsroot to nfs-lib
...
Rewrite nfsroot to use nfs-lib. The functionality should be unchanged.
Signed-off-by: Will Woods <wwoods@redhat.com>
2012-02-15 15:46:24 +01:00
Will Woods
9c463909d6
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>
2012-02-15 15:46:24 +01:00
Will Woods
9d169a07ce
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>
2012-02-15 15:46:24 +01:00
Harald Hoyer
dee929cded
99base/init: removed redirection of mount errors to /dev/null
2012-02-15 15:46:24 +01:00
Harald Hoyer
e0e2fb26c9
90kernel-modules: removed hard-removal of "ocfs2"
...
put omit_driver+=" ocfs2 " in the distribution configuration file
2012-02-15 15:46:23 +01:00
Harald Hoyer
fcbcb2521c
dracut: add "--omit-driver"
2012-02-15 15:46:23 +01:00
Harald Hoyer
28f0b27fb9
TEST-40-NBD: correct symlinks by rerunning ldconfig
2012-02-15 15:08:34 +01:00
Harald Hoyer
0ddc098eb0
TEST-12-RAID-DEG: improve test case
2012-02-15 15:08:29 +01:00
Harald Hoyer
11c0e7d44e
99base/init: reload udev rules after "pre-trigger" hook
2012-02-15 11:32:21 +01:00
Harald Hoyer
dfb08e9f1c
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
2012-02-15 10:08:59 +01:00
Harald Hoyer
e539fa9980
90mdraid: add "--offroot" support
2012-02-13 21:16:31 +01:00
Harald Hoyer
e76921a58e
95terminfo/module-setup.sh: check for terminfo/l/linux
...
on Fedora 17 the old check found /etc/terminfo, but this directory is
emtpy.
2012-02-13 21:15:51 +01:00
Harald Hoyer
96d22bd7d6
test: fixed terminfo location
2012-02-13 21:15:22 +01:00
Harald Hoyer
927d9273c4
Makefile: s/dracut-initramfs-backup.sh/dracut-initramfs-restore.sh/
2012-02-13 18:20:12 +01:00
Harald Hoyer
56a4cffd30
98integrity/module-setup.sh: depend on selinux dracut module
2012-02-13 18:17:40 +01:00
Harald Hoyer
682a2a9d1a
90kernel-modules/module-setup.sh: add "ata_piix" to hardcoded modules
2012-02-13 18:16:48 +01:00
Harald Hoyer
0b1296aa4f
dracut.xml: mention log_buf_len=1M for rd.debug
2012-02-13 18:16:28 +01:00
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
2012-02-13 07:08:08 +01:00
Harald Hoyer
4cfd24d179
Backup and restore /run/initramfs via systemd services
...
This saves the space /run/initramfs is taking for the shutdown
2012-02-10 11:14:31 +01:00
Harald Hoyer
81dcf7c90a
99shutdown/shutdown: don't do console_init on shutdown emergency
2012-02-09 14:16:31 +01:00
Harald Hoyer
075de7be45
98usrmount/mount-usr.sh: remove extra slash
...
otherwise we have /sysroot//usr in fstab
2012-02-09 13:58:49 +01:00
Harald Hoyer
7b2d3d995c
dracut: honor binaries in sbin first
2012-02-09 13:58:13 +01:00
Harald Hoyer
d20d307d69
lsinitrd: silence xz test
2012-02-09 11:36:21 +01:00
Harald Hoyer
12018c91ea
TEST-15-BTRFSRAID: write diskimage to tmp dir
2012-02-08 17:02:57 +01:00
Harald Hoyer
68910ba4a5
dracut: setup clean PATH w/o existing one
2012-02-08 17:02:17 +01:00
Harald Hoyer
a74eae77ac
Version 15
2012-02-07 20:57:12 +01:00
Harald Hoyer
ce18bc4e97
30convertfs/convertfs.sh: call setfiles w/o path & check for existence
2012-02-07 20:57:12 +01:00
Harald Hoyer
567cc5d814
40network/net-genrules.sh: increase udev timeout
2012-02-07 20:52:14 +01:00
Harald Hoyer
56ac6c7e76
move all file removal cleanups to "cleanup" hook
2012-02-07 19:44:03 +01:00
Harald Hoyer
59feafc6c7
use "openvt" for emergency shell
2012-02-07 19:44:03 +01:00
Harald Hoyer
5ccc88a742
omit dash for fedora
2012-02-07 19:28:59 +01:00
Harald Hoyer
de247618e7
init/shutdown: use "command -v" instead of "type"
2012-02-07 19:28:59 +01:00
Harald Hoyer
c6c6a08850
add "install_items" to dracut.conf
2012-02-07 19:28:58 +01:00
Harald Hoyer
204db8a134
90btrfs/btrfs_finished.sh: put check in a function
2012-02-07 18:48:04 +01:00
Harald Hoyer
96b8d60a9b
dracut: precreate "${initdir}/etc/cmdline.d"
2012-02-07 18:48:04 +01:00
Harald Hoyer
4951a1199d
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.
2012-02-07 18:48:03 +01:00
Harald Hoyer
76a80dff18
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
2012-02-07 17:15:11 +01:00
Harald Hoyer
9ea901191e
dracut-functions: simplify nosegneg path
2012-02-07 17:14:54 +01:00