TT#28474 usage of "sed -ie": /etc/default/grube [sic] present in VMs

Due to using "sed -ie", the "e" in this case means a suffix for
backup, so it leaves the old version of the file in /etc/default/grube
after modifying /etc/default/grub, and this was not the intention, so
simply dropping the "e".

Change-Id: I81184e80db0b3327d09f23f769f74ea55f4376de
changes/75/17875/1
Manuel Montecelo 8 years ago
parent 3a7fe2d998
commit 4844134152

@ -293,7 +293,7 @@ install_vbox_iso() {
set_custom_grub_boot_options() {
echo "Adjusting default GRUB boot options (enabling net.ifnames=0)"
sed -ie 's/^GRUB_CMDLINE_LINUX_DEFAULT="\(.*\)"/GRUB_CMDLINE_LINUX_DEFAULT="\1 net.ifnames=0"/' "${TARGET}/etc/default/grub"
sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT="\(.*\)"/GRUB_CMDLINE_LINUX_DEFAULT="\1 net.ifnames=0"/' "${TARGET}/etc/default/grub"
echo "Invoking update-grub"
grml-chroot $TARGET update-grub

Loading…
Cancel
Save