[arch-releng] [PATCH] [configs/releng] Rename again / rework autologin at .service

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Sat Oct 20 12:47:48 EDT 2012


-f is not needed anymore, disable explicitly default getty service

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
---
 configs/releng/build.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/configs/releng/build.sh b/configs/releng/build.sh
index e758ff3..006f3fb 100755
--- a/configs/releng/build.sh
+++ b/configs/releng/build.sh
@@ -174,8 +174,9 @@ make_customize_root_image() {
         sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist
         patch ${work_dir}/root-image/usr/bin/pacman-key < ${script_path}/pacman-key-4.0.3_unattended-keyring-init.patch
         sed -i 's/#\(en_US\.UTF-8\)/\1/' ${work_dir}/root-image/etc/locale.gen
-        sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#' \
-            ${work_dir}/root-image/usr/lib/systemd/system/getty at .service > ${work_dir}/root-image/etc/systemd/system/getty at .service
+        sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#;
+             s#\(^Alias=getty.target.wants/\).\+#\1autologin at tty1.service#' \
+            ${work_dir}/root-image/usr/lib/systemd/system/getty at .service > ${work_dir}/root-image/etc/systemd/system/autologin at .service
         mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
             -r 'locale-gen' \
             run
@@ -186,7 +187,10 @@ make_customize_root_image() {
             -r 'useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /bin/zsh arch' \
             run
         mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
-            -r 'systemctl -f enable multi-user.target pacman-init.service getty at .service dhcpcd.service || true' \
+            -r 'systemctl disable getty at tty1.service || true' \
+            run
+        mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
+            -r 'systemctl enable multi-user.target pacman-init.service autologin at .service dhcpcd.service || true' \
             run
         : > ${work_dir}/build.${FUNCNAME}
     fi
-- 
1.7.12.3



More information about the arch-releng mailing list