Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
91b23a5265 | |||
aa58c995eb | |||
68b91bc6ec | |||
e3c3b5d9a5 | |||
edaf1d8c0b | |||
3d97503604 |
12
Makefile
12
Makefile
@@ -46,6 +46,12 @@ S6_BUNDLE = \
|
|||||||
data/s6/live/type \
|
data/s6/live/type \
|
||||||
data/s6/live/contents
|
data/s6/live/contents
|
||||||
|
|
||||||
|
66_LIVE = \
|
||||||
|
data/66/artix-live
|
||||||
|
|
||||||
|
66_PI = \
|
||||||
|
data/66/pacman-init
|
||||||
|
|
||||||
XDG = $(wildcard data/*.desktop)
|
XDG = $(wildcard data/*.desktop)
|
||||||
|
|
||||||
XBIN = bin/desktop-items
|
XBIN = bin/desktop-items
|
||||||
@@ -113,6 +119,12 @@ install_s6:
|
|||||||
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/live
|
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/live
|
||||||
install $(BMODE) $(S6_BUNDLE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/live/
|
install $(BMODE) $(S6_BUNDLE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/live/
|
||||||
|
|
||||||
|
install_66:
|
||||||
|
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/66/service
|
||||||
|
|
||||||
|
install $(FMODE) $(66_LIVE) $(DESTDIR)$(SYSCONFDIR)/66/service/artix-live
|
||||||
|
install $(FMODE) $(66_PI) $(DESTDIR)$(SYSCONFDIR)/66/service/pacman-init
|
||||||
|
|
||||||
install_xdg:
|
install_xdg:
|
||||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
||||||
install -m0755 ${XBIN} $(DESTDIR)$(PREFIX)/bin
|
install -m0755 ${XBIN} $(DESTDIR)$(PREFIX)/bin
|
||||||
|
8
data/66/artix-live
Normal file
8
data/66/artix-live
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[main]
|
||||||
|
@type = oneshot
|
||||||
|
@version = 0.0.1
|
||||||
|
@description = "artix-live service"
|
||||||
|
@user = ( root )
|
||||||
|
|
||||||
|
[start]
|
||||||
|
@execute = (artix-live)
|
14
data/66/pacman-init
Normal file
14
data/66/pacman-init
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[main]
|
||||||
|
@type = oneshot
|
||||||
|
@description = "pacman init service"
|
||||||
|
@version = 0.0.2
|
||||||
|
@user = ( root )
|
||||||
|
@extdepends = ( haveged )
|
||||||
|
|
||||||
|
[start]
|
||||||
|
@execute = (
|
||||||
|
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 artix } )
|
@@ -12,6 +12,6 @@ depend() {
|
|||||||
start() {
|
start() {
|
||||||
ebegin "Running pacman initialization"
|
ebegin "Running pacman initialization"
|
||||||
/usr/bin/pacman-key --init &> /dev/null
|
/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 $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg
|
mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg
|
||||||
pacman-key --init 1>&2
|
pacman-key --init 1>&2
|
||||||
pacman-key --populate archlinux artix 1>&2
|
pacman-key --populate artix 1>&2
|
||||||
exec chpst -b pacman-init pause
|
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 }
|
foreground { mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg }
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
foreground { pacman-key --init }
|
foreground { pacman-key --init }
|
||||||
foreground { pacman-key --populate archlinux artix }
|
foreground { pacman-key --populate artix }
|
||||||
|
Reference in New Issue
Block a user