Harald Hoyer
14669e3a86
95nfs/module-setup.sh: whitespace fixup
2012-02-22 15:15:22 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +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
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
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
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>
2012-02-07 12:14:21 +01:00
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>
2012-02-07 12:14:21 +01:00
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>
2012-02-07 12:14:21 +01:00
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>
2012-01-23 09:48:35 +01:00
Cong Wang
eead773204
nfs: fix regex patterns in check()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
2012-01-13 11:35:49 +01:00
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>
2012-01-13 11:35:49 +01:00
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.
2011-12-15 14:49:03 +01:00
Harald Hoyer
e59f58f854
use inst_simple to install non-binary files
2011-08-12 13:11:30 +02:00
Harald Hoyer
5e802b113a
removed sourceforge references
2011-08-12 09:53:40 +02:00
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
2011-05-12 11:06:47 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
1325cddee9
let rpc user own /var/lib/rpcbind
...
https://bugzilla.redhat.com/show_bug.cgi?id=698160
2011-05-02 11:27:12 +02:00
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
2011-04-08 13:49:06 +02:00
Harald Hoyer
d125a47061
mkdir always with -m 0755
2011-04-08 10:39:46 +02:00
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.
2011-03-29 16:17:03 +02:00
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25 16:10:46 +01:00
Harald Hoyer
c9f1e3d1f4
check for getarg() function before sourcing dracut-lib.sh
...
make use of "type getarg" to check, if we really need to source
dracut-lib.sh
2011-03-25 16:10:46 +01:00
Harald Hoyer
8ce58f1f42
add missing shebang
2011-02-23 09:38:25 +01:00
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
2011-02-02 16:35:18 +01:00
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
2011-02-02 13:56:03 +01:00
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
2010-10-28 17:11:27 +02:00
Harald Hoyer
48d2199e94
nfs/install: fixed s/LIBDIR/libdir
2010-09-10 17:51:32 +02:00
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
2010-09-10 15:34:36 +02:00
Harald Hoyer
5acc508cae
fixed "use $libdir and $usrlibdir instead of ..."
2010-08-23 12:40:15 +02:00
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
2010-08-23 11:55:11 +02:00
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
Harald Hoyer
b6a7c09070
chmod 0755 *.sh
2010-05-19 09:40:48 +02:00
Harald Hoyer
0679a6d24e
nfs: add missing nfsidmap libs
2010-04-16 17:59:48 +02:00
Harald Hoyer
7f00669875
nfs: fixed nsswitch.conf parsing
...
based on a patch of Ian Dall.
https://bugzilla.redhat.com/show_bug.cgi?id=578060
2010-04-15 16:26:06 +02:00
Harald Hoyer
9232cab470
fix IFS restoring
2010-02-18 09:46:19 +01:00
Harald Hoyer
21a74b32b2
nfs4: rpc.idmapd does not accept parameters anymore
...
modify /etc/idmapd.conf instead
2010-02-15 10:43:51 +01:00
Harald Hoyer
a39ea24f10
nfs: suppress error message about missing passwd
2010-02-10 18:54:31 +01:00
Harald Hoyer
93bc3d440c
make nfs4 work
2010-02-10 17:21:46 +01:00
Harald Hoyer
c98bcec89c
add preliminary IPv6 support
2010-02-04 16:05:19 +01:00
Harald Hoyer
4073e3a325
nfs: add rd_NFS_DOMAIN parameter to set the NFSv4 domain name
...
https://bugzilla.redhat.com/show_bug.cgi?id=537969
2009-11-26 10:38:40 +01:00
Harald Hoyer
48df9fcc11
nfs: install passwd entries for nobody and nfsnobody
2009-11-26 10:38:06 +01:00
Harald Hoyer
f214273fd6
nfs/nfsroot: do not redirect output on rdnetdebug
...
nfsroot is now in the initqueue
2009-10-01 14:46:16 +02:00
Harald Hoyer
1dc53cfd1e
nfs: specify nfs version 3 explicitly and retry with nfs version 2
2009-10-01 14:46:13 +02:00
Harald Hoyer
a52586e8ea
network: break udevsettle early
2009-09-15 15:38:53 +02:00
Harald Hoyer
5a8d8dfbb6
switch modules to initqueue-finished
2009-09-15 11:17:22 +02:00
Harald Hoyer
b806825d2a
nfs: only install libnfsidmap_nsswitch.so of all libnfsidmap_*.so
2009-08-14 17:27:49 +02:00
Harald Hoyer
67a38adacf
nfs: only install libnss_*.so which are used by nsswitch.conf
2009-07-31 12:40:53 +02:00
Harald Hoyer
6c4b24afb0
nfsroot-cleanup: don't try to read from nonexistant /tmp/nfs.rpc_pipefs_path
2009-07-23 18:27:33 +02:00
Marc Grimme
2fe2945869
nfsroot-cleanup: make /var/lib/nfs/rpc_pipefs path configurable
...
/tmp/nfs.rpc_pipefs_path can contain the path where
/var/lib/nfs/rpc_pipefs will be moved before switch_root.
This is useful if /var is a separate partition in the real root.
2009-07-23 12:19:54 +02:00