projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use apostroph for variables in /etc/default/mdadm
[grml-live.git]
/
etc
/
grml
/
fai
/
config
/
scripts
/
GRMLBASE
/
10-build-initramfs
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs
b/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs
index
421639c
..
9c33559
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs
@@
-4,7
+4,7
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: S
un Sep 16 22:56:4
0 CEST 2007 [mika]
+# Latest change: S
at Oct 06 16:47:5
0 CEST 2007 [mika]
################################################################################
set -u
################################################################################
set -u
@@
-16,6
+16,12
@@
cp /etc/grml/fai/live-initramfs/grml-script.init-top "$target/usr/share/initramf
FILE=$(ls -1 $target/boot/vmlinuz-* | sort -r | head -1)
KERNELVERSION=$(echo "${FILE##$target/boot/vmlinuz-}")
FILE=$(ls -1 $target/boot/vmlinuz-* | sort -r | head -1)
KERNELVERSION=$(echo "${FILE##$target/boot/vmlinuz-}")
+# make sure mdadm isn't executed in initrd:
+if [ -f "$target"/etc/default/mdadm ] ; then
+ sed -i "s/START_DAEMON=.*/START_DAEMON=false/" "$target"/etc/default/mdadm
+ sed -i "s/INITRDSTART=.*/INITRDSTART=none/" "$target"/etc/default/mdadm
+fi
+
$ROOTCMD update-initramfs -c -t -k $KERNELVERSION
## END OF FILE #################################################################
$ROOTCMD update-initramfs -c -t -k $KERNELVERSION
## END OF FILE #################################################################