19 Commits
0.4.6 ... 0.6.4

Author SHA1 Message Date
e5b37014d0 try to fix calamares launcher 2018-10-07 14:05:33 +02:00
96ae6855ac desktop-items: fix konversation 2018-10-06 14:18:40 +02:00
22014421b1 fix konversation typo 2018-10-05 21:42:29 +02:00
ccebe7ecf3 symlink docs to localized desktop dir 2018-10-05 10:01:06 +02:00
7557a84a7d clean up; remove old code 2018-10-05 00:10:04 +02:00
712774d585 create desktop launchers 2018-10-04 23:53:55 +02:00
ef98a333ca rm netinstall 2018-10-02 22:18:26 +02:00
udeved
7727ce662e fix runit live sym 2018-05-14 16:59:29 +00:00
udeved
b841184cb2 fix runit live sym 2018-05-14 16:56:44 +00:00
udeved
528b3091c6 Merge branch 'master' of github.com:artix-linux/live-services 2018-05-14 16:50:45 +00:00
udeved
ffb4f4ba98 update runit live for runit-rc 2018-05-14 16:50:22 +00:00
udeved
64fe174eba update runit live for runit-rc 2018-05-14 16:40:37 +00:00
udeved
dc955770b3 makefile: small fix 2018-04-14 18:40:06 +02:00
udeved
004760e16a mkaefile: fix datadir path 2018-04-14 16:48:18 +02:00
bb1f0fbdc0 reflect the new runit service directory 2018-04-14 08:49:23 +07:00
udeved
f879bf8965 start 0.5 2018-04-11 21:12:10 +02:00
udeved
7e93c77b9a makefile: fix uninstall 2018-04-11 19:24:17 +02:00
8832d21deb change pacman-init directory to reflect new scheme 2018-04-09 10:58:20 +07:00
189ceeb7e7 Move pacman-init to a service on its own 2018-02-17 13:12:39 +07:00
8 changed files with 107 additions and 82 deletions

106
Makefile
View File

