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

View File

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

View File

@@ -33,7 +33,7 @@ write_services_s6_conf(){
write_services_66_conf(){ write_services_66_conf(){
local conf="$1"/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(){ write_postcfg(){

View File

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

View File

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