iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add file for bootstrap distro
[automated-distro-installer]
/
fai
/
config
/
files
/
usr
/
bin
/
myncq
/
kd
diff --git
a/fai/config/files/usr/bin/myncq/kd
b/fai/config/files/usr/bin/myncq/kd
index e2b6494a4b7b8a5bc5219bc0540e2ffc6ccfe9ec..2d65edb31ea696154b24b2de52350ff980999500 100755
(executable)
--- a/
fai/config/files/usr/bin/myncq/kd
+++ b/
fai/config/files/usr/bin/myncq/kd
@@
-45,7
+45,7
@@
ata=${ata%%/*}
arg=libata.force=${ata}.00:noncq
if ! grep "^GRUB_CMDLINE_LINUX_DEFAULT=.*[\" ]${arg//./\\.}[\" ]" /etc/default/grub; then
arg=libata.force=${ata}.00:noncq
if ! grep "^GRUB_CMDLINE_LINUX_DEFAULT=.*[\" ]${arg//./\\.}[\" ]" /etc/default/grub; then
- sed -ri "s/^GRUB_CMDLINE_LINUX_DEFAULT=\"(.*)/GRUB_CMDLINE_LINUX_DEFAULT=\"$arg \1/" /etc/default/grub
+ sed -ri "s/
([\" ])libata.force=[^ ]+ */\1/g;s/
^GRUB_CMDLINE_LINUX_DEFAULT=\"(.*)/GRUB_CMDLINE_LINUX_DEFAULT=\"$arg \1/" /etc/default/grub
if $upgrub; then
echo "$0: warning: grub updated. you may want to reboot"
if type -P update-grub2 &>/dev/null; then
if $upgrub; then
echo "$0: warning: grub updated. you may want to reboot"
if type -P update-grub2 &>/dev/null; then