Compare commits

...

5 Commits
0.23 ... 0.23.1

Author SHA1 Message Date
6e0c336c67 buildiso: write proper calameres services-66.conf 2021-05-03 16:53:20 +02:00
a396dafed9 buildiso: show service msg 2021-05-03 11:07:26 +02:00
c613471459 fstabgen: arch backport 2021-05-03 11:06:48 +02:00
7abd0c9453 add 66 support for package tree 2021-04-30 22:06:13 +02:00
390cc84bbf buildiso: fix 66 service adding 2021-04-30 17:37:06 +02:00
5 changed files with 18 additions and 21 deletions

View File

@@ -364,23 +364,19 @@ while read -r src target fstype opts fsroot; do
pass=0
fi
if [[ $fsroot != / ]]; then
if [[ $fstype = btrfs ]]; then
opts+=,subvol=${fsroot#/}
else
# it's a bind mount
src=$(findmnt -funcevo TARGET "$src")$fsroot
if [[ $src -ef $target ]]; then
# hrmm, this is weird. we're probably looking at a file or directory
# that was bound into a chroot from the host machine. Ignore it,
# because this won't actually be a valid mount. Worst case, the user
# just re-adds it.
continue
fi
fstype=none
opts+=,bind
pass=0
if [[ $fsroot != / && $fstype != btrfs ]]; then
# it's a bind mount
src=$(findmnt -funcevo TARGET "$src")$fsroot
if [[ $src -ef $target ]]; then
# hrmm, this is weird. we're probably looking at a file or directory
# that was bound into a chroot from the host machine. Ignore it,
# because this won't actually be a valid mount. Worst case, the user
# just re-adds it.
continue
fi
fstype=none
opts+=,bind
pass=0
fi
# filesystem quirks

View File

@@ -13,6 +13,7 @@
# packages-openrc
# packages-runit
# packages-s6
# packages-66
# packages-python
# packages-perl
# packages-java

View File

@@ -33,7 +33,7 @@ write_services_s6_conf(){
write_services_66_conf(){
local conf="$1"/services-66.conf
write_services_conf 'svDir' '/etc/66/service' 'dbDir' '/run/66/tree' > "$conf"
write_services_conf 'svDir' '/etc/66/service' 'runsvDir' '/var/lib/66/system' > "$conf"
}
write_postcfg(){

View File

@@ -47,9 +47,9 @@ add_svc_66(){
local mnt="$1" names="$2"
chroot "$mnt" 66-tree -cnE root &>/dev/null
for svc in $names; do
if [[ -f $mnt/etc/66/service/$svc ]]; then
chroot "$mnt" 66-enable -t root $svc &>/dev/null
chroot "$mnt" 66-start -t root $svc &>/dev/null
if [[ -f "$mnt"/etc/66/service/"$svc" ]]; then
msg2 "Setting %s: [%s]" "${INITSYS}" "$svc"
chroot "$mnt" 66-enable -t root "$svc" &>/dev/null
fi
done
}

View File

@@ -31,7 +31,7 @@ load_pkg_config(){
python-{world,galaxy}
)
local init_tree=(packages-{openrc,runit,s6})
local init_tree=(packages-{openrc,runit,s6,66})
local desktop_tree=(
packages-{kf5,plasma,kde,qt6}