Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
189ceeb7e7 | |||
9c6b20fea3 | |||
9a514cc3ca | |||
![]() |
4f3899f6c6 | ||
![]() |
0efd3bdfa9 |
19
Makefile
19
Makefile
@@ -17,13 +17,19 @@ RC = \
|
||||
data/rc/pacman-init \
|
||||
data/rc/artix-live
|
||||
|
||||
RUNIT_CORE = \
|
||||
data/runit/89-artix-live.sh
|
||||
|
||||
RUNIT_SV = \
|
||||
data/runit/pacman-init.run
|
||||
|
||||
GRUB_DEFAULT = \
|
||||
data/grub2-portable-efi
|
||||
|
||||
GRUB_D = \
|
||||
data/99_zzz-portable-efi
|
||||
|
||||
all: $(BIN) $(RC) $(XBIN) ${GRUB_D}
|
||||
all: $(BIN) $(RC) $(RUNIT_SV) $(XBIN) ${GRUB_D}
|
||||
|
||||
edit = sed -e "s|@datadir[@]|$(DESTDIR)$(PREFIX)/share/artools|g" \
|
||||
-e "s|@sysconfdir[@]|$(DESTDIR)$(SYSCONFDIR)/artools|g" \
|
||||
@@ -53,6 +59,12 @@ install_rc:
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/init.d
|
||||
install -m0755 ${RC} $(DESTDIR)$(SYSCONFDIR)/init.d
|
||||
|
||||
install_runit:
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/runit/core-services
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/sv/pacman-init
|
||||
install -m0755 ${RUNIT_CORE} $(DESTDIR)$(SYSCONFDIR)/runit/core-services
|
||||
install -m0755 ${RUNIT_SV} $(DESTDIR)$(SYSCONFDIR)/sv/pacman-init/run
|
||||
|
||||
install_portable_efi:
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/default
|
||||
install -m0755 $(GRUB_DEFAULT) $(DESTDIR)$(SYSCONFDIR)/default
|
||||
@@ -72,9 +84,12 @@ uninstall_portable_efi:
|
||||
uninstall_rc:
|
||||
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_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
|
||||
|
@@ -55,7 +55,7 @@ echo "Configured displaymanager: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFIL
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_calamares
|
||||
echo "Configured calamares unpack ${unpack} $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
echo "Configured calamares netinstall ${netinstall} $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_user_root /
|
||||
|
2
data/runit/89-artix-live.sh
Normal file
2
data/runit/89-artix-live.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
msg "Initializing artix-live script"
|
||||
artix-live
|
5
data/runit/pacman-init.run
Normal file
5
data/runit/pacman-init.run
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
mount -t tmpfs -o size=10M,mode=0755 tmpfs /etc/pacman.d/gnupg
|
||||
pacman-key --init
|
||||
pacman-key --populate archlinux artix
|
||||
exec pause pacman-init
|
@@ -34,7 +34,7 @@ get_tz(){
|
||||
}
|
||||
|
||||
get_cal_mode(){
|
||||
echo $(kernel_cmdline unpack)
|
||||
echo $(kernel_cmdline netinstall)
|
||||
}
|
||||
|
||||
get_timer_ms(){
|
||||
@@ -79,7 +79,7 @@ is_valid_de(){
|
||||
load_desktop_map(){
|
||||
local _space="s| ||g" _clean=':a;N;$!ba;s/\n/ /g' _com_rm="s|#.*||g" \
|
||||
file=${DATADIR}/desktop.map
|
||||
local desktop_map=$(sed "$_com_rm" "$file" | sed "$_space" sed "$_clean")
|
||||
local desktop_map=$(sed "$_com_rm" "$file" | sed "$_space" | sed "$_clean")
|
||||
echo ${desktop_map}
|
||||
}
|
||||
|
||||
@@ -267,28 +267,14 @@ configure_language(){
|
||||
echo "Configured timezone: ${timezone}" >> "${LOGFILE}"
|
||||
}
|
||||
|
||||
write_unpack_conf(){
|
||||
local conf="/etc/calamares/modules/unpackfs.conf"
|
||||
echo "---" > "$conf"
|
||||
echo "unpack:" >> "$conf"
|
||||
echo " - source: \"/run/artix/bootmnt/artix/$(uname -m)/rootfs.sfs\"" >> "$conf"
|
||||
echo " sourcefs: \"squashfs\"" >> "$conf"
|
||||
echo " destination: \"\"" >> "$conf"
|
||||
echo " - source: \"/run/artix/bootmnt/artix/$(uname -m)/desktopfs.sfs\"" >> "$conf"
|
||||
echo " sourcefs: \"squashfs\"" >> "$conf"
|
||||
echo " destination: \"\"" >> "$conf"
|
||||
}
|
||||
|
||||
configure_calamares(){
|
||||
if [[ -f /usr/bin/calamares ]];then
|
||||
unpack=$(get_cal_mode)
|
||||
if [[ "${unpack}" == 'yes' ]];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
|
||||
|
||||
write_unpack_conf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user