32 Commits

Author SHA1 Message Date
6659fb93a6 dinit: update service definitions and install paths 2023-09-26 08:55:41 +07:00
2043194c7c fix sed backup suffix 2023-09-26 08:55:41 +07:00
a2884c4f7e tag 0.13.7 2023-09-26 08:55:41 +07:00
049e0594e6 bump ver 2023-09-26 08:55:41 +07:00
6d378e3d23 autodetect .Xauthority file 2023-09-26 08:55:41 +07:00
960470dcb8 live-s6: drop alpm hook 2023-09-26 08:55:41 +07:00
17b8a4212b 0.13.5 2023-09-26 08:55:41 +07:00
e8cb811768 simplify square brackets 2023-09-26 08:55:41 +07:00
a213f0d936 s6: update to the new s6-rc format
s6-scripts finally updated to the new s6-rc format so the live-service
needs to change its formating to match. The main advantage of this is
that there is no need to sed in artix-live and pacman-init into the
contents file during the alpm hook. Instead, the empty files can just be
installed into the directory. It's much cleaner. As an aside, a couple
of BMODE calls in the makefile were changed to FMODE since s6-rc doesn't
need any of these files to be executable.
2023-09-26 08:55:41 +07:00
cbe5781ae2 0.13.4 2023-09-26 08:55:41 +07:00
bd445b4c1e liveservices-hook: Merge broken sed arguments into single lines
Signed-off-by: strajder <strajder@artixlinux.org>
2023-09-26 08:55:41 +07:00
ffe119f159 fuck -e 2023-09-26 08:55:41 +07:00
dafd6ab93c makefile bump 2023-09-26 08:55:41 +07:00
e29057d1f8 fix crash in DE 2023-09-26 08:55:41 +07:00
b0f5c7b937 0.13.1 2023-09-26 08:55:41 +07:00
72bda65869 66: remove pointless fdmove in pacman-init
This was originally copied over from the s6 oneshot script. The fdmove
line is not needed and serves no purpose. Just remove it.
2023-09-26 08:55:41 +07:00
e597c25936 makefile: add alpm hooks to install_s6/66 2023-09-26 08:55:41 +07:00
10507f41b4 liveservices-hook: Add 66-specific setup
Signed-off-by: strajder <strajder@artixlinux.org>
2023-09-26 08:55:41 +07:00
b0a4a9ff88 add alpm-hook for live services
Only s6 and suite66 actually need to use this.
2023-09-26 08:55:41 +07:00
a37e93855a 0.13 2023-09-26 08:55:41 +07:00
a764b9692b 0.12.3 2023-09-26 08:55:41 +07:00
97c94cfb33 0.12.2 2023-09-26 08:55:41 +07:00
1eee05d86f 0.12.1 2023-09-26 08:55:41 +07:00
c9dc6eb57e rc: use a display-manager provide 2023-09-26 08:55:41 +07:00
10a3c36b2f Update 'bin/desktop-items.in' 2023-09-26 08:55:41 +07:00
a7cbbfebd1 s6: minor cleanups
The "live" bundle is pointless and superfluous. Remove it. Also, the
pacman-init up oneshot had a useless fdmove line in it. Remove that as
well.
2023-09-26 08:55:41 +07:00
d3d3e0463e complete list 2023-09-26 08:55:41 +07:00
783caefae2 openrc: start before display manager 2023-09-26 08:55:41 +07:00
d38062f905 0.12 2023-09-26 08:55:41 +07:00
b3577634a2 add dinit 2023-09-26 08:55:41 +07:00
335060af49 dinit: use live.d 2022-01-08 07:55:34 +07:00
7295830437 artix-live: attempt #1, fix autologin 2022-01-08 06:59:55 +07:00
8 changed files with 34 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
VERSION = 0.13.1
VERSION = 0.13.8
PKG = live-services
TOOLS = artools
@@ -40,6 +40,10 @@ RUNIT_SVD = \
RUNIT_SV = \
data/runit/pacman-init.run
S6_DEFAULT = \
data/s6/default/contents.d/artix-live \
data/s6/default/contents.d/pacman-init
S6_LIVE = \
data/s6/artix-live/up \
data/s6/artix-live/type
@@ -125,14 +129,18 @@ install_runit:
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/runit/sv/pacman-init
install $(BMODE) $(RUNIT_SV) $(DESTDIR)$(SYSCONFDIR)/runit/sv/pacman-init/run
install_s6: install_alpm
install_s6:
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/adminsv
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/adminsv/default/contents.d
install $(FMODE) $(S6_DEFAULT) $(DESTDIR)$(SYSCONFDIR)/s6/adminsv/default/contents.d/
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init
install $(BMODE) $(S6_PI) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init/
install $(FMODE) $(S6_PI) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init/
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live
install $(BMODE) $(S6_LIVE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live/
install $(FMODE) $(S6_LIVE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live/
install_66: install_alpm
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/66/service
@@ -145,7 +153,7 @@ install_dinit:
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/dinit.d/live.d
install $(FMODE) $(DINIT_LIVE) $(DESTDIR)$(SYSCONFDIR)/dinit.d/artix-live
install $(FMODE) $(DINIT_PI) $(DESTDIR)$(SYSCONFDIR)/dinit.d/pacman-init
install $(BMODE) $(DINIT_PI_SCRIPT) $(DESTDIR)$(SYSCONFDIR)/dinit.d/scripts/pacman-init
install $(BMODE) $(DINIT_PI_SCRIPT) $(DESTDIR)$(LIBDIR)/dinit/pacman-init
ln -s ../artix-live $(DESTDIR)$(SYSCONFDIR)/dinit.d/live.d
ln -s ../pacman-init $(DESTDIR)$(SYSCONFDIR)/dinit.d/live.d

View File

@@ -1 +1,3 @@
# live-services
Live ISO setup, branding, installer for DE ISOs etc.

View File

@@ -7,15 +7,17 @@ xdg-user-dirs-update --force
xdg=$(xdg-user-dir DESKTOP)
src=@datadir@/applications
# if [[ -f $src/org.kde.konversation.desktop ]]; then
# if [ -f $src/org.kde.konversation.desktop ]; then
# install -m644 $src/org.kde.konversation.desktop \
# $xdg/org.kde.konversation.desktop
# fi
if [[ -f @bindir@/calamares ]]; then
cp -f $src/calamares.desktop "$xdg/"
sed -i s/Icon.*=calamares/Icon=artixlinux-logo/g "$xdg"/calamares.desktop
chmod +x "$xdg/calamares.desktop"
if [ -f @bindir@/calamares ]; then
installer='calamares.desktop'
cp -f $src/$installer "$xdg/"
sed -i s/Icon.*=calamares/Icon=artixlinux-logo/g "$xdg"/$installer
sed -r -i "s|XAUTHCOOKIE|$XAUTHORITY|" "$xdg"/$installer
chmod +x "$xdg/$installer"
fi
docs=@datadir@/doc/artix
@@ -24,13 +26,13 @@ for f in {Configuration,Troubleshooting}.pdf; do
ln -s $docs/$f "$xdg"/$f
done
if [[ -d /run/openrc ]]; then
if [ -d /run/openrc ]; then
ln -s $docs/OpenRC.pdf "$xdg"/OpenRC.pdf
elif [[ -d /run/runit ]]; then
elif [ -d /run/runit ]; then
ln -s $docs/Runit.pdf "$xdg"/Runit.pdf
elif [[ -d /run/66 ]]; then
elif [ -d /run/66 ]; then
ln -s $docs/Suite66.pdf "$xdg"/Suite66.pdf
elif [[ -d /run/dinit ]]; then
elif [ -d /run/dinit ]; then
ln -s $docs/Dinit.pdf "$xdg"/Dinit.pdf
else
ln -s $docs/S6.pdf "$xdg"/S6.pdf

View File

@@ -1,4 +1,4 @@
type = scripted
command = /usr/bin/artix-live
restart = false
waits-for = setup
after = setup

View File

@@ -1,5 +1,5 @@
type = scripted
command = /etc/dinit.d/scripts/pacman-init
command = /usr/lib/dinit/pacman-init
stop-command = /usr/bin/umount -l /etc/pacman.d/gnupg
restart = false
waits-for = setup
after = setup

View File

View File

View File

@@ -11,39 +11,30 @@ s6_enable_live_services(){
if [ -d /etc/s6/sv/sddm/dependencies.d ]; then
touch /etc/s6/sv/sddm/dependencies.d/artix-live
fi
# TODO: instead touch files under dependencies.d when s6-scripts updates
echo "artix-live" >> /etc/s6/sv/default/contents
echo "pacman-init" >> /etc/s6/sv/default/contents
}
s6_disable_live_services(){
# TODO: delete files under dependencies.d when s6-scripts updates
sed -i '/artix-live/d' /etc/s6/sv/default/contents
sed -i '/pacman-init/d' /etc/s6/sv/default/contents
rm -f /etc/s6/sv/gdm/dependencies.d/artix-live
rm -f /etc/s6/sv/lightdm-srv/dependencies.d/artix-live
rm -f /etc/s6/sv/sddm/dependencies.d/artix-live
}
suite66_enable_live_services(){
66-tree -n boot
66-tree -ncE default
[ -d /var/lib/66/system/boot ] || 66-tree -n boot
[ -d /var/lib/66/system/default ] || 66-tree -ncE default
66-enable -t default artix-live pacman-init
if [ -f /usr/bin/gdm ]; then
66-disable -t default logind gdm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/gdm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( \1artix-live pacman-init )#' /etc/66/service/gdm
66-enable -t default logind gdm
elif [ -f /usr/bin/lightdm ]; then
66-disable -t default logind lightdm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/lightdm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( \1artix-live pacman-init )#' /etc/66/service/lightdm
66-enable -t default logind lightdm
elif [ -f /usr/bin/sddm ]; then
66-disable -t default logind sddm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\
'\1artix-live pacman-init )#' /etc/66/service/sddm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( \1artix-live pacman-init )#' /etc/66/service/sddm
66-enable -t default logind sddm
fi