forked from artix/artix-live
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
71cb6715a5
|
|||
a4c443b658 | |||
a1c122c058 | |||
bea63084ab | |||
83b9a674a8
|
|||
26ffee5d7c | |||
8c3a81d0ee | |||
91b23a5265 | |||
aa58c995eb | |||
68b91bc6ec |
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2018-2019, Artix Linux
|
||||
Copyright (c) 2018-2021, Artix Linux
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
20
Makefile
20
Makefile
@@ -1,4 +1,4 @@
|
||||
VERSION = 0.10
|
||||
VERSION = 0.11.3
|
||||
|
||||
PKG = live-services
|
||||
TOOLS = artools
|
||||
@@ -52,6 +52,15 @@ S6_BUNDLE = \
|
||||
66_PI = \
|
||||
data/66/pacman-init
|
||||
|
||||
DINIT_LIVE = \
|
||||
data/dinit/artix-live
|
||||
|
||||
DINIT_PI = \
|
||||
data/dinit/pacman-init
|
||||
|
||||
DINIT_PI_SCRIPT = \
|
||||
data/dinit/pacman-init.script
|
||||
|
||||
XDG = $(wildcard data/*.desktop)
|
||||
|
||||
XBIN = bin/desktop-items
|
||||
@@ -125,6 +134,15 @@ install_66:
|
||||
install $(FMODE) $(66_LIVE) $(DESTDIR)$(SYSCONFDIR)/66/service/artix-live
|
||||
install $(FMODE) $(66_PI) $(DESTDIR)$(SYSCONFDIR)/66/service/pacman-init
|
||||
|
||||
install_dinit:
|
||||
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/dinit.d/scripts
|
||||
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/dinit.d/boot.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
|
||||
ln -s ../artix-live $(DESTDIR)$(SYSCONFDIR)/dinit.d/boot.d
|
||||
ln -s ../pacman-init $(DESTDIR)$(SYSCONFDIR)/dinit.d/boot.d
|
||||
|
||||
install_xdg:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
||||
install -m0755 ${XBIN} $(DESTDIR)$(PREFIX)/bin
|
||||
|
@@ -28,6 +28,10 @@ if [[ -d /run/openrc ]]; then
|
||||
ln -s $docs/OpenRC.pdf "$xdg"/OpenRC.pdf
|
||||
elif [[ -d /run/runit ]]; then
|
||||
ln -s $docs/Runit.pdf "$xdg"/Runit.pdf
|
||||
elif [[ -d /run/66 ]]; then
|
||||
ln -s $docs/Suite66.pdf "$xdg"/Suite66.pdf
|
||||
elif [[ -d /run/dinit ]]; then
|
||||
ln -s $docs/Dinit.pdf "$xdg"/Suite66.pdf
|
||||
else
|
||||
ln -s $docs/S6.pdf "$xdg"/S6.pdf
|
||||
fi
|
||||
|
@@ -1,8 +1,9 @@
|
||||
[main]
|
||||
@type = oneshot
|
||||
@description = "pacman init service"
|
||||
@version = 0.0.1
|
||||
@user = (root)
|
||||
@version = 0.0.2
|
||||
@user = ( root )
|
||||
@extdepends = ( haveged )
|
||||
|
||||
[start]
|
||||
@execute = (
|
||||
@@ -10,4 +11,4 @@ foreground { mkdir -p /etc/pacman.d/gnupg }
|
||||
foreground { mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg }
|
||||
fdmove -c 2 1
|
||||
foreground { pacman-key --init }
|
||||
foreground { pacman-key --populate archlinux artix } )
|
||||
foreground { pacman-key --populate artix } )
|
||||
|
4
data/dinit/artix-live
Normal file
4
data/dinit/artix-live
Normal file
@@ -0,0 +1,4 @@
|
||||
type = scripted
|
||||
command = /usr/bin/artix-live
|
||||
restart = false
|
||||
waits-for = setup
|
5
data/dinit/pacman-init
Normal file
5
data/dinit/pacman-init
Normal file
@@ -0,0 +1,5 @@
|
||||
type = scripted
|
||||
command = /etc/dinit.d/scripts/pacman-init
|
||||
stop-command = /usr/bin/umount -l /etc/pacman.d/gnupg
|
||||
restart = false
|
||||
waits-for = setup
|
4
data/dinit/pacman-init.script
Normal file
4
data/dinit/pacman-init.script
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
/usr/bin/mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg
|
||||
/usr/bin/pacman-key --init
|
||||
/usr/bin/pacman-key --populate artix
|
@@ -12,6 +12,6 @@ depend() {
|
||||
start() {
|
||||
ebegin "Running pacman initialization"
|
||||
/usr/bin/pacman-key --init &> /dev/null
|
||||
/usr/bin/pacman-key --populate archlinux artix &> /dev/null
|
||||
/usr/bin/pacman-key --populate artix &> /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg
|
||||
pacman-key --init 1>&2
|
||||
pacman-key --populate archlinux artix 1>&2
|
||||
pacman-key --populate artix 1>&2
|
||||
exec chpst -b pacman-init pause
|
||||
|
@@ -3,4 +3,4 @@ foreground { mkdir -p /etc/pacman.d/gnupg }
|
||||
foreground { mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg }
|
||||
fdmove -c 2 1
|
||||
foreground { pacman-key --init }
|
||||
foreground { pacman-key --populate archlinux artix }
|
||||
foreground { pacman-key --populate artix }
|
||||
|
Reference in New Issue
Block a user