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
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
14 years ago
Harald Hoyer
8ce58f1f42
add missing shebang
14 years ago
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
14 years ago
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
14 years ago
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
15 years ago
Harald Hoyer
48d2199e94
nfs/install: fixed s/LIBDIR/libdir
15 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Harald Hoyer
5acc508cae
fixed "use $libdir and $usrlibdir instead of ..."
15 years ago
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Harald Hoyer
b6a7c09070
chmod 0755 *.sh
15 years ago
Harald Hoyer
0679a6d24e
nfs: add missing nfsidmap libs
15 years ago
Harald Hoyer
7f00669875
nfs: fixed nsswitch.conf parsing
...
based on a patch of Ian Dall.
https://bugzilla.redhat.com/show_bug.cgi?id=578060
15 years ago
Harald Hoyer
9232cab470
fix IFS restoring
15 years ago
Harald Hoyer
21a74b32b2
nfs4: rpc.idmapd does not accept parameters anymore
...
modify /etc/idmapd.conf instead
15 years ago
Harald Hoyer
a39ea24f10
nfs: suppress error message about missing passwd
15 years ago
Harald Hoyer
93bc3d440c
make nfs4 work
15 years ago
Harald Hoyer
c98bcec89c
add preliminary IPv6 support
15 years ago
Harald Hoyer
4073e3a325
nfs: add rd_NFS_DOMAIN parameter to set the NFSv4 domain name
...
https://bugzilla.redhat.com/show_bug.cgi?id=537969
15 years ago
Harald Hoyer
48df9fcc11
nfs: install passwd entries for nobody and nfsnobody
15 years ago
Harald Hoyer
f214273fd6
nfs/nfsroot: do not redirect output on rdnetdebug
...
nfsroot is now in the initqueue
16 years ago
Harald Hoyer
1dc53cfd1e
nfs: specify nfs version 3 explicitly and retry with nfs version 2
16 years ago
Harald Hoyer
a52586e8ea
network: break udevsettle early
16 years ago
Harald Hoyer
5a8d8dfbb6
switch modules to initqueue-finished
16 years ago
Harald Hoyer
b806825d2a
nfs: only install libnfsidmap_nsswitch.so of all libnfsidmap_*.so
16 years ago
Harald Hoyer
67a38adacf
nfs: only install libnss_*.so which are used by nsswitch.conf
16 years ago
Harald Hoyer
6c4b24afb0
nfsroot-cleanup: don't try to read from nonexistant /tmp/nfs.rpc_pipefs_path
16 years ago
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.
16 years ago
Harald Hoyer
33ee031c4a
dracut: add --kernel-only and --no-kernel arguments
...
--kernel-only
only install kernel drivers and firmware files
--no-kernel
do not install kernel drivers and firmware files
All kernel module related install commands moved from "install"
to "installkernel".
For "--kernel-only" all installkernel scripts of the specified
modules are used, regardless of any checks, so that all modules
which might be needed by any dracut generic image are in.
The basic idea is to create two images. One image with the kernel
modules and one without. So if the kernel changes, you only have
to replace one image.
Grub and the kernel can handle multiple images, so grub entry can
look like this:
title Fedora (2.6.29.5-191.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro rhgb quiet
initrd /initrd-20090722.img
initrd /initrd-kernel-2.6.29.5-191.fc11.i586.img
initrd /initrd-config.img
initrd-20090722.img
the image provided by the initrd rpm
one old backup version is kept like with the kernel
initrd-kernel-2.6.29.5-191.fc11.i586.img
the image provided by the kernel rpm
initrd-config.img
optional image with local configuration files
16 years ago
Harald Hoyer
47e1402108
nfs: do not install whole passwd, grep for rpc user
16 years ago
Warren Togami
19c258b689
NFSv4 rpcbind should need only the rpcbind user, not the entire /etc/passwd.
...
TODO: /etc/passwd and /etc/group are not removed yet due to 90mdraid.
dledford said he'll go in and clean this up since he has the hardware
to actually test the mdmon stuff.
16 years ago
Harald Hoyer
5b2db7d177
put back the nfs mount in the udev event
...
it solves the following case:
root=/dev/nfs nfsroot=server:/path
- the server could be reachable on any interface
- any interface can get an IP by dhcp
- only one IP is allowed to mount the root
16 years ago
Harald Hoyer
9719024132
Defer mount to the real mount loop
...
Udev rules set a /dev/root symlink to the real root and add
a mount script to /mount/. This enables the proper use of pre-mount
scripts and prevents mount being killed by a udev timeout.
16 years ago
Warren Togami
bd81caa80a
Clean up NFS comments.
16 years ago
Harald Hoyer
14f450cab2
unset netroot before we return (it was set to $root without checkin)
16 years ago
Harald Hoyer
950086e987
do not assume nfs for root=/dev/... but for /dev/nfs
16 years ago
Warren Togami
9d4c1799fe
Fix legacy root=/dev/nfs nfsroot=IP:path case
...
TODO: root=/dev/nfs DHCP cases are still broken.
16 years ago
Warren Togami
6da2ee08a6
NFS empty path becomes "/tftpboot/%s" only if root=/dev/nfs legacy mode
16 years ago
Warren Togami
297cb80bab
Cleanup parse-nfsroot and NFS tests.
...
TODO: root=/dev/nfs is still broken.
16 years ago
Warren Togami
92798bf79b
netroot= variant is not supported for NFS, you must use root=
...
TODO: This temporarily breaks Legacy root=/dev/nfs.
16 years ago
Warren Togami
3847431d3d
Clarify some NFS parsing and point out things that need to be fixed.
16 years ago
Warren Togami
fb3d8cf7c2
Remove legacy nfsroot.txt derived shortcuts and accompanying tests.
...
(further cleanup is needed)
16 years ago