Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-05-30 17:39:46 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-05-30 17:39:46 (GMT)
commita9b4e062c9cbe809b26d97264068a6bc5c2e2824 (patch)
tree56a120aa158f7917728ba4766a9407cd1abd613b
parentbadee9f99d53d5fc0c5fccd302f0a448ae17b9eb (diff)
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.
-rw-r--r--modules/base/kspost.10.core.inc4
1 files changed, 2 insertions, 2 deletions
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)