projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide workaround for kmod/initramfs-tools issue with NFS/netboot
[grml-live.git]
/
etc
/
grml
/
fai
/
config
/
scripts
/
GRMLBASE
/
45-grub-images
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/45-grub-images
b/etc/grml/fai/config/scripts/GRMLBASE/45-grub-images
index
84bc178
..
16c0e9a
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/45-grub-images
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/45-grub-images
@@
-11,12
+11,17
@@
set -u
TMP_CONFIG="/tmp/grub_config_efi"
TMP_CONFIG="/tmp/grub_config_efi"
+# this allows us to find this specific Grml ISO,
+# even if there are multiple Grml ISOs present
+bootfile="${GRML_NAME}_$(TZ=UTC date +%s)"
+echo "$bootfile" > "${target}/"boot/grub/bootfile.txt
+
cat > "${target}/${TMP_CONFIG}" <<EOF
cat > "${target}/${TMP_CONFIG}" <<EOF
-search.file /conf/boot
id.txt
root
+search.file /conf/boot
file_$bootfile
root
set prefix=(\$root)/boot/grub
insmod normal
normal
set prefix=(\$root)/boot/grub
insmod normal
normal
-echo "E: Could not find root device!"
+echo "E: Could not find root device
(for /conf/bootfile_$bootfile)
!"
EOF
ARCHS=(i386-pc)
EOF
ARCHS=(i386-pc)