@@ -1,7 +1,23 @@
Version=0.1 VERSION = 0.5
PKG = live-services
TOOLS = artools
PREFIX = /usr/local
SYSCONFDIR = /etc SYSCONFDIR = /etc
ifdef PREFIX
PREFIX = /usr/local
endif
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib
DATADIR = $(PREFIX)/share
FMODE = -m0644
DMODE = -dm0755
BMODE = -m0755
RM = rm -f
M4 = m4 -P
CHAW = chmod a-w
CHX = chmod +x
BIN = \ BIN = \
bin/artix-live bin/artix-live
@@ -17,7 +33,11 @@ RC = \
data/rc/pacman-init \ data/rc/pacman-init \
data/rc/artix-live data/rc/artix-live
RUNIT_SV = $(wildcard data/runit/*.sh) RUNIT_SVD = \
data/runit/live
RUNIT_SV = \
data/runit/pacman-init.run
GRUB_DEFAULT = \ GRUB_DEFAULT = \
data/grub2-portable-efi data/grub2-portable-efi
@@ -25,68 +45,64 @@ GRUB_DEFAULT = \
GRUB_D = \ GRUB_D = \
data/99_zzz-portable-efi data/99_zzz-portable-efi
all: $(BIN) $(RC) $(RUNIT_SV) $(XBIN) ${GRUB_D} XDG = $(wildcard data/*.desktop)
edit = sed -e "s|@datadir[@]|$(DESTDIR)$(PREFIX)/share/artools|g" \ XBIN = bin/desktop-items
-e "s|@sysconfdir[@]|$(DESTDIR)$(SYSCONFDIR)/artools|g" \
-e "s|@libdir[@]|$(DESTDIR)$(PREFIX)/lib/artools|g" all: $(BIN) $(RC) $(RUNIT_SV) $(XBIN) $(GRUB_D)
EDIT = sed -e "s|@datadir[@]|$(DATADIR)/$(TOOLS)|g" \
-e "s|@sysconfdir[@]|$(SYSCONFDIR)/$(TOOLS)|g" \
-e "s|@libdir[@]|$(LIBDIR)/$(TOOLS)|g"
%: %.in Makefile %: %.in Makefile
@echo "GEN $@" @echo "GEN $@"
@$(RM) "$@" @$(RM) "$@"
@m4 -P $@.in | $(edit) >$@ @$(M4) $@.in | $(EDIT) >$@
@chmod a-w "$@" @$(CHAW) "$@"
@chmod +x "$@" @$(CHX) "$@"
clean: clean:
rm -f $(BIN) $(RC) ${GRUB_D} $(RM) $(BIN) $(RC) $(GRUB_D)
install_base: install_base:
install -dm0755 $(DESTDIR)$(PREFIX)/bin install $(DMODE) $(DESTDIR)$(BINDIR)
install -m0755 ${BIN} $(DESTDIR)$(PREFIX)/bin install $(BMODE) $(BIN) $(DESTDIR)$(BINDIR)
install -dm0755 $(DESTDIR)$(PREFIX)/lib/artools install $(DMODE) $(DESTDIR)$(LIBDIR)/$(TOOLS)
install -m0644 ${LIBS} $(DESTDIR)$(PREFIX)/lib/artools install $(FMODE) $(LIBS) $(DESTDIR)$(LIBDIR)/$(TOOLS)
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools install $(DMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)
install -m0644 ${SHARED} $(DESTDIR)$(PREFIX)/share/artools install $(FMODE) $(SHARED) $(DESTDIR)$(DATADIR)/$(TOOLS)
install_rc: install_rc:
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/init.d install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/init.d
install -m0755 ${RC} $(DESTDIR)$(SYSCONFDIR)/init.d install $(BMODE) $(RC) $(DESTDIR)$(SYSCONFDIR)/init.d
install_runit: install_runit:
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/runit/core-services install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/rc/sysinit
install -m0755 ${RUNIT_SV} $(DESTDIR)$(SYSCONFDIR)/runit/core-services install $(DMODE) $(DESTDIR)$(LIBDIR)/rc/sv.d
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/runit/sv/pacman-init
install $(BMODE) $(RUNIT_SVD) $(DESTDIR)$(LIBDIR)/rc/sv.d
ln -sf $(LIBDIR)/rc/sv.d/live $(DESTDIR)$(SYSCONFDIR)/rc/sysinit/98-live
install $(BMODE) $(RUNIT_SV) $(DESTDIR)$(SYSCONFDIR)/runit/sv/pacman-init/run
install_portable_efi: install_portable_efi:
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/default install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/default
install -m0755 $(GRUB_DEFAULT) $(DESTDIR)$(SYSCONFDIR)/default install $(BMODE) $(GRUB_DEFAULT) $(DESTDIR)$(SYSCONFDIR)/default
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/grub.d install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/grub.d
install -m0755 $(GRUB_D) $(DESTDIR)$(SYSCONFDIR)/grub.d install $(BMODE) $(GRUB_D) $(DESTDIR)$(SYSCONFDIR)/grub.d
uninstall_base: install_xdg:
for f in ${BIN}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done install -dm0755 $(DESTDIR)$(PREFIX)/bin
for f in ${SHARED}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done install -m0755 ${XBIN} $(DESTDIR)$(PREFIX)/bin
for f in ${LIBS}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
uninstall_portable_efi: install -dm0755 $(DESTDIR)$(SYSCONFDIR)/skel/.config/autostart
for f in ${GRUB_DEFAULT}; do rm -f $(DESTDIR)$(SYSCONFDIR)/default/$$f; done install -m0755 ${XDG} $(DESTDIR)$(SYSCONFDIR)/skel/.config/autostart
for f in ${GRUB_D}; do rm -f $(DESTDIR)$(SYSCONFDIR)/grub.d/$$f; done
uninstall_rc: install: install_base install_rc install_portable_efi install_xdg
for f in ${RC}; do rm -f $(DESTDIR)$(SYSCONFDIR)/init.d/$$f; done
uninstall_runit:
for f in ${RUNIT_SV}; do rm -f $(DESTDIR)$(SYSCONFDIR)/runit/sv/$$f; done
install: install_base install_rc install_portable_efi
uninstall: uninstall_base uninstall_rc uninstall_runit uninstall_portable_efi
dist:
git archive --format=tar --prefix=live-services-$(Version)/ $(Version) | gzip -9 > live-services-$(Version).tar.gz
gpg --detach-sign --use-agent live-services-$(Version).tar.gz
.PHONY: all clean install uninstall dist .PHONY: all clean install uninstall dist

View File

@@ -37,14 +37,6 @@ livetimer=$(get_timer_ms)
configure_user configure_user
echo "Created user ${username} with password ${password}: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}" echo "Created user ${username} with password ${password}: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
livetimer=$(get_timer_ms)
configure_sudoers_d
echo "Configured sudoers: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
# livetimer=$(get_timer_ms)
# configure_machine_id
# echo "Configured machine-id: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
livetimer=$(get_timer_ms) livetimer=$(get_timer_ms)
configure_accountsservice "${username}" configure_accountsservice "${username}"
echo "Configured accountsservice: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}" echo "Configured accountsservice: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
@@ -53,10 +45,6 @@ livetimer=$(get_timer_ms)
configure_displaymanager configure_displaymanager
echo "Configured displaymanager: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}" echo "Configured displaymanager: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
livetimer=$(get_timer_ms)
configure_calamares
echo "Configured calamares netinstall ${netinstall} $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
livetimer=$(get_timer_ms) livetimer=$(get_timer_ms)
configure_user_root / configure_user_root /
echo "Configured root user: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}" echo "Configured root user: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"

26
bin/desktop-items.in Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
xdg=$(xdg-user-dir DESKTOP)
src=/usr/share/applications
if [[ -f $src/org.kde.konversation ]]; then
cp $src/org.kde.konversation \
$xdg/konversation-artix-help.desktop
fi
if [[ -f /usr/bin/calamares ]]; then
cp $src/calamares.desktop \
$xdg/calamares.desktop
fi
docs=/usr/share/doc/artix
for f in {Configuration,Installation,Migration,Troubleshooting}.pdf;do
ln -s $docs/$f $xdg/$f
done
if [[ -d /run/openrc ]];then
ln -s $docs/OpenRC.pdf $xdg/OpenRC.pdf
else
ln -s $docs/Runit.pdf $xdg/Runit.pdf
fi

View File

@@ -1,2 +0,0 @@
msg "Initializing artix-live script"
artix-live

View File

@@ -1,6 +0,0 @@
msg "Mounting temporary gnupg directory"
mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg
msg "Initializing pacman"
pacman-key --init
pacman-key --populate archlinux artix

15
data/runit/live Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
. /usr/lib/rc/functions
case "$1" in
start)
stat_busy "Initializing artix live system"
artix-live #|| stat_die
add_daemon live
stat_done
;;
*)
echo "usage: $0 {start}"
;;
esac

View File

@@ -0,0 +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
exec chpst -b pacman-init pause

View File

@@ -267,23 +267,6 @@ configure_language(){
echo "Configured timezone: ${timezone}" >> "${LOGFILE}" echo "Configured timezone: ${timezone}" >> "${LOGFILE}"
} }
configure_calamares(){
if [[ -f /usr/bin/calamares ]];then
netinstall=$(get_cal_mode)
if [[ "${netinstall}" == 'no' ]];then
sed -e "/- netinstall/d" \
-e "s|- chrootcfg|- unpackfs|" -i /etc/calamares/settings.conf
sed -e '$ d' -i /etc/calamares/modules/welcome.conf
fi
fi
}
configure_sudoers_d(){
echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/g_wheel
echo "root ALL=(ALL) ALL" > /etc/sudoers.d/u_root
}
configure_swap(){ configure_swap(){
local swapdev="$(fdisk -l 2>/dev/null | grep swap | cut -d' ' -f1)" local swapdev="$(fdisk -l 2>/dev/null | grep swap | cut -d' ' -f1)"
if [ -e "${swapdev}" ]; then if [ -e "${swapdev}" ]; then