Only enable the needed services
* pacman-init already pulls in services it depends on * the multi-user.target is the default * do not rename the getty service so tools like systemd-delta still work Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
76f275e993
commit
d355c2b835
@ -183,7 +183,7 @@ make_customize_root_image() {
|
|||||||
patch ${work_dir}/root-image/usr/bin/pacman-key < ${script_path}/pacman-key-4.0.3_unattended-keyring-init.patch
|
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 -i 's/#\(en_US\.UTF-8\)/\1/' ${work_dir}/root-image/etc/locale.gen
|
||||||
sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#' \
|
sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#' \
|
||||||
${work_dir}/root-image/usr/lib/systemd/system/getty@.service > ${work_dir}/root-image/etc/systemd/system/autologin@.service
|
${work_dir}/root-image/usr/lib/systemd/system/getty@.service > ${work_dir}/root-image/etc/systemd/system/getty@.service
|
||||||
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
|
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
|
||||||
-r 'locale-gen' \
|
-r 'locale-gen' \
|
||||||
run
|
run
|
||||||
@ -194,7 +194,7 @@ make_customize_root_image() {
|
|||||||
-r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \
|
-r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \
|
||||||
run
|
run
|
||||||
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
|
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
|
||||||
-r 'systemctl -f enable multi-user.target haveged.service pacman-init.service autologin@.service dhcpcd.service || true' \
|
-r 'systemctl -f enable pacman-init.service getty@.service dhcpcd.service || true' \
|
||||||
run
|
run
|
||||||
: > ${work_dir}/build.${FUNCNAME}
|
: > ${work_dir}/build.${FUNCNAME}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user