[arch-releng] [PATCH 2/5] [configs/releng] Enable systemd services

Thomas Bächler thomas at archlinux.org
Wed Sep 12 03:24:37 EDT 2012


Am 12.09.2012 09:10, schrieb Gerardo Exequiel Pozzi:
> Also makes a custom autologin unit.
> 
> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
> ---
>  configs/releng/build.sh | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/configs/releng/build.sh b/configs/releng/build.sh
> index 7aad14e..502f842 100755
> --- a/configs/releng/build.sh
> +++ b/configs/releng/build.sh
> @@ -150,6 +150,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#;
> +             s#\(^Restart=\).\+$#\1no#' \
> +            ${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

This should go to /etc directly.

> @@ -159,6 +162,9 @@ make_customize_root_image() {
>          mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
>              -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \
>              run
> +        mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
> +            -r 'systemctl -f enable multi-user.target haveged.service pacman-init.service autologin at .service dhcpcd at eth0.service ntpd.service || true' \
> +            run
>          : > ${work_dir}/build.${FUNCNAME}
>      fi
>  }
> 

Do you actually want to autologin on all TTYs? Won't there be a conflict
between autologin and getty?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-releng/attachments/20120912/7032fef0/attachment.asc>


More information about the arch-releng mailing list