summaryrefslogtreecommitdiff
path: root/modules.d/95nbd
AgeCommit message (Collapse)AuthorFilesLines
2013-02-11make nbd port check more robustWim Muskee1-1/+1
The following change makes the check for the nbd port or named export more robust. I wasn't sure whether to include sed in the dracut_install() of module-setup.sh since net already does that (and nbd depends on that).
2012-09-06unquote nbd portWim Muskee1-1/+1
Name based connects fail because of the quotes around the $nbdport. For name based connects, the -N option also gets included. For instance nbd-client 192.168.0.1 '-N ltsp' /dev/nbd0. I believe the quotes are not necessary for actual port numbers.
2012-06-29modules.d/*/module-setup.sh: combine and specify type for installsHarald Hoyer1-2/+1
To speedup image creation, combine dracut_install calls and specify the exact type. E.g. inst_script instead of the generic inst.
2012-06-29modules.d/*/module-setup.sh: no more sourcing of dracutfunctionsHarald Hoyer1-1/+0
2012-03-2795nbd/nbdroot.sh: removed bashismHarald Hoyer1-1/+1
2012-03-21provide name based nbd connectsWim Muskee1-0/+5
Because nbd-server also provides name-based exports instead of port-based ones, make it possible to connect to those.
2012-02-22Renamed all shell scripts to *.shHarald Hoyer3-4/+5
2012-02-13shutdown on demandHarald Hoyer1-0/+1
Do not save and restore the initramfs, but instead, just unpack the default initramfs for shutdown on shutdown.
2012-01-25let some modules to respect $mount_needsCong Wang1-1/+1
Cc: Harald Hoyer <harald@redhat.com> Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
2011-11-15add wait_for_dev() and wait_for_mount()Harald Hoyer1-3/+5
2011-08-1195nbd/nbdroot: also mount nbd0 for root=dhcp and missing root=Harald Hoyer1-1/+3
2011-07-25fixed typosThomas Lange1-1/+1
2011-05-12dracut-functions: make local vars local and prefix with "_"Harald Hoyer1-3/+4
2011-05-10removed trailing whitespacesHarald Hoyer2-2/+2
2011-04-08get rid of absolute PATHsHarald Hoyer1-1/+1
2011-03-25Move all hooks to "$hookdir"Harald Hoyer2-3/+3
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25check for getarg() function before sourcing dracut-lib.shHarald Hoyer1-1/+1
make use of "type getarg" to check, if we really need to source dracut-lib.sh
2011-02-02renamed module-info.sh to module-setup.shHarald Hoyer1-0/+0
2011-02-02replaced check,install,installkernel with module-info.shHarald Hoyer4-32/+38
2010-09-10reformat source codeHarald Hoyer5-6/+16
removed tabs and set indention to 4 spaces added emacs and vi format headers
2010-08-23use 'type' built-in instead of external cmd 'which' in every Bash scriptAmadeusz Żołnowski1-1/+1
2009-10-01nbd/nbdroot: add better check if nbd0 is ready to be mountedHarald Hoyer1-6/+2
2009-10-01nbd/nbdroot: do not redirect debug output on rdnetdebugHarald Hoyer1-6/+0
nbdroot is now in the initqueue and rdinitdebug should cover that
2009-10-01nbd/nbdroot: use udevsettle to wait for /dev/nbd0Harald Hoyer1-1/+5
nbdroot is now in the initqueue, so we can use udevsettle
2009-10-01nbd: finish on /dev/root rather than on nbd0Harald Hoyer1-1/+1
2009-09-15network: break udevsettle earlyHarald Hoyer1-2/+4
2009-09-15switch modules to initqueue-finishedHarald Hoyer2-1/+8
2009-09-02reordered blkid/vol_id rulesHarald Hoyer3-19/+0
2009-08-19nbd/check: moved host-only checks and added ";"Harald Hoyer1-4/+3
2009-08-16Modify nbd hostonly checking to use check_block_and_slaves.Victor Lowther1-6/+15
This allows hostonly nbd checking to work in more exotic situations, such as mdraid/dmraid/lvm/crypt on top of nbd.
2009-07-22dracut: add --kernel-only and --no-kernel argumentsHarald Hoyer2-1/+2
--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
2009-07-13install "ln" per defaultHarald Hoyer1-1/+0
2009-07-13only install mount script, if nbd-client succeededHarald Hoyer1-3/+3
2009-07-03Defer mount to the real mount loopHarald Hoyer1-3/+4
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.
2009-07-02switch to initqueue handling of eventsHarald Hoyer1-1/+1
Jobs are no longer handled inside the udev events. /sbin/initqueue is called with the commands to queue. init will work on these jobs sequentially, so that we prevent jobs from being killed by udev timeouts. This serialization also prevents some problems introduced by the udev event parallelization.
2009-07-01Remove the NBD legacy format. It wasn't actually matching Debian's nbdroot ↵Warren Togami1-25/+0
implementation. Talked with Debian nbdroot author and he agreed we shouldn't support their obsolete syntax in dracut. Their root=/dev/nbd[0-9] is no longer needed. Also their syntax was very standardized requiring a separate boot= parameter.
2009-06-19renamed dracut-lib to dracut-lib.shHarald Hoyer1-1/+1
2009-06-19prepare udev rules for udev >= 143Harald Hoyer3-3/+16
2009-06-18remove redundant vol_id run from out udev rulesHarald Hoyer2-0/+7
moved mdadm rules before luks rules add nbd vol_id rules
2009-06-17netroot: Introduce detailed cmdline parsersPhilippe Seewer4-55/+74
This introduces detailed cmdline parsing, warning or aborting if the cmdline does not contain arguments according to the spec. Makeing sure the parsers don't just call getarg for netroot et al, allows their reuse inside netroot to analyse dhcp root-path as well. Hence we can get rid of the current netroot hooks. The hook itself stays in order to add further modules which should run before netroot handlers are called. This has one drawback: nfsroot needs some more logic to handle nfs specific data inside dhcp root-path. The parsers have been writting according to current discussions about cmdline arguments. This lead to the "discovery" that some test-cases violate the spec. These tests have not been removed, but change to "must fail".
2009-06-17netroot handlers: Add argument checkingPhilippe Seewer1-0/+9
This is probably not necessary, but paranoia dictates that the actual netroot handlers should check if all three required arguments (netif, root, NEWROOT) are there and useable.
2009-06-17netroot: Don't export NEWROOTPhilippe Seewer1-0/+1
Exporting NEWROOT to handlers when we already pass them two other arguments doesn't make sense. Passing it as a third argument is better.
2009-06-11NBD root: add support for LVM/LUKSDavid Dillow1-9/+9
With this change, we can now use LUKS and LVM over NBD. There are some decisions to be made regarding where we should get the fstype and fsoptions from (DHCP root vs rootfstype= etc), but the basic functionality is there.
2009-06-11network: add support for netroot=...David Dillow2-5/+9
This adds support for a command line option netroot=, which is currently equivalent to root=. This will allow us to break out handling in NBD and iSCSI to support constructs such as "root=LABEL=/ netroot=dhcp" to make use of our block device handling with network attached devices. iSCSI has not been changed in this patch as I don't currently have a way to test it.
2009-06-08NBD: fix parsing of Debian-style nbdroot configDavid Dillow1-1/+1
2009-06-05Get rid of cat and grepSeewer Philippe1-11/+1
2009-06-01Allow NFS and NBD to be built into the kernelDavid Dillow1-1/+11
Probe for NFS and NBD capability before trying to load their modules in case they are built into the kernel. Ugly use of flag files, but avoids the need for grep to be on the image.
2009-06-01cleanup shebangs in sourced scriptsDavid Dillow2-4/+0
All of the scripts are sourced, so there is no need to have will pick up on the .sh extension.
2009-06-01Add NBD supportDavid Dillow5-0/+174
This adds basic support for root on a network block device to the netroot framework.