From a9b4e062c9cbe809b26d97264068a6bc5c2e2824 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 30 May 2012 17:39:46 +0000 Subject: base: fix over-sed of getty settings The previous sed was now also affecting the Documentation= line. Make it more specific to avoid this. Avoids some errors during early boot related to bad URIs in these service files. --- diff --git a/modules/base/kspost.10.core.inc b/modules/base/kspost.10.core.inc index 34814f8..46ed478 100644 --- a/modules/base/kspost.10.core.inc +++ b/modules/base/kspost.10.core.inc @@ -52,9 +52,9 @@ SYSFONT=sun12x22 __EOF__ # OLPC custom VT layout and serial console setup (#9517, #10354) -sed -i -e 's/agetty.*/mingetty --loginpause --autologin root --noclear %I/' \ +sed -i -e 's:/sbin/agetty.*:/sbin/mingetty --loginpause --autologin root --noclear %:' \ /lib/systemd/system/getty\@.service -sed -i -e 's:agetty.*:agetty -L -l /bin/bash -w -n %I 115200 vt100:' \ +sed -i -e 's:/sbin/agetty.*:/sbin/agetty -L -l /bin/bash -w -n %I 115200 vt100:' \ /lib/systemd/system/serial-getty\@.service # Enable tmpfs mounts dictated by rwtab (#9637) -- cgit v0.9.1