61 Commits

Author SHA1 Message Date
Anton Midyukov
578a15cb1a init: add systemd-sysvinit or sysvinit to altinst 2024-05-25 13:25:47 +07:00
Anton Midyukov
b6d08499f2 init: add missing mingetty to sysvinit
interactivesystem sisyphus-alt25 do not dependency of mingetty.
sysvinit systems do not work without mingetty.
2024-04-10 15:12:57 +07:00
Anton Midyukov
d45fcf364a init: add setup-vconsole-kludge for aarch64 also
plymouth breaks console fonts.
2023-09-13 01:17:31 +07:00
Anton Midyukov
9ea21ef27c init: replace udev-rule-generator to udevd-final
udev-rule-generator provides udevd-final.
Will have to remove udev-rule-generator soon, replacing it with
udevd-final.
See: https://bugzilla.altlinux.org/47228
2023-08-21 20:10:32 +07:00
Anton Midyukov
363ba22a2e Include README of features to documentation; fix syntax & links in them 2023-03-18 21:57:39 +07:00
Anton Midyukov
8fe98c0a20 init: not fix tmpfiles.d/*.conf
The configs can be atypical, so changing the path can make it
work incorrectly.
2023-02-03 22:25:57 +07:00
Anton Midyukov
47e281de88 init: drop live/image-scripts.d/50-var-run-fix (fix clash with rootfs script)
live/image-scripts.d/50-var-run-fix clash with
rootfs/image-scripts.d/50-var-run-fix.
2023-02-03 22:25:57 +07:00
Anton Midyukov
d3a0377253 init: drop stage2/image-scripts.d/91-systemd 2023-01-23 22:49:53 +07:00
Anton Midyukov
a8352aca3c init: add startup to use/init
startup contains configs needed all.
e.g. /etc/sysconfig/i18n needed for /root/.i18n from package rootfiles-alt.
See also https://bugzilla.altlinux.org/43107
2022-06-29 22:32:36 +07:00
Anton Midyukov
ebe22ccddd init: clear machine id
systemd create new uniq machine-id on first boot.
so that during mass deployment of containers, virtual machines or
live there are no identical machine-ids on computers in the same network.
Reported by obirvalger@
2022-02-13 21:16:01 +07:00
Anton Midyukov
5518192d19 init: not copy os-release in live, rescue (more not needed)
The problem was earlier bacause of that the with /etc/os-release
package was installed too early.
See also commit 8551e71028f639601376fb779f5ff63218f3d3b0
2022-01-20 12:20:34 +07:00
Anton Midyukov
88a1e03f3e init: do not add systemd-utils-standalone to use/init/sysv
systemd-utils-standalone no available for p9.
apt-conf-ignore-systemd guarantees the installation of
systemd-utils-standalone.
2022-01-20 09:31:03 +07:00
Anton Midyukov
89d0358454 init: add apt-conf-ignore-systemd for sysvinit
This will solve the problems with the update (p9 -> p10).
2021-12-04 22:12:09 +07:00
Anton Midyukov
304c4b0359 init: Set priority for systemd-utils-standalone package (use/init/sysv) 2021-12-04 22:12:09 +07:00
28fcd3fb35 init: drop systemd-settings-disable-dumpcore
systemd-settings-disable-dumpcore will soon be removed from Sisyphus and p10.
2021-11-04 23:36:01 +07:00
Anton Midyukov
fa6ff9bd1c init: fix 65-os-release for rescue also
copy script from features.in/init/rootfs/image-scripts.d/65-os-release
2021-10-18 09:44:49 +07:00
Mikhail Efremov
1754b3b02e init: Fix 65-os-release
Handle /usr/lib/os-release if it exists.
2021-10-16 21:42:39 +07:00
Mikhail Efremov
75075cc6aa init: Fix /etc/*-release files installation
Handle dangling symlinks.
2021-10-16 21:42:37 +07:00
Anton Midyukov
0922d9f668 init: enable udevd-final for sysvinit
udevd-final needed for sysvinit with X11.
Otherwise, the system stops responding to input.
2021-07-26 14:29:42 +07:00
Anton Midyukov
7318fc49f5 init: Add startup for targets with sysvinit
startup soon won't be installed by anyone.
2021-04-03 22:59:47 +07:00
Anton Midyukov
64e2edcfb5 init: Add mount-efivars for sysvinit
This is necessary for kernels 5.10 and higher on systems with sysvinit,
since no one else on these systems except this service will mount
evivars in /sys/firmware/efi/efivars.
2021-04-03 22:21:38 +07:00
Anton Midyukov
60a87c1f82 init: Add rsyslog-classic for sysvinit as THE_PACKAGES
Also needed for livecd.
2021-04-03 22:21:38 +07:00
Mikhail Efremov
0f35cc865c install2: Drop installer-feature-journald-tty
Use systemd-settings-enable-log-to-tty12 (included by +systemd-optimal)
instead.
2020-05-01 23:49:56 +07:00
Anton Midyukov
80c348ae20 init: +systemd-optimal do not call +systemd 2020-05-01 23:49:56 +07:00
Anton Midyukov
40bbaff960 init: create symlinks /var/run -> /run, /var/lock -> /run/lock
After switching to these symlinks, you no longer need to create
the missing directories.
See-also: https://bugzilla.altlinux.org/show_bug.cgi?id=35350
2020-01-20 22:46:08 +07:00
Anton Midyukov
17671b1d50 init: drop rootfs/image-scripts.d/40-sysvinit
Not needed for polkit-sysvinit >= 0.4
2020-01-20 22:46:08 +07:00
Anton Midyukov
efa57b9121 live, init: move 65-os-release from live to init
Install /etc/*-release files if needed.

Reported-by: Ivan A. Melnikov <iv@altlinux.org>
2020-01-13 12:09:51 +03:00
Ivan A. Melnikov
471233df8a init: fix portability 90-systemd on mipsel
autofs4.ko is not available on Tavolga, and might be unavailable
elsewhere as well (or vice versa, might become available).
2019-11-28 19:14:07 +03:00
Anton Midyukov
221e0e6cf4 init: set package priority syslogd for sysvinit
This is necessary to prevent installing the systemd package on systems
with sysvinit.
2019-11-28 19:02:08 +03:00
Anton Midyukov
e9a3382b24 Revert "init: workaround for elogind to run"
This reverts commit b75b2cc330115a1025455cdc74a2dc60a3759321.

See-also: https://lists.altlinux.org/pipermail/devel/2019-November/208963.html
2019-11-18 18:40:14 +03:00
Anton Midyukov
d0898f4748 init, mixin.mk, regular.mk, regular-vm.mk: drop elogind, polkit-gnome for sysv
Use polkit-sysvinit as a workaround.

See-also: https://lists.altlinux.org/pipermail/devel/2019-November/208963.html

Reverts: 08d93ed8516e4c42563940834b3351c82228f4f4
(and several slightly more involved places)
2019-11-18 18:39:32 +03:00
Anton Midyukov
0505688e93 init: drop bash-completion-elogind
Conflicts with systemd-utils.

See-also: http://bugzilla.altlinux.org/37352
2019-10-21 20:55:04 +03:00
Anton Midyukov
efefa7b2f6 init: drop bash-completion-systemd
See-also:
http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=commitdiff;h=30c28ce9e6d8d006c81b6bbecaf6423a08d8f3f5
2019-10-16 14:23:39 +03:00
Anton Midyukov
6c01aa52ac init: add use/init/systemd/settings/*
Not all systemd-based images need these settings,
so don't change +systemd alias.

See-also: https://lists.altlinux.org/pipermail/devel-distro/2019-July/001710.html
2019-09-09 19:30:24 +03:00
Anton Midyukov
2215949cea init: drop use/init/sysv/consolekit
ConsoleKit2 removed from Sisyphus
See-also: https://bugzilla.altlinux.org/37040
2019-07-22 19:38:33 +03:00
Anton Midyukov
b75b2cc330 init: workaround for elogind to run
Let's provide some shim until directory migration is over.
2019-04-16 17:24:18 +03:00
Anton Midyukov
08d93ed851 init: elogind support
elogind is the systemd project's "logind" extracted out to be
a standalone service.  It integrates with PAM to know the set
of users that are logged in to a system and whether they are
logged in graphically, on the console, or remotely.
2019-04-15 14:50:38 +03:00
Anton Midyukov
a9094c1f15 Revert "init: drop vconsole-setup-kludge"
This reverts commit 408cc174291b60262a2b5e453b94342431fd1190.

See-also: https://bugzilla.altlinux.org/show_bug.cgi?id=28805#c45
2019-03-04 19:10:29 +03:00
Anton Midyukov
6bb1d1cd93 use/init/ConsoleKit: switch to Consolekit2-service
A separate ConsoleKit2-service package should help here...

See-also: https://bugzilla.altlinux.org/35915
2019-01-21 18:20:41 +03:00
Anton Midyukov
408cc17429 init: drop vconsole-setup-kludge
https://bugzilla.altlinux.org/28805 was fixed long ago.
2019-01-14 19:08:41 +03:00
Denis Pynkin
32e2ca5510 init: added multi-user boot target for systemd 2018-12-24 19:47:35 +03:00
f35351d877 init: avoid add root dev to fstab for vm image
This was erroneously added to overly broad class of images.
2018-12-24 19:22:33 +03:00
90ab85abfa init: delete non-existing systemd feature
It was dropped from make-initrd back in 2012:
http://git.altlinux.org/gears/m/make-initrd.git?p=make-initrd.git;a=commitdiff;h=853eed35ea72cf5a6409ef7f465f76da4f5dd097
2018-12-24 19:22:32 +03:00
Michael Shigorin
ae4007c2ca rescue, rootfs: #35350 workaround
filesystem package has been severely broken in sisyphus
since late August unfortunately, and I was too busy to
even notice that for too long; let's plug this kludge
until it's fixed now that I've finally seen that crap :-/

See-also: https://bugzilla.altlinux.org/35350
2018-10-15 22:50:57 +03:00
Anton Midyukov
cabe92c2d4 s/sysk*logd/rsyslog/g
ldv@ has dropped sysklogd from sisyphus due to
its long-standing FTBFS and "other problems":
http://git.altlinux.org/tasks/archive/done/_207/211999/logs/events.6.1.log

The current recommended replacement is rsyslog
which is fine by itself but really overcomplicated
for the barebones logging system we usually need...
2018-10-15 22:45:41 +03:00
Michael Shigorin
c5c2ea9d79 init: tweak +systemd
Added chkconfig (spotted in alt-server's m-p-d)
and vconsole-setup-kludge@X86 (common problem
stop-gap item, unfortunately).
2018-08-13 20:02:16 +03:00
Michael Shigorin
a2d55319e1 init: set pkgpriorities
The infamous systemd infiltration through secondary
"targets" using virtual dependencies started with
syslogd-daemon, continued with network-config-subsystem
and later with ntp-server; all of its implementations
pulling in the main package which is explicitly unwanted
in sysv-based images.

Let's try employing pkgpriorities.
2018-06-11 15:24:10 +03:00
Anton Midyukov
dc1170b578 init, regular.mk: use/init/sysv/consolekit
This target is only needed for systems based on sysV init
to replace logind; it conflicts with systemd-logind.
2018-02-19 22:33:37 +03:00
Michael Shigorin
db3da22457 init: sysvinit+NM support
The issue at hand it _nmconnect group that's supported
in ALT NM for polkit-less cases; it has to be added
*before* 50-users hook from deflogin feature fires off.

The existing systemd-related hook has been renamed
to reflect its job better.
2016-11-04 23:21:30 +03:00
Michael Shigorin
4a362955bf init: added bash-completion-systemd
...for a "full" systemd target that's been re-aliased
as "+systemd"; please adjust any minimalistic images
to use/init/systemd instead of +systemd.
2016-08-04 17:06:46 +03:00