-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dracut: Add support for dracut-created initrds
Signed-off-by: Michael Brown <[email protected]>
- Loading branch information
Showing
6 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
SUBDIRS = | ||
SUBDIRS += dracut | ||
SUBDIRS += finalrd | ||
SUBDIRS += grub-initrd-fallback | ||
SUBDIRS += initramfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ensure that initrd includes network and iSCSI drivers even if built | ||
# while booted from a local disk | ||
# | ||
hostonly="no" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if DRACUT | ||
|
||
dracutconfdir = @prefix@/lib/dracut/dracut.conf.d | ||
dracutmoddir = @prefix@/lib/dracut/modules.d/95sanbootable | ||
|
||
dist_dracutconf_DATA = 50-sanbootable.conf | ||
|
||
dist_dracutmod_SCRIPTS = module-setup.sh sanbootable-cmdline.sh | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
check() { | ||
return 0 | ||
} | ||
|
||
depends() { | ||
return 0 | ||
} | ||
|
||
install() { | ||
inst_hook cmdline 89 "$moddir/sanbootable-cmdline.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
# At boot time, check for an iBFT and force an iSCSI boot if one is | ||
# detected. | ||
|
||
modprobe iscsi_ibft | ||
|
||
if [ -d /sys/firmware/ibft ] ; then | ||
echo "Attempting iSCSI boot via iBFT:" \ | ||
$(cat /sys/firmware/ibft/target*/target-name) > /dev/console | ||
echo "rd.iscsi.ibft rd.iscsi.firmware " > /etc/cmdline.d/50-sanbootable.conf | ||
fi |