Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
e684eab878
nfs/nfsroot-cleanup.sh: silently try to umount rpc_pipefs
12 years ago
Harald Hoyer
de74e1ef41
Rewrite "rootok" and "netroot" logic
...
Previously if "$rootok" = 1, parsing of netroot command line arguments
was skipped. For multiple netroot arguments, all parse scripts have to
run.
Previously only the first netroot argument was taken into account for
the parsing scripts. Now every netroot argument is processed.
12 years ago
Harald Hoyer
ffc68f357e
use ${var:+val} rather than ${var+val}
...
${var:+val} also catches var=""
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
41bfa5dad1
nfs/module-setup.sh: combine egreps for /etc/passwd and /etc/group
12 years ago
Harald Hoyer
18d0c9b858
nfs/nfsroot.sh: only cat /etc/fstab, if existant
12 years ago
Harald Hoyer
d351541ee6
make host_fs_types a hashmap
...
This requires bash >= 4, but hash maps are so much more comfortable
12 years ago
Harald Hoyer
6e0c1c448d
nfs/nfsroot.sh: trigger nfs mount with cat'ing /etc/fstab
...
otherwise the whole nfs communication can take too long for the
systemd-fstab-generator
12 years ago
Harald Hoyer
41eba87b32
dracut_need_initqueue
12 years ago
Harald Hoyer
2b5cd3dbf8
nfs/nfsroot-cleanup.sh: mount --bind instead of --move
12 years ago
Harald Hoyer
a67a6f957d
nfs/nfs-start-rpc.sh: prevent mount error, if sunrpc kernel module is not in the initramfs
...
https://bugzilla.redhat.com/show_bug.cgi?id=870632
12 years ago
Harald Hoyer
2b9be6f707
[nfs|cifs]root.sh: make "/dev/root" a symlink, so it gets cleaned up later on
12 years ago
Harald Hoyer
8714280104
only install /etc/modprobe.d for hostonly
13 years ago
Harald Hoyer
167a320e5f
s/libnss*.so/libnss_*.so so that we don't install libnss3.so
13 years ago
Harald Hoyer
ba111df2b9
nfs: install all nfs submodules
13 years ago
Harald Hoyer
6ca264a151
nfs/module-setup.sh: check for "rpc.rpc" before running chown
13 years ago
Harald Hoyer
68e7661ca7
deprecate old command line options
13 years ago
Dave Young
83a420674b
nfs: install modprobe config file
...
install nfs modprobe config file
For nfs4, in case nfs.ko is not loaded mount.nfs4 will try to load
nfs4.ko instead of nfs.ko. Fedora nfs-utils creates a lib/modprobe.d/nfs.conf
in which there's below alias:
alias nfs4 nfs
Dracut also need this file to auto load nfs kernel module.
Tested booting to a fedora 17 nfsroot share.
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
13 years ago
Harald Hoyer
9f6baa127a
nfs: extend libnss wildcard
13 years ago
Harald Hoyer
d77540c8e4
get rid of libdir and usrlibdir
13 years ago
Harald Hoyer
eef7649e71
merge "cleanup" and "pre-pivot-cleanup" hooks
13 years ago
Dave Young
1bd76bf981
move cleanup scripts to pre-pivot-cleanup hook
...
below cleanup scripts is moved:
40network: kill-dhclient.sh
90crypt: crypt-cleanup.sh
90multipath: multipathd-stop.sh
95iscsi: cleanup-iscsi.sh
95nfs: nfsroot-cleanup.sh
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Jon Ander Hernandez
c9143a63fe
Debian multiarch support
...
Another solution could be searching in directories found at
/etc/ld.so.conf.d/*.conf or adding a new parameter. Here is a patch
which adds a new --libdirs parameter, and also a new inst_libdir_file
function which will try to expand metacharacters on each lib
directory:
inst_libdir_file "libdevmapper-event-lvm*.so"
13 years ago
Harald Hoyer
8a5456e872
95nfs/nfs-lib.sh: add server-ip to nfs server search
13 years ago
Harald Hoyer
5e5f3d5e6c
95nfs/module-setup.sh: removed "egrep" and "ls" calls
13 years ago
Harald Hoyer
14669e3a86
95nfs/module-setup.sh: whitespace fixup
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
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
13 years ago
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>
13 years ago
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>
13 years ago
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
13 years ago
Dave Young
c6655c4115
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>
13 years ago
Dave Young
65bb31a405
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>
13 years ago
Dave Young
cc78087b83
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>
13 years ago
Dave Young
59ee80764e
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>
13 years ago
Cong Wang
eead773204
nfs: fix regex patterns in check()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
13 years ago
Cong Wang
1b7fd0fa3e
Check module dependencies of mount points
...
Like -H, we need to poll every module to check if it is needed
to mount a specific device in '--mount'.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
13 years ago
Harald Hoyer
480d772f22
*/module-setup.sh: use host_fs_types host_devs
...
For the $hostonly case, use $host_fs_types and $host_devs to determine,
if a module has to be included in the initramfs.
13 years ago
Harald Hoyer
e59f58f854
use inst_simple to install non-binary files
14 years ago
Harald Hoyer
5e802b113a
removed sourceforge references
14 years ago
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
1325cddee9
let rpc user own /var/lib/rpcbind
...
https://bugzilla.redhat.com/show_bug.cgi?id=698160
14 years ago
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
14 years ago
Harald Hoyer
d125a47061
mkdir always with -m 0755
14 years ago
Jon Ander Hernandez
c174aea07d
Ensure rpc_pipefs is mounted
...
While on some systems (like Fedora) rpc_pipefs is mounted
automatically when sunrpc module is loaded, on Debian based systems it
needs to be mounted manually.
14 years ago
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
14 years ago