65 |
local systemdcmd |
local systemdcmd |
66 |
|
|
67 |
case ${cmd} in |
case ${cmd} in |
68 |
add|del|default) |
add|del|default|is-enabled) |
69 |
# add given services from profile |
# add given services from profile |
70 |
if [[ -n ${services} ]] |
if [[ -n ${services} ]] |
71 |
then |
then |
78 |
case ${cmd} in |
case ${cmd} in |
79 |
add) chroot ${CDCHROOTDIR} systemctl enable ${i} ;; |
add) chroot ${CDCHROOTDIR} systemctl enable ${i} ;; |
80 |
del) chroot ${CDCHROOTDIR} systemctl disable ${i} ;; |
del) chroot ${CDCHROOTDIR} systemctl disable ${i} ;; |
81 |
|
is-enabled) chroot ${CDCHROOTDIR} systemctl is-enabled ${i} ;; |
82 |
default) |
default) |
83 |
# convert targets |
# convert targets |
84 |
case ${i} in |
case ${i} in |
254 |
then |
then |
255 |
install -m 0644 $(get_profile getty) ${CDCHROOTDIR}/etc/conf.d/getty || die |
install -m 0644 $(get_profile getty) ${CDCHROOTDIR}/etc/conf.d/getty || die |
256 |
|
|
257 |
custom_services add getty@.service |
custom_services add getty@tty1.service |
258 |
custom_services add remote-fs.target |
custom_services add remote-fs.target |
259 |
# disable readahead |
# disable readahead |
260 |
custom_services del systemd-readahead-replay.service |
custom_services is-enabled systemd-readahead-replay.service && custom_services del systemd-readahead-replay.service |
261 |
custom_services del systemd-readahead-collect.service |
custom_services is-enabled systemd-readahead-collect.service && custom_services del systemd-readahead-collect.service |
262 |
fi |
fi |
263 |
|
|
264 |
# # add hardware detection |
# # add hardware detection |