forked from artix/artools
Compare commits
86 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
01142309ac | ||
![]() |
d630ed2582 | ||
![]() |
9c546ca7fb | ||
![]() |
a6a74c69f1 | ||
![]() |
0f51544da4 | ||
![]() |
afe30328a6 | ||
![]() |
9d7148b60e | ||
![]() |
afa239995c | ||
![]() |
0b4a4840e3 | ||
![]() |
034e5a0a82 | ||
![]() |
d2590ddd74 | ||
![]() |
2975de2fb5 | ||
![]() |
b9383b628c | ||
![]() |
01bc8673c4 | ||
![]() |
0fcdc6af63 | ||
![]() |
5ae9803be1 | ||
![]() |
b36ffd813e | ||
![]() |
fb0ad6d51f | ||
![]() |
3beb019d7c | ||
![]() |
331520a3d6 | ||
![]() |
ee196e84c7 | ||
![]() |
de6149a5bc | ||
![]() |
524ba5fe47 | ||
![]() |
b0169fc1b8 | ||
![]() |
50577f0501 | ||
![]() |
9eb8ad06e2 | ||
![]() |
a4bc7c5b01 | ||
![]() |
a050b76d8e | ||
![]() |
adc4fa6724 | ||
![]() |
e52f9b577e | ||
![]() |
31baa79248 | ||
![]() |
fb1cead10a | ||
![]() |
01e37feb4e | ||
![]() |
25e2755ffa | ||
![]() |
03fc8aea26 | ||
![]() |
fcc006f30f | ||
![]() |
525460b6ed | ||
![]() |
b0166d330e | ||
![]() |
cb4f83d765 | ||
![]() |
3134c3a4e8 | ||
![]() |
53c2b55044 | ||
![]() |
5d330d8f0a | ||
![]() |
de93035152 | ||
![]() |
4349f297a8 | ||
![]() |
81c8b63f0a | ||
![]() |
554f7611ba | ||
![]() |
754617f711 | ||
![]() |
0acc0a180a | ||
![]() |
1e4dc7cfcb | ||
![]() |
441257841c | ||
![]() |
33b4a689c1 | ||
![]() |
35016b7af4 | ||
![]() |
20546c493a | ||
![]() |
02829b046f | ||
![]() |
2feeb4f30f | ||
![]() |
50db8cf691 | ||
![]() |
c272625422 | ||
![]() |
b8c9063e21 | ||
![]() |
be70f7ed2c | ||
![]() |
3f05c3e97d | ||
![]() |
edb486c662 | ||
![]() |
088ae05ad8 | ||
![]() |
0cbbe9f23f | ||
![]() |
f591a6b94e | ||
![]() |
47d7a47d96 | ||
![]() |
f0a5f0f442 | ||
![]() |
d3b67b4a1b | ||
![]() |
00e041a143 | ||
![]() |
3b70c77f35 | ||
![]() |
fb19753286 | ||
![]() |
47f41e13ad | ||
![]() |
c292f457d6 | ||
![]() |
05266f6f57 | ||
![]() |
a25b8646f9 | ||
![]() |
699f48b22e | ||
![]() |
6281af8301 | ||
![]() |
1c8eb7fb1f | ||
![]() |
44a1b432f2 | ||
![]() |
19017c421c | ||
![]() |
eebd17b623 | ||
![]() |
470632e1dc | ||
![]() |
1e4d2b7979 | ||
![]() |
da454e7de3 | ||
![]() |
84424c8093 | ||
![]() |
a5e43ae87f | ||
![]() |
0a7edac512 |
103
Makefile
103
Makefile
@@ -1,4 +1,4 @@
|
||||
Version=0.1
|
||||
Version=0.5
|
||||
|
||||
PREFIX = /usr/local
|
||||
SYSCONFDIR = /etc
|
||||
@@ -51,9 +51,6 @@ LIBS_PKG = \
|
||||
SHARED_PKG = \
|
||||
data/makepkg.conf
|
||||
|
||||
LIST_ISO = \
|
||||
$(wildcard data/iso.list.d/*.list)
|
||||
|
||||
BIN_ISO = \
|
||||
bin/buildiso \
|
||||
bin/deployiso
|
||||
@@ -62,8 +59,7 @@ LIBS_ISO = \
|
||||
$(wildcard lib/util-iso*.sh)
|
||||
|
||||
SHARED_ISO = \
|
||||
data/mkinitcpio.conf \
|
||||
data/profile.conf.example
|
||||
data/mkinitcpio.conf
|
||||
|
||||
CPIOHOOKS = \
|
||||
$(wildcard initcpio/hooks/*)
|
||||
@@ -74,18 +70,8 @@ CPIOINST = \
|
||||
CPIO = \
|
||||
initcpio/script/artix_shutdown
|
||||
|
||||
MAN_XML = \
|
||||
buildpkg.xml \
|
||||
buildtree.xml \
|
||||
buildiso.xml \
|
||||
deployiso.xml \
|
||||
deploypkg.xml \
|
||||
check-yaml.xml \
|
||||
artools.conf.xml \
|
||||
profile.conf.xml
|
||||
|
||||
BIN_YAML = \
|
||||
bin/check-yaml
|
||||
bin/buildyaml
|
||||
|
||||
LIBS_YAML = \
|
||||
$(wildcard lib/util-yaml*.sh) \
|
||||
@@ -94,7 +80,24 @@ LIBS_YAML = \
|
||||
SHARED_YAML = \
|
||||
data/linux.preset
|
||||
|
||||
all: $(BIN_BASE) $(BIN_PKG) $(BIN_ISO) $(BIN_YAML) doc
|
||||
BASE = \
|
||||
$(wildcard data/base/Packages-*) \
|
||||
data/base/profile.conf
|
||||
|
||||
LIVE_ETC = \
|
||||
data/base/live-overlay/etc/issue \
|
||||
data/base/live-overlay/etc/fstab
|
||||
|
||||
LIVE_ETC_DEFAULT = \
|
||||
$(wildcard data/base/live-overlay/etc/default/*)
|
||||
|
||||
LIVE_ETC_PAM = \
|
||||
$(wildcard data/base/live-overlay/etc/pam.d/*)
|
||||
|
||||
LIVE_ETC_SUDOERS = \
|
||||
$(wildcard data/base/live-overlay/etc/sudoers.d/*)
|
||||
|
||||
all: $(BIN_BASE) $(BIN_PKG) $(BIN_ISO) $(BIN_YAML)
|
||||
|
||||
edit = sed -e "s|@datadir[@]|$(DESTDIR)$(PREFIX)/share/artools|g" \
|
||||
-e "s|@sysconfdir[@]|$(DESTDIR)$(SYSCONFDIR)/artools|g" \
|
||||
@@ -108,13 +111,8 @@ edit = sed -e "s|@datadir[@]|$(DESTDIR)$(PREFIX)/share/artools|g" \
|
||||
@chmod a-w "$@"
|
||||
@chmod +x "$@"
|
||||
|
||||
doc:
|
||||
mkdir -p man
|
||||
$(foreach var,$(MAN_XML),xsltproc /usr/share/docbook2X/xslt/man/docbook.xsl docbook/$(var) | db2x_manxml --output-dir man ;)
|
||||
|
||||
clean:
|
||||
rm -f $(BIN_BASE) ${BIN_PKG} ${BIN_ISO}
|
||||
rm -rf man
|
||||
|
||||
install_base:
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/artools
|
||||
@@ -130,9 +128,6 @@ install_base:
|
||||
install -m0644 ${SHARED_BASE} $(DESTDIR)$(PREFIX)/share/artools
|
||||
|
||||
install_pkg:
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/artools/pkg.list.d
|
||||
install -m0644 ${LIST_PKG} $(DESTDIR)$(SYSCONFDIR)/artools/pkg.list.d
|
||||
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/artools/import.list.d
|
||||
install -m0644 ${LIST_IMPORT} $(DESTDIR)$(SYSCONFDIR)/artools/import.list.d
|
||||
|
||||
@@ -150,14 +145,26 @@ install_pkg:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools
|
||||
install -m0644 ${SHARED_PKG} $(DESTDIR)$(PREFIX)/share/artools
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
gzip -c man/buildpkg.1 > $(DESTDIR)$(PREFIX)/share/man/man1/buildpkg.1.gz
|
||||
gzip -c man/buildtree.1 > $(DESTDIR)$(PREFIX)/share/man/man1/buildtree.1.gz
|
||||
install_isobase:
|
||||
# install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles
|
||||
# install -m0644 ${INFO} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base
|
||||
install -m0644 ${BASE} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc
|
||||
install -m0644 ${LIVE_ETC} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/default
|
||||
install -m0644 ${LIVE_ETC_DEFAULT} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/default
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/pam.d
|
||||
install -m0644 ${LIVE_ETC_PAM} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/pam.d
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/sudoers.d
|
||||
install -m0644 ${LIVE_ETC_SUDOERS} $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/sudoers.d
|
||||
|
||||
install_iso:
|
||||
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/artools/iso.list.d
|
||||
install -m0644 ${LIST_ISO} $(DESTDIR)$(SYSCONFDIR)/artools/iso.list.d
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
||||
install -m0755 ${BIN_ISO} $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
@@ -176,14 +183,6 @@ install_iso:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools
|
||||
install -m0644 ${SHARED_ISO} $(DESTDIR)$(PREFIX)/share/artools
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
gzip -c man/buildiso.1 > $(DESTDIR)$(PREFIX)/share/man/man1/buildiso.1.gz
|
||||
gzip -c man/deployiso.1 > $(DESTDIR)$(PREFIX)/share/man/man1/deployiso.1.gz
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/man/man5
|
||||
gzip -c man/artools.conf.5 > $(DESTDIR)$(PREFIX)/share/man/man5/artools.conf.5.gz
|
||||
gzip -c man/profile.conf.5 > $(DESTDIR)$(PREFIX)/share/man/man5/profile.conf.5.gz
|
||||
|
||||
install_yaml:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/bin
|
||||
install -m0755 ${BIN_YAML} $(DESTDIR)$(PREFIX)/bin
|
||||
@@ -194,9 +193,6 @@ install_yaml:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/artools
|
||||
install -m0644 ${SHARED_YAML} $(DESTDIR)$(PREFIX)/share/artools
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
gzip -c man/check-yaml.1 > $(DESTDIR)$(PREFIX)/share/man/man1/check-yaml.1.gz
|
||||
|
||||
uninstall_base:
|
||||
for f in ${SYSCONF}; do rm -f $(DESTDIR)$(SYSCONFDIR)/artools/$$f; done
|
||||
for f in ${BIN_BASE}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
||||
@@ -204,18 +200,22 @@ uninstall_base:
|
||||
for f in ${LIBS_BASE}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
|
||||
|
||||
uninstall_pkg:
|
||||
for f in ${LIST_PKG}; do rm -f $(DESTDIR)$(SYSCONFDIR)/artools/pkg.list.d/$$f; done
|
||||
for f in ${LIST_IMPORT}; do rm -f $(DESTDIR)$(SYSCONFDIR)/artools/import.list.d/$$f; done
|
||||
for f in ${ARCH_CONF}; do rm -f $(DESTDIR)$(SYSCONFDIR)/artools/make.conf.d/$$f; done
|
||||
for f in ${BIN_PKG}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
||||
for f in ${SHARED_PKG}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done
|
||||
for f in ${LIBS_PKG}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/buildpkg.1.gz
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/buildtree.1.gz
|
||||
|
||||
uninstall_isobase:
|
||||
# for f in ${INFO}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/$$f; done
|
||||
for f in ${BASE}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/$$f; done
|
||||
for f in ${LIVE_ETC}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/$$f; done
|
||||
for f in ${LIVE_ETC_DEFAULT}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/default/$$f; done
|
||||
for f in ${LIVE_ETC_PAM}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/pam.d/$$f; done
|
||||
for f in ${LIVE_ETC_SUDOERS}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/iso-profiles/base/live-overlay/etc/sudoers.d/$$f; done
|
||||
|
||||
uninstall_iso:
|
||||
for f in ${LIST_ISO}; do rm -f $(DESTDIR)$(SYSCONFDIR)/artools/iso.list.d/$$f; done
|
||||
for f in ${BIN_ISO}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
||||
for f in ${SHARED_ISO}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done
|
||||
|
||||
@@ -223,20 +223,15 @@ uninstall_iso:
|
||||
for f in ${CPIOHOOKS}; do rm -f $(DESTDIR)$(SYSCONFDIR)/initcpio/hooks/$$f; done
|
||||
for f in ${CPIOINST}; do rm -f $(DESTDIR)$(SYSCONFDIR)/initcpio/install/$$f; done
|
||||
for f in ${CPIO}; do rm -f $(DESTDIR)$(SYSCONFDIR)/initcpio/$$f; done
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/buildiso.1.gz
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/deployiso.1.gz
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man5/artools.conf.5.gz
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man5/profile.conf.5.gz
|
||||
|
||||
uninstall_yaml:
|
||||
for f in ${BIN_YAML}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done
|
||||
for f in ${LIBS_YAML}; do rm -f $(DESTDIR)$(PREFIX)/lib/artools/$$f; done
|
||||
for f in ${SHARED_YAML}; do rm -f $(DESTDIR)$(PREFIX)/share/artools/$$f; done
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/check-yaml.1.gz
|
||||
|
||||
install: install_base install_pkg install_iso install_yaml
|
||||
install: install_base install_pkg install_iso install_yaml install_isobase
|
||||
|
||||
uninstall: uninstall_base uninstall_pkg uninstall_iso uninstall_yaml
|
||||
uninstall: uninstall_base uninstall_pkg uninstall_iso uninstall_yaml uninstall_isobase
|
||||
|
||||
dist:
|
||||
git archive --format=tar --prefix=artools-$(Version)/ $(Version) | gzip -9 > artools-$(Version).tar.gz
|
||||
|
@@ -31,16 +31,12 @@ By default it is commented and shows just initialization values done in code.
|
||||
Tools configuration is done in artools.conf or by args.
|
||||
Specifying args will override artools.conf settings.
|
||||
|
||||
User build lists(eg 'my-super-build.list') can be placed in
|
||||
|
||||
~~~
|
||||
$HOME/.config/artools/pkg.list.d
|
||||
$HOME/.config/artools/iso.list.d
|
||||
$HOME/.config/artools/import.list.d
|
||||
~~~
|
||||
|
||||
overriding
|
||||
|
||||
~~~
|
||||
/etc/artools/pkg.list.d
|
||||
/etc/artools/iso.list.d
|
||||
/etc/artools/import.list.d
|
||||
~~~
|
||||
|
@@ -19,27 +19,27 @@ SYSCONFDIR='@sysconfdir@'
|
||||
import ${LIBDIR}/util.sh
|
||||
import ${LIBDIR}/util-iso.sh
|
||||
|
||||
prepare_traps(){
|
||||
for sig in TERM HUP QUIT; do
|
||||
trap "trap_exit $sig \"$(gettext "%s signal caught. Exiting...")\" \"$sig\"" "$sig"
|
||||
done
|
||||
trap 'trap_exit INT "$(gettext "Aborted by user! Exiting...")"' INT
|
||||
# trap 'trap_exit USR1 "$(gettext "An unknown error has occurred. Exiting...")"' ERR
|
||||
}
|
||||
|
||||
prepare_build(){
|
||||
timer_start=$(get_timer)
|
||||
profile=$1
|
||||
local profile_dir=${run_dir}/${profile}
|
||||
|
||||
load_profile "${profile_dir}"
|
||||
load_profile "${profile}"
|
||||
|
||||
local user_conf=${profile_dir}/user-repos.conf pac_arch='default' pacman_conf
|
||||
local pac_arch='default' pacman_conf
|
||||
[[ "${target_arch}" == 'x86_64' ]] && pac_arch='multilib'
|
||||
if [[ -f ${user_conf} ]];then
|
||||
info "detected: %s" "user-repos.conf"
|
||||
check_user_repos_conf "${user_conf}"
|
||||
pacman_conf=${tmp_dir}/custom-pacman.conf
|
||||
cat ${DATADIR}/pacman-$pac_arch.conf ${user_conf} > "$pacman_conf"
|
||||
else
|
||||
pacman_conf="${DATADIR}/pacman-$pac_arch.conf"
|
||||
fi
|
||||
|
||||
pacman_conf="${DATADIR}/pacman-$pac_arch.conf"
|
||||
|
||||
iso_file=$(gen_iso_fn).iso
|
||||
|
||||
mkchroot_args+=(-C ${pacman_conf} -U "${build_mirror}")
|
||||
mkchroot_args+=(-C ${pacman_conf})
|
||||
work_dir=${chroots_iso}/${profile}/${target_arch}
|
||||
|
||||
iso_dir="${cache_dir_iso}/${profile}"
|
||||
@@ -51,42 +51,29 @@ prepare_build(){
|
||||
}
|
||||
|
||||
show_profile(){
|
||||
local prof="$1"
|
||||
prepare_build "$prof"
|
||||
msg2 "iso_file: %s" "${iso_file}"
|
||||
if ${verbose};then
|
||||
msg2 "autologin: %s" "${autologin}"
|
||||
|
||||
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
||||
|
||||
msg2 "extra: %s" "${extra}"
|
||||
|
||||
msg2 "netinstall: %s" "${netinstall}"
|
||||
msg2 "chrootcfg: %s" "${chrootcfg}"
|
||||
${netinstall} && msg2 "netgroups: %s" "$(get_yaml)"
|
||||
msg2 "netgroups: %s" "$(get_yaml)"
|
||||
|
||||
msg2 "hostname: %s" "${hostname}"
|
||||
msg2 "username: %s" "${username}"
|
||||
msg2 "password: %s" "${password}"
|
||||
msg2 "login_shell: %s" "${login_shell}"
|
||||
msg2 "addgroups: %s" "${addgroups}"
|
||||
|
||||
msg2 "enable_live: %s" "${enable_live[*]}"
|
||||
msg2 "enable_openrc: %s" "${enable_openrc[*]}"
|
||||
msg2 "openrc_boot: %s" "${openrc_boot[*]}"
|
||||
msg2 "openrc_default: %s" "${openrc_default[*]}"
|
||||
fi
|
||||
reset_profile
|
||||
}
|
||||
|
||||
display_settings(){
|
||||
show_version
|
||||
show_config
|
||||
|
||||
# msg "PROFILE:"
|
||||
# msg2 "build_lists: %s" "$(show_build_lists ${list_dir_iso})"
|
||||
# msg2 "build_list_iso: %s" "${build_list_iso}"
|
||||
msg2 "is_build_list: %s" "${is_build_list}"
|
||||
|
||||
msg "OPTIONS:"
|
||||
msg2 "profile: %s" "${profile}"
|
||||
msg2 "arch: %s" "${target_arch}"
|
||||
msg2 "initsys: %s" "${initsys}"
|
||||
msg2 "kernel: %s" "${kernel}"
|
||||
@@ -103,16 +90,14 @@ display_settings(){
|
||||
msg2 "dist_release: %s" "${dist_release}"
|
||||
msg2 "dist_branding: %s" "${dist_branding}"
|
||||
|
||||
msg "BUILD QUEUE:"
|
||||
run show_profile "${build_list_iso}"
|
||||
msg "BUILD:"
|
||||
show_profile
|
||||
}
|
||||
|
||||
load_user_info
|
||||
|
||||
load_config "${AT_USERCONFDIR}/artools.conf" || load_config "${SYSCONFDIR}/artools.conf"
|
||||
|
||||
load_run_dir
|
||||
|
||||
clean_first=true
|
||||
pretend=false
|
||||
images_only=false
|
||||
@@ -124,7 +109,7 @@ mkchroot_args=()
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options]"
|
||||
echo " -p <profile> Buildset or profile [default: ${build_list_iso}]"
|
||||
echo " -p <profile> Profile [default: ${profile}]"
|
||||
echo " -a <arch> Arch [default: ${target_arch}]"
|
||||
echo ' -r <dir> Chroots directory'
|
||||
echo " [default: ${chroots_iso}]"
|
||||
@@ -155,7 +140,7 @@ opts='p:a:r:t:k:i:g:czxmvqh'
|
||||
|
||||
while getopts "${opts}" arg; do
|
||||
case "${arg}" in
|
||||
p) build_list_iso="$OPTARG" ;;
|
||||
p) profile="$OPTARG" ;;
|
||||
a) target_arch="$OPTARG" ;;
|
||||
r) chroots_iso="$OPTARG" ;;
|
||||
t) cache_dir_iso="$OPTARG" ;;
|
||||
@@ -177,8 +162,10 @@ shift $(($OPTIND - 1))
|
||||
|
||||
check_root
|
||||
|
||||
check_requirements
|
||||
prepare_traps
|
||||
|
||||
prepare_build
|
||||
|
||||
${pretend} && display_settings && exit 1
|
||||
|
||||
run build "${build_list_iso}"
|
||||
build
|
||||
|
@@ -37,13 +37,9 @@ display_settings(){
|
||||
show_version
|
||||
show_config
|
||||
|
||||
# msg "PROFILE:"
|
||||
# msg2 "build_lists: %s" "$(show_build_lists ${list_dir_pkg})"
|
||||
# msg2 "build_list_pkg: %s" "${build_list_pkg}"
|
||||
msg2 "is_build_list: %s" "${is_build_list}"
|
||||
|
||||
msg "OPTIONS:"
|
||||
msg2 "arch: %s" "${target_arch}"
|
||||
msg2 "repository: %s" "${repository}"
|
||||
msg2 "chroots_pkg: %s" "${chroots_pkg}"
|
||||
|
||||
msg "ARGS:"
|
||||
@@ -51,9 +47,10 @@ display_settings(){
|
||||
msg2 "delete_first: %s" "${delete_first}"
|
||||
msg2 "clean_first: %s" "${clean_first}"
|
||||
msg2 "update_first: %s" "${update_first}"
|
||||
msg2 "purge: %s" "${purge}"
|
||||
msg2 "namcap: %s" "${namcap}"
|
||||
msg2 "sign: %s" "${sign}"
|
||||
msg2 "repo_add: %s" "${repo_add}"
|
||||
msg2 "copy_pkg: %s" "${copy_pkg}"
|
||||
|
||||
msg "PATHS:"
|
||||
msg2 "pkg_dir: %s" "${pkg_dir}"
|
||||
@@ -63,8 +60,8 @@ display_settings(){
|
||||
msg2 "packages: %s" "${packages[*]}"
|
||||
fi
|
||||
|
||||
msg "BUILD QUEUE:"
|
||||
run show_pkg "${build_list_pkg}"
|
||||
msg "BUILD:"
|
||||
show_pkg "${package}"
|
||||
}
|
||||
|
||||
load_user_info
|
||||
@@ -77,17 +74,20 @@ create_first=false
|
||||
delete_first=false
|
||||
clean_first=false
|
||||
update_first=false
|
||||
purge=false
|
||||
namcap=false
|
||||
pretend=false
|
||||
is_build_list=false
|
||||
sign=false
|
||||
is_multilib=false
|
||||
repo_add=false
|
||||
copy_pkg=false
|
||||
|
||||
mkchroot_args=()
|
||||
mkchrootpkg_args=()
|
||||
deploypkg_args=(-x)
|
||||
|
||||
install_pkgs=()
|
||||
repository=${PWD##*/}
|
||||
package=''
|
||||
|
||||
prepare_build(){
|
||||
local pac_arch='default'
|
||||
@@ -98,24 +98,24 @@ prepare_build(){
|
||||
fi
|
||||
|
||||
local pacman_conf="${DATADIR}/pacman-$pac_arch.conf"
|
||||
[[ -f $AT_USERCONFDIR/pacman-$pac_arch.conf ]] && pacman_conf="$AT_USERCONFDIR/pacman-$pac_arch.conf"
|
||||
|
||||
work_dir="${chroots_pkg}/${target_arch}"
|
||||
pkg_dir="${cache_dir_pkg}/${target_arch}"
|
||||
work_dir="${chroots_pkg}/${target_arch}/${repository}"
|
||||
pkg_dir="${cache_dir_pkg}/${target_arch}/${repository}"
|
||||
|
||||
local makepkg_conf=$(get_makepkg_conf "${target_arch}")
|
||||
|
||||
[[ "$pac_arch" == 'multilib' ]] && target_arch='x86_64'
|
||||
|
||||
mkchroot_args+=(-C ${pacman_conf} -M ${makepkg_conf} -U "${build_mirror}")
|
||||
mkchroot_args+=(-C ${pacman_conf} -M ${makepkg_conf})
|
||||
|
||||
mkchrootpkg_args+=(-r ${work_dir})
|
||||
deploypkg_args+=(-r ${repository})
|
||||
|
||||
prepare_dir "${pkg_dir}"
|
||||
|
||||
prepare_dir "${work_dir}"
|
||||
|
||||
eval_build_list "${list_dir_pkg}" "${build_list_pkg}"
|
||||
|
||||
packages=('base-devel')
|
||||
${is_multilib} && packages+=('multilib-devel')
|
||||
|
||||
@@ -124,16 +124,18 @@ prepare_build(){
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options]"
|
||||
echo " -p <pkg> Build list or pkg [default: ${build_list_pkg}]"
|
||||
echo " -p <pkg> Package to build [default: ${package}]"
|
||||
echo " -a <arch> Arch [default: ${target_arch}]"
|
||||
echo ' -r <dir> Chroots directory'
|
||||
echo " [default: ${chroots_pkg}]"
|
||||
echo ' -i <pkgs> Install packages into the working copy of the chroot'
|
||||
echo " -z <repo> The repo name to add the package(s) [default: ${repository}]"
|
||||
echo ' -o Create chroot'
|
||||
echo ' -d Delete chroot'
|
||||
echo ' -c Clean chroot copy'
|
||||
echo ' -u Update chroot copy'
|
||||
echo ' -w Clean up cache and sources'
|
||||
echo ' -x Add the package(s) to the repo'
|
||||
echo ' -l Copy the package(s) to the repo instead of symlink'
|
||||
echo ' -n Install and run namcap check'
|
||||
echo ' -s Sign packages'
|
||||
echo ' -q Query settings and pretend build'
|
||||
@@ -145,19 +147,21 @@ usage() {
|
||||
|
||||
orig_argv=("$0" "$@")
|
||||
|
||||
opts='p:a:r:i:odcuwnsqh'
|
||||
opts='p:a:r:i:z:oldcunsxqh'
|
||||
|
||||
while getopts "${opts}" arg; do
|
||||
case "${arg}" in
|
||||
p) build_list_pkg="$OPTARG" ;;
|
||||
p) package="$OPTARG" ;;
|
||||
a) target_arch="$OPTARG" ;;
|
||||
r) chroots_pkg="$OPTARG" ;;
|
||||
i) install_pkgs+=("$OPTARG"); mkchrootpkg_args+=(-I "${install_pkgs[*]}") ;;
|
||||
z) repository="$OPTARG" ;;
|
||||
o) create_first=true ;;
|
||||
d) delete_first=true ;;
|
||||
c) clean_first=true ; mkchrootpkg_args+=(-c) ;;
|
||||
u) update_first=true ; mkchrootpkg_args+=(-u) ;;
|
||||
w) purge=true ;;
|
||||
x) repo_add=true ;;
|
||||
l) copy_pkg=true; deploypkg_args+=(-c) ;;
|
||||
n) namcap=true; mkchrootpkg_args+=(-n) ;;
|
||||
s) sign=true ;;
|
||||
q) pretend=true ;;
|
||||
@@ -174,8 +178,13 @@ prepare_build
|
||||
|
||||
${pretend} && display_settings && exit
|
||||
|
||||
${delete_first} && delete_chroot "${work_dir}/root" "${work_dir}"
|
||||
if ${delete_first};then
|
||||
delete_chroot "${work_dir}/root" "${work_dir}"
|
||||
delete_chroot "${work_dir}/$OWNER" "${work_dir}"
|
||||
fi
|
||||
|
||||
${create_first} && create_chroot "${mkchroot_args[@]}" "${work_dir}/root" "${packages[@]}"
|
||||
if ${create_first} || [[ ! -d ${work_dir}/root ]];then
|
||||
create_chroot "${mkchroot_args[@]}" "${work_dir}/root" "${packages[@]}"
|
||||
fi
|
||||
|
||||
run make_pkg "${build_list_pkg}"
|
||||
build "${package}"
|
||||
|
@@ -19,7 +19,7 @@ import ${LIBDIR}/util.sh
|
||||
import ${LIBDIR}/util-pkg-tree.sh
|
||||
|
||||
show_imports(){
|
||||
for repo in ${repo_tree_artix[@]};do
|
||||
for repo in ${repo_tree_import[@]};do
|
||||
read_import_list "$repo"
|
||||
for p in ${import_list[@]};do
|
||||
msg2 "%s: %s" ""$repo "$p"
|
||||
@@ -32,20 +32,17 @@ display_settings(){
|
||||
show_config
|
||||
|
||||
msg "REPOS:"
|
||||
msg2 "repo_tree_artix: %s" "${repo_tree_artix[*]}"
|
||||
msg2 "repo_tree_arch: %s" "${repo_tree_arch[*]}"
|
||||
msg2 "repo_tree_import: %s" "${repo_tree_import[*]}"
|
||||
|
||||
msg "ARGS:"
|
||||
msg2 "verbose: %s" "${verbose}"
|
||||
msg2 "artix: %s" "${artix}"
|
||||
msg2 "arch: %s" "${arch}"
|
||||
msg2 "import_arch: %s" "${import_arch}"
|
||||
|
||||
msg "PATHS:"
|
||||
msg2 "tree_dir_artix: %s" "${tree_dir_artix}"
|
||||
msg2 "tree_dir_arch: %s" "${tree_dir_arch}"
|
||||
# msg2 "host_tree_artix: %s" "${host_tree_artix}"
|
||||
# msg2 "host_tree_arch: %s" "${host_tree_arch}"
|
||||
|
||||
if ${verbose}; then
|
||||
if ${import_arch};then
|
||||
@@ -59,7 +56,6 @@ load_user_info
|
||||
|
||||
load_config "${AT_USERCONFDIR}/artools.conf" || load_config "${SYSCONFDIR}/artools.conf"
|
||||
|
||||
artix=false
|
||||
pretend=false
|
||||
arch=false
|
||||
import_arch=false
|
||||
@@ -69,9 +65,8 @@ rsync_args=(-aWx --progress --delete --no-R --no-implied-dirs)
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options]"
|
||||
echo " -x Sync artix tree"
|
||||
echo " -a Sync arch tree"
|
||||
echo ' -i Import arch system packages'
|
||||
echo ' -i Import arch packages'
|
||||
echo ' -v Verbose import output'
|
||||
echo ' -q Query settings'
|
||||
echo ' -h This help'
|
||||
@@ -82,11 +77,10 @@ usage() {
|
||||
|
||||
orig_argv=("$0" "$@")
|
||||
|
||||
opts='xaivqh'
|
||||
opts='aivqh'
|
||||
|
||||
while getopts "${opts}" arg; do
|
||||
case "${arg}" in
|
||||
x) artix=true ;;
|
||||
a) arch=true ;;
|
||||
i) import_arch=true ;;
|
||||
v) verbose=true; rsync_args+=(-v --stats) ;;
|
||||
@@ -103,8 +97,6 @@ prepare_dir "${tree_dir_arch}"
|
||||
|
||||
${pretend} && display_settings && exit 1
|
||||
|
||||
${artix} && sync_tree_artix
|
||||
|
||||
${arch} && sync_tree_arch
|
||||
|
||||
${import_arch} && import_from_arch
|
||||
|
@@ -20,90 +20,57 @@ import ${LIBDIR}/util.sh
|
||||
import ${LIBDIR}/util-yaml-check.sh
|
||||
import ${LIBDIR}/util-profile.sh
|
||||
|
||||
prepare_check(){
|
||||
local profile="$1"
|
||||
local profile_dir=${run_dir}/${profile}
|
||||
|
||||
load_profile "${profile_dir}"
|
||||
|
||||
yaml_dir=${cache_dir_netinstall}/${profile}/${target_arch}
|
||||
|
||||
prepare_dir "${yaml_dir}"
|
||||
}
|
||||
|
||||
show_profile(){
|
||||
prepare_check "$1"
|
||||
msg2 "yaml_dir: %s" "${yaml_dir}"
|
||||
msg2 "autologin: %s" "${autologin}"
|
||||
|
||||
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
||||
|
||||
msg2 "extra: %s" "${extra}"
|
||||
|
||||
msg2 "netinstall: %s" "${netinstall}"
|
||||
msg2 "chrootcfg: %s" "${chrootcfg}"
|
||||
${netinstall} && msg2 "netgroups: %s" "$(get_yaml)"
|
||||
msg2 "netgroups: %s" "$(get_yaml)"
|
||||
|
||||
msg2 "hostname: %s" "${hostname}"
|
||||
msg2 "username: %s" "${username}"
|
||||
msg2 "password: %s" "${password}"
|
||||
msg2 "login_shell: %s" "${login_shell}"
|
||||
msg2 "addgroups: %s" "${addgroups}"
|
||||
|
||||
msg2 "enable_live: %s" "${enable_live[*]}"
|
||||
msg2 "enable_openrc: %s" "${enable_openrc[*]}"
|
||||
|
||||
reset_profile
|
||||
unset yaml_dir
|
||||
msg2 "openrc_boot: %s" "${openrc_boot[*]}"
|
||||
msg2 "openrc_default: %s" "${openrc_default[*]}"
|
||||
}
|
||||
|
||||
display_settings(){
|
||||
show_version
|
||||
show_config
|
||||
|
||||
# msg "PROFILE:"
|
||||
# msg2 "build_lists: %s" "$(show_build_lists ${list_dir_iso})"
|
||||
# msg2 "build_list_iso: %s" "${build_list_iso}"
|
||||
msg2 "is_build_list: %s" "${is_build_list}"
|
||||
|
||||
msg "OPTIONS:"
|
||||
msg2 "profile: %s" "${profile}"
|
||||
msg2 "arch: %s" "${target_arch}"
|
||||
msg2 "initsys: %s" "${initsys}"
|
||||
msg2 "kernel: %s" "${kernel}"
|
||||
|
||||
msg "ARGS:"
|
||||
# msg2 "validate: %s" "${validate}"
|
||||
# msg2 "calamares: %s" "${calamares}"
|
||||
msg2 "calamares: %s" "${calamares}"
|
||||
msg2 "group: %s" "${group}"
|
||||
|
||||
msg "CHECK QUEUE:"
|
||||
run show_profile "${build_list_iso}"
|
||||
msg "BUILD:"
|
||||
show_profile
|
||||
}
|
||||
|
||||
load_user_info
|
||||
|
||||
load_config "${AT_USERCONFDIR}/artools.conf" || load_config "${SYSCONFDIR}/artools.conf"
|
||||
|
||||
# to force old way to have buildiso run in iso-profiles dir
|
||||
# run_dir=$(pwd)
|
||||
|
||||
load_run_dir
|
||||
|
||||
calamares=false
|
||||
pretend=false
|
||||
group=false
|
||||
validate=false
|
||||
cache_dir_netinstall="${workspace_dir}/netinstall"
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options]"
|
||||
echo " -p <profile> Buildset or profile [default: ${build_list_iso}]"
|
||||
echo " -p <profile> Buildset or profile [default: ${profile}]"
|
||||
echo " -a <arch> Arch [default: ${target_arch}]"
|
||||
echo " -k <name> Kernel to use[default: ${kernel}]"
|
||||
echo " -i <name> Init system to use [default: ${initsys}]"
|
||||
# echo ' -c Check also calamares yaml files generated for the profile'
|
||||
echo ' -c Check also calamares yaml files generated for the profile'
|
||||
echo ' -g Enable pacman group accepted for -p'
|
||||
# echo ' -v Validate by schema'
|
||||
echo ' -q Query settings'
|
||||
echo ' -h This help'
|
||||
echo ''
|
||||
@@ -113,19 +80,16 @@ usage() {
|
||||
|
||||
orig_argv=("$0" "$@")
|
||||
|
||||
# opts='p:a:i:k:gcvqh'
|
||||
|
||||
opts='p:a:i:k:gqh'
|
||||
opts='p:a:i:k:gcqh'
|
||||
|
||||
while getopts "${opts}" arg; do
|
||||
case "${arg}" in
|
||||
p) build_list_iso="$OPTARG" ;;
|
||||
p) profile="$OPTARG" ;;
|
||||
a) target_arch="$OPTARG" ;;
|
||||
i) initsys="$OPTARG" ;;
|
||||
k) kernel="$OPTARG" ;;
|
||||
# c) calamares=true ;;
|
||||
c) calamares=true ;;
|
||||
g) group=true ;;
|
||||
# v) validate=true ;;
|
||||
q) pretend=true ;;
|
||||
h|?) usage 0 ;;
|
||||
*) echo "invalid argument '${arg}'"; usage 1 ;;
|
||||
@@ -134,12 +98,10 @@ done
|
||||
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
#check_root
|
||||
|
||||
eval_build_list "${list_dir_iso}" "${build_list_iso}"
|
||||
prepare_build
|
||||
|
||||
${pretend} && display_settings && exit 1
|
||||
|
||||
${group} && write_pacman_group_yaml "${build_list_iso}" && exit 0
|
||||
${group} && write_pacman_group_yaml "${profile}" && exit 0
|
||||
|
||||
run make_profile_yaml "${build_list_iso}"
|
||||
build
|
@@ -18,25 +18,14 @@ SYSCONFDIR='@sysconfdir@'
|
||||
import ${LIBDIR}/util.sh
|
||||
import ${LIBDIR}/util-iso-publish.sh
|
||||
|
||||
show_profile(){
|
||||
prepare_transfer "$1"
|
||||
info "Profile: [$1]"
|
||||
msg2 "src_dir: ${src_dir}"
|
||||
msg2 "target_dir: ${target_dir}"
|
||||
}
|
||||
|
||||
display_settings(){
|
||||
show_version
|
||||
show_config
|
||||
|
||||
# msg "PROFILE:"
|
||||
# msg2 "build_lists: %s" "$(show_build_lists ${list_dir_iso})"
|
||||
# msg2 "build_list_iso: %s" "${build_list_iso}"
|
||||
msg2 "is_build_list: %s" "${is_build_list}"
|
||||
|
||||
msg "OPTIONS:"
|
||||
msg2 "limit: %s kB/s" "${limit}"
|
||||
msg2 "dist_release: %s" "${dist_release}"
|
||||
msg2 "profile: %s" "${profile}"
|
||||
msg2 "uplimit: %s kB/s" "${uplimit}"
|
||||
# msg2 "dist_release: %s" "${dist_release}"
|
||||
|
||||
msg "ARGS:"
|
||||
msg2 "update: %s" "${update}"
|
||||
@@ -55,8 +44,9 @@ display_settings(){
|
||||
msg2 "host: %s" "${host}"
|
||||
msg2 "project: %s" "${project}"
|
||||
|
||||
msg "UPLOAD QUEUE:"
|
||||
run show_profile "${build_list_iso}"
|
||||
msg "UPLOAD:"
|
||||
msg2 "src_dir: ${src_dir}"
|
||||
msg2 "target_dir: ${target_dir}"
|
||||
}
|
||||
|
||||
load_user_info
|
||||
@@ -67,14 +57,13 @@ pretend=false
|
||||
update=false
|
||||
verbose=false
|
||||
torrent=false
|
||||
profile=''
|
||||
|
||||
rsync_args=(-aP --progress -e ssh)
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options]"
|
||||
echo " -p Source folder to upload [default:${build_list_iso}]"
|
||||
echo " -l Limit bandwidth in kB/s [default:${limit}]"
|
||||
echo " -p Source folder to upload [default: ${profile}]"
|
||||
echo " -l Limit bandwidth in kB/s [default:${uplimit}]"
|
||||
echo ' -u Update remote directory'
|
||||
echo ' -t Create iso torrent'
|
||||
echo ' -q Query settings and pretend upload'
|
||||
@@ -104,8 +93,10 @@ shift $(($OPTIND - 1))
|
||||
|
||||
timer_start=$(get_timer)
|
||||
|
||||
rsync_args+=(--bwlimit=${limit})
|
||||
rsync_args+=(--bwlimit=${uplimit})
|
||||
|
||||
prepare_transfer
|
||||
|
||||
${pretend} && display_settings #&& exit 1
|
||||
|
||||
sync_dir "${profile}"
|
||||
sync_dir
|
||||
|
@@ -36,6 +36,7 @@ display_settings(){
|
||||
msg "ARGS:"
|
||||
msg2 "add_pkg: %s" "${add_pkg}"
|
||||
msg2 "del_pkg: %s" "${del_pkg}"
|
||||
msg2 "copy_pkg: %s" "${copy_pkg}"
|
||||
msg2 "download: %s" "${download}"
|
||||
msg2 "upload: %s" "${upload}"
|
||||
msg2 "verbose: %s" "${verbose}"
|
||||
@@ -60,7 +61,9 @@ verbose=false
|
||||
verbose=false
|
||||
add_pkg=false
|
||||
del_pkg=false
|
||||
copy_pkg=false
|
||||
package=''
|
||||
repository='system'
|
||||
|
||||
rsync_args=(-rtxisP --progress --delete -e ssh)
|
||||
|
||||
@@ -72,6 +75,7 @@ usage() {
|
||||
echo ' -d Download repository'
|
||||
echo " -p Package name to add/delete"
|
||||
echo ' -x Add package to repository'
|
||||
echo ' -c Copy instead of symlink package to repository'
|
||||
echo ' -y Delete package from repository'
|
||||
echo ' -q Query settings and pretend upload'
|
||||
echo ' -v Verbose output'
|
||||
@@ -83,7 +87,7 @@ usage() {
|
||||
|
||||
orig_argv=("$0" "$@")
|
||||
|
||||
opts='p:a:r:xyduvqh'
|
||||
opts='p:a:r:xyducvqh'
|
||||
|
||||
while getopts "${opts}" arg; do
|
||||
case "${arg}" in
|
||||
@@ -92,6 +96,7 @@ while getopts "${opts}" arg; do
|
||||
p) package="$OPTARG" ;;
|
||||
x) add_pkg=true ;;
|
||||
y) del_pkg=true ;;
|
||||
c) copy_pkg=true ;;
|
||||
d) download=true ;;
|
||||
u) upload=true; rsync_args+=(-L) ;;
|
||||
v) verbose=true; rsync_args+=(-v --stats) ;;
|
||||
@@ -109,8 +114,8 @@ prepare_dir "${repos_local}"
|
||||
|
||||
${pretend} && display_settings #&& exit 1
|
||||
|
||||
${add_pkg} && repo_add_pkg "${repository}" "${target_arch}" "${package}"
|
||||
${del_pkg} && repo_del_pkg "${repository}" "${target_arch}" "${package}"
|
||||
${add_pkg} && repo_update "${repository}" "${target_arch}" "${package}" "add" "${copy_pkg}"
|
||||
${del_pkg} && repo_update "${repository}" "${target_arch}" "${package}" "remove"
|
||||
|
||||
${download} && repo_download "${repository}"
|
||||
${upload} && repo_upload "${repository}"
|
||||
|
@@ -72,7 +72,7 @@ else
|
||||
fi
|
||||
|
||||
basestrap_args=(-Gcd ${pacman_conf:+-C "$pacman_conf"})
|
||||
[[ -z ${mirror} ]] && basestrap_args+=(-M)
|
||||
[[ -n ${mirror} ]] && basestrap_args+=(-M)
|
||||
|
||||
umask 0022
|
||||
|
||||
|
@@ -221,6 +221,7 @@ EOF
|
||||
# These functions aren't run in makechrootpkg,
|
||||
# so no global variables
|
||||
_chrootbuild() {
|
||||
export LANG=en_US.UTF-8
|
||||
. /etc/profile
|
||||
sudo -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
|
||||
}
|
||||
|
@@ -1,39 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
version=@version@
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "
|
||||
usage: testiso <isofile> [id|ic|sd|sc|vd|vc]
|
||||
|
||||
id boot iso as IDE disk
|
||||
ic boot iso as IDE cd-rom
|
||||
sd boot iso as SCSI disk
|
||||
sc boot iso as SCSI cd-rom
|
||||
vd boot iso as virtio disk
|
||||
vc boot iso as virtio cd-rom
|
||||
"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "${2}" in
|
||||
id) IF="ide"; MEDIA="disk";;
|
||||
ic) IF="ide"; MEDIA="cdrom";;
|
||||
sd) IF="scsi"; MEDIA="disk";;
|
||||
sc) IF="scsi"; MEDIA="cdrom";;
|
||||
vd) IF="virtio"; MEDIA="disk";;
|
||||
vc) IF="virtio"; MEDIA="cdrom";;
|
||||
*) IF="scsi"; MEDIA="cdrom";;
|
||||
esac
|
||||
|
||||
echo qemu -m 256 -drive file=${1},if=${IF},media=${MEDIA},boot=on
|
||||
qemu -m 256 -drive file=${1},if=${IF},media=${MEDIA},boot=on
|
@@ -1,6 +1,6 @@
|
||||
######################################################
|
||||
################ artools.conf ##################
|
||||
######################################################
|
||||
#############################################
|
||||
################ artools-base ###############
|
||||
#############################################
|
||||
|
||||
# default taget arch: auto detect
|
||||
# target_arch=$(uname -m)
|
||||
@@ -8,9 +8,6 @@
|
||||
# build dir where buildpkg or buildiso chroots are created
|
||||
# chroots_dir=/var/lib/artools
|
||||
|
||||
# custom build mirror server
|
||||
# build_mirror=https://netcologne.dl.sourceforge.net/project/artix-linux/repos
|
||||
|
||||
# the server user
|
||||
# account=[SetUser]
|
||||
|
||||
@@ -23,10 +20,12 @@
|
||||
# the workspace directory
|
||||
# workspace_dir="/home/${OWNER}/artools-workspace"
|
||||
|
||||
################ buildtree ###############
|
||||
#############################################
|
||||
################ artools-pkg ################
|
||||
#############################################
|
||||
|
||||
# artix package tree
|
||||
# repo_tree_artix=('system' 'world' 'galaxy')
|
||||
# artix testing branches import tree
|
||||
# repo_tree_import=('system' 'world' 'galaxy')
|
||||
|
||||
# host_tree_artix=https://github.com/artix-linux
|
||||
|
||||
@@ -35,15 +34,12 @@
|
||||
|
||||
# host_tree_arch=git://projects.archlinux.org/svntogit
|
||||
|
||||
################ buildpkg ################
|
||||
# default repos root
|
||||
# repos_local=${workspace_dir}/repos
|
||||
|
||||
# default pkg build list; name without .list extension
|
||||
# build_list_pkg=default
|
||||
|
||||
################ buildiso ################
|
||||
|
||||
# default iso build list; name without .list extension
|
||||
# build_list_iso=default
|
||||
#############################################
|
||||
################ artools-iso ################
|
||||
#############################################
|
||||
|
||||
# the dist release; default: auto
|
||||
# dist_release=rolling
|
||||
@@ -60,8 +56,6 @@
|
||||
# gpg key; leave empty or commented to skip sfs signing
|
||||
# gpgkey=""
|
||||
|
||||
################ deployiso ################
|
||||
|
||||
# set upload bandwidth limit in kB/s
|
||||
# limit=100
|
||||
|
||||
|
@@ -1,30 +0,0 @@
|
||||
autoconf
|
||||
automake
|
||||
binutils
|
||||
bison
|
||||
libeudev
|
||||
fakeroot
|
||||
file
|
||||
findutils
|
||||
flex
|
||||
gawk
|
||||
gcc
|
||||
gettext
|
||||
grep
|
||||
groff
|
||||
gzip
|
||||
libtool
|
||||
m4
|
||||
make
|
||||
pacman
|
||||
patch
|
||||
pkg-config
|
||||
sed
|
||||
sudo
|
||||
texinfo
|
||||
libutil-linux-nosystemd
|
||||
util-linux-nosystemd
|
||||
which
|
||||
>multilib gcc-multilib
|
||||
>multilib lib32-fakeroot
|
||||
>multilib lib32-libltdl
|
9
data/base/Packages-Live
Normal file
9
data/base/Packages-Live
Normal file
@@ -0,0 +1,9 @@
|
||||
mkinitcpio-nfs-utils
|
||||
nbd
|
||||
>openrc artix-live-openrc
|
||||
squashfs-tools
|
||||
artix-live-portable-efi
|
||||
virtualbox-guest-modules-artix
|
||||
virtualbox-guest-utils
|
||||
linux-lts-headers
|
||||
|
82
data/base/Packages-Root
Normal file
82
data/base/Packages-Root
Normal file
@@ -0,0 +1,82 @@
|
||||
acpi
|
||||
b43-fwcutter
|
||||
bash
|
||||
btrfs-progs
|
||||
bzip2
|
||||
coreutils
|
||||
crda
|
||||
dhclient
|
||||
diffutils
|
||||
dmraid
|
||||
dnsmasq
|
||||
dosfstools
|
||||
e2fsprogs
|
||||
ecryptfs-utils
|
||||
exfat-utils
|
||||
f2fs-tools
|
||||
file
|
||||
filesystem
|
||||
findutils
|
||||
gawk
|
||||
gcc-libs
|
||||
gettext
|
||||
glibc
|
||||
grep
|
||||
grub
|
||||
gzip
|
||||
inetutils
|
||||
#intel-ucode
|
||||
iproute2
|
||||
iptables
|
||||
iputils
|
||||
ipw2100-fw
|
||||
ipw2200-fw
|
||||
jfsutils
|
||||
KERNEL
|
||||
less
|
||||
licenses
|
||||
linux-firmware
|
||||
logrotate
|
||||
lsb-release
|
||||
man-db
|
||||
man-pages
|
||||
memtest86+
|
||||
mkinitcpio-openswap
|
||||
nano
|
||||
ntfs-3g
|
||||
>openrc acpid-openrc
|
||||
>openrc cronie-openrc
|
||||
>openrc cryptsetup-openrc
|
||||
>openrc dbus-openrc
|
||||
>openrc device-mapper-openrc
|
||||
>openrc dhcpcd-openrc
|
||||
>openrc elogind-openrc
|
||||
>openrc haveged-openrc
|
||||
>openrc lvm2-openrc
|
||||
>openrc mdadm-openrc
|
||||
>openrc netifrc
|
||||
>openrc nfs-utils-openrc
|
||||
>openrc rsync-openrc
|
||||
>openrc wpa_supplicant-openrc
|
||||
os-prober
|
||||
pacman
|
||||
pciutils
|
||||
pcmciautils
|
||||
perl
|
||||
procps-ng
|
||||
psmisc
|
||||
reiserfsprogs
|
||||
sed
|
||||
shadow
|
||||
s-nail
|
||||
sudo
|
||||
sysfsutils
|
||||
tar
|
||||
texinfo
|
||||
usbutils
|
||||
util-linux
|
||||
which
|
||||
>x86_64 efibootmgr
|
||||
xfsprogs
|
||||
zd1211-firmware
|
||||
zsh
|
49
data/base/live-overlay/etc/default/grub
Normal file
49
data/base/live-overlay/etc/default/grub
Normal file
@@ -0,0 +1,49 @@
|
||||
GRUB_DEFAULT=saved
|
||||
GRUB_TIMEOUT=5
|
||||
GRUB_DISTRIBUTOR="Artix"
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
|
||||
GRUB_CMDLINE_LINUX=""
|
||||
|
||||
# If you want to enable the save default function, uncomment the following
|
||||
# line, and set GRUB_DEFAULT to saved.
|
||||
GRUB_SAVEDEFAULT=true
|
||||
|
||||
# Preload both GPT and MBR modules so that they are not missed
|
||||
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
|
||||
|
||||
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
|
||||
#GRUB_HIDDEN_TIMEOUT=5
|
||||
#GRUB_HIDDEN_TIMEOUT_QUIET=true
|
||||
|
||||
# Uncomment to use basic console
|
||||
GRUB_TERMINAL_INPUT=console
|
||||
|
||||
# Uncomment to disable graphical terminal
|
||||
#GRUB_TERMINAL_OUTPUT=console
|
||||
|
||||
# The resolution used on graphical terminal
|
||||
# note that you can use only modes which your graphic card supports via VBE
|
||||
# you can see them in real GRUB with the command `vbeinfo'
|
||||
GRUB_GFXMODE=auto
|
||||
|
||||
# Uncomment to allow the kernel use the same resolution used by grub
|
||||
GRUB_GFXPAYLOAD_LINUX=keep
|
||||
|
||||
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
|
||||
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
|
||||
#GRUB_DISABLE_LINUX_UUID=true
|
||||
|
||||
# Uncomment to disable generation of recovery mode menu entries
|
||||
GRUB_DISABLE_RECOVERY=true
|
||||
|
||||
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
|
||||
# modes only. Entries specified as foreground/background.
|
||||
GRUB_COLOR_NORMAL="light-gray/black"
|
||||
GRUB_COLOR_HIGHLIGHT="cyan/black"
|
||||
|
||||
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
|
||||
GRUB_BACKGROUND="/usr/share/grub/background.png"
|
||||
#GRUB_THEME="/path/to/gfxtheme"
|
||||
|
||||
# Uncomment to get a beep at GRUB start
|
||||
#GRUB_INIT_TUNE="480 440 1"
|
5
data/base/live-overlay/etc/fstab
Normal file
5
data/base/live-overlay/etc/fstab
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# /etc/fstab: static file system information
|
||||
#
|
||||
# <file system> <dir> <type> <options> <dump> <pass>
|
||||
/dev/mapper/root-image / auto defaults 0 0
|
13
data/base/live-overlay/etc/issue
Normal file
13
data/base/live-overlay/etc/issue
Normal file
@@ -0,0 +1,13 @@
|
||||
[H[2J
|
||||
Artix Live ISO (\l) - \s-\r \m
|
||||
|
||||
|
||||
|
||||
# Welcome to Artix #
|
||||
|
||||
|
||||
login for the live environment:
|
||||
user 'artix'
|
||||
password 'artix'
|
||||
|
||||
|
6
data/base/live-overlay/etc/pam.d/su
Normal file
6
data/base/live-overlay/etc/pam.d/su
Normal file
@@ -0,0 +1,6 @@
|
||||
#%PAM-1.0
|
||||
auth sufficient pam_rootok.so
|
||||
auth sufficient pam_wheel.so trust use_uid
|
||||
auth required pam_unix.so
|
||||
account required pam_unix.so
|
||||
session required pam_unix.so
|
1
data/base/live-overlay/etc/sudoers.d/g_wheel
Normal file
1
data/base/live-overlay/etc/sudoers.d/g_wheel
Normal file
@@ -0,0 +1 @@
|
||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
26
data/base/profile.conf
Normal file
26
data/base/profile.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
################ install ################
|
||||
|
||||
# default displaymanager: none
|
||||
# supported; lightdm, sddm, gdm, lxdm, mdm
|
||||
# displaymanager="none"
|
||||
|
||||
# Set to false to disable autologin in the livecd
|
||||
# autologin="true"
|
||||
|
||||
# service runlevels
|
||||
# openrc_boot=('elogind')
|
||||
# openrc_default=('acpid' 'bluetooth' 'cronie' 'cupsd' 'dbus' 'syslog-ng' 'NetworkManager')
|
||||
|
||||
# unset defaults to given values
|
||||
# addgroups="video,power,storage,optical,network,lp,scanner,wheel,users"
|
||||
|
||||
################# live-session #################
|
||||
|
||||
# unset defaults to given value
|
||||
# hostname="artix"
|
||||
|
||||
# unset defaults to given value
|
||||
# username="artix"
|
||||
|
||||
# unset defaults to given value
|
||||
# password="artix"
|
@@ -0,0 +1,6 @@
|
||||
autoconf-archive
|
||||
confuse
|
||||
libappindicator
|
||||
libdbusmenu
|
||||
libftdi
|
||||
libindicator
|
||||
|
@@ -90,7 +90,6 @@ links
|
||||
linux-api-headers
|
||||
linux-atm
|
||||
linux-firmware
|
||||
linux-lts
|
||||
lz4
|
||||
lzo
|
||||
m4
|
||||
@@ -144,4 +143,3 @@ wpa_actiond
|
||||
xfsprogs
|
||||
xz
|
||||
zd1211-firmware
|
||||
zlib
|
||||
|
@@ -0,0 +1,212 @@
|
||||
qt5-3d
|
||||
qt5-canvas3d
|
||||
qt5-charts
|
||||
qt5-connectivity
|
||||
qt5-datavis3d
|
||||
qt5-declarative
|
||||
qt5-doc
|
||||
qt5-examples
|
||||
qt5-gamepad
|
||||
qt5-graphicaleffects
|
||||
qt5-imageformats
|
||||
qt5-location
|
||||
qt5-multimedia
|
||||
qt5-networkauth
|
||||
qt5-quickcontrols
|
||||
qt5-quickcontrols2
|
||||
qt5-remoteobjects
|
||||
qt5-script
|
||||
qt5-scxml
|
||||
qt5-sensors
|
||||
qt5-serialbus
|
||||
qt5-serialport
|
||||
qt5-speech
|
||||
qt5-svg
|
||||
qt5-tools
|
||||
qt5-translations
|
||||
qt5-virtualkeyboard
|
||||
qt5-wayland
|
||||
qt5-webchannel
|
||||
qt5-webengine
|
||||
qt5-webkit
|
||||
qt5-websockets
|
||||
qt5-webview
|
||||
qt5-x11extras
|
||||
qt5-xmlpatterns
|
||||
adwaita-icon-theme
|
||||
alsa-lib
|
||||
apr
|
||||
apr-util
|
||||
atk
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
boost
|
||||
cairo
|
||||
cantarell-fonts
|
||||
check
|
||||
compositeproto
|
||||
damageproto
|
||||
dbus-glib
|
||||
dconf
|
||||
desktop-file-utils
|
||||
docbook-dsssl
|
||||
docbook-sgml31
|
||||
docbook-utils
|
||||
docbook-xml
|
||||
docbook-xsl
|
||||
double-conversion
|
||||
doxygen
|
||||
eventlog
|
||||
fixesproto
|
||||
fontconfig
|
||||
fontsproto
|
||||
freetype2
|
||||
gd
|
||||
gdk-pixbuf2
|
||||
ghostscript
|
||||
giflib
|
||||
gnome-common
|
||||
gobject-introspection
|
||||
gptfdisk
|
||||
graphite
|
||||
graphviz
|
||||
gsfonts
|
||||
gtk3
|
||||
gtk-doc
|
||||
gts
|
||||
harfbuzz
|
||||
hicolor-icon-theme
|
||||
ijs
|
||||
inputproto
|
||||
intltool
|
||||
itstool
|
||||
jasper
|
||||
jbig2dec
|
||||
json-glib
|
||||
kbproto
|
||||
lcms2
|
||||
libasyncns
|
||||
libblockdev
|
||||
libbytesize
|
||||
libcap-ng
|
||||
libcroco
|
||||
libdaemon
|
||||
libdatrie
|
||||
libdrm
|
||||
libepoxy
|
||||
libexif
|
||||
libfontenc
|
||||
libglvnd
|
||||
libgphoto2
|
||||
libical
|
||||
libice
|
||||
libieee1284
|
||||
libimobiledevice
|
||||
libiscsi
|
||||
libjpeg-turbo
|
||||
libomxil-bellagio
|
||||
libpaper
|
||||
libpciaccess
|
||||
libplist
|
||||
libpng
|
||||
libproxy
|
||||
librsvg
|
||||
libsm
|
||||
libthai
|
||||
libtiff
|
||||
libtxc_dxtn
|
||||
libunwind
|
||||
libusb-compat
|
||||
libusbmuxd
|
||||
libwebp
|
||||
libx11
|
||||
libxau
|
||||
libxaw
|
||||
libxcb
|
||||
libxcomposite
|
||||
libxcursor
|
||||
libxdamage
|
||||
libxdmcp
|
||||
libxext
|
||||
libxfixes
|
||||
libxfont
|
||||
libxfont2
|
||||
libxft
|
||||
libxi
|
||||
libxinerama
|
||||
libxkbcommon
|
||||
libxkbfile
|
||||
libxml2
|
||||
libxmu
|
||||
libxpm
|
||||
libxrandr
|
||||
libxrender
|
||||
libxshmfence
|
||||
libxslt
|
||||
libxt
|
||||
libxtst
|
||||
libxxf86vm
|
||||
lirc
|
||||
llvm
|
||||
mesa
|
||||
mtdev
|
||||
net-snmp
|
||||
openjade
|
||||
opensp
|
||||
pango
|
||||
parted
|
||||
pcre2
|
||||
perl-error
|
||||
perl-xml-parser
|
||||
perl-yaml
|
||||
pixman
|
||||
python2
|
||||
python
|
||||
python-appdirs
|
||||
python-beaker
|
||||
python-mako
|
||||
python-markupsafe
|
||||
python-packaging
|
||||
python-pyparsing
|
||||
python-setuptools
|
||||
python-six
|
||||
randrproto
|
||||
recordproto
|
||||
renderproto
|
||||
serf
|
||||
sgml-common
|
||||
shared-mime-info
|
||||
source-highlight
|
||||
speexdsp
|
||||
tslib
|
||||
v4l-utils
|
||||
vala
|
||||
valgrind
|
||||
volume_key
|
||||
vte3
|
||||
vte
|
||||
wayland
|
||||
wayland-protocols
|
||||
xcb-proto
|
||||
xcb-util
|
||||
xcb-util-image
|
||||
xcb-util-keysyms
|
||||
xcb-util-renderutil
|
||||
xcb-util-wm
|
||||
xextproto
|
||||
xf86vidmodeproto
|
||||
xineramaproto
|
||||
xkeyboard-config
|
||||
xorg-bdftopcf
|
||||
xorg-fonts-alias
|
||||
xorg-fonts-encodings
|
||||
xorg-fonts-misc
|
||||
xorg-font-util
|
||||
xorg-font-utils
|
||||
xorg-mkfontdir
|
||||
xorg-mkfontscale
|
||||
xorg-setxkbmap
|
||||
xorg-xkbcomp
|
||||
xproto
|
||||
yelp-tools
|
||||
yelp-xsl
|
||||
|
@@ -1 +0,0 @@
|
||||
lxqt
|
@@ -1 +0,0 @@
|
||||
openrc
|
@@ -1,42 +0,0 @@
|
||||
##########################################
|
||||
###### use this file in the profile ######
|
||||
##########################################
|
||||
|
||||
# use multilib packages; x86_64 only
|
||||
# multilib="true"
|
||||
|
||||
# use extra packages as defined in pkglist to activate a full profile
|
||||
# extra="false"
|
||||
|
||||
################ install ################
|
||||
|
||||
# default displaymanager: none
|
||||
# supported; lightdm, sddm, gdm, lxdm, mdm
|
||||
# displaymanager="none"
|
||||
|
||||
# Set to false to disable autologin in the livecd
|
||||
# autologin="true"
|
||||
|
||||
# configure calamares for netinstall
|
||||
# netinstall="false"
|
||||
|
||||
# configure calamares to use chrootcfg instead of unpackfs; default: unpackfs
|
||||
# chrootcfg="false"
|
||||
|
||||
# unset defaults to given values,
|
||||
# names must match openrc service names
|
||||
# enable_openrc=('acpid' 'bluetooth' 'elogind' 'cronie' 'cupsd' 'dbus' 'syslog-ng' 'NetworkManager')
|
||||
|
||||
# unset defaults to given values
|
||||
# addgroups="video,power,disk,storage,optical,network,lp,scanner,wheel"
|
||||
|
||||
################# live-session #################
|
||||
|
||||
# unset defaults to given value
|
||||
# hostname="artix"
|
||||
|
||||
# unset defaults to given value
|
||||
# username="artix"
|
||||
|
||||
# unset defaults to given value
|
||||
# password="artix"
|
@@ -1,305 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="profile.conf" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>profile.conf-+</title>
|
||||
<productname>artools</productname>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>artools.conf</refentrytitle>
|
||||
<manvolnum>5</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>artools.conf</refname>
|
||||
<refpurpose>general configuration file for artools</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<para><filename>artools.conf</filename></para>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para>artools.conf is a general configuration file for all artools binaries. </para>
|
||||
|
||||
<para>By default all the options in the file are commented, with a value equal to the
|
||||
default value. To change it just uncomment and put the desired value.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>General options for all tools</title>
|
||||
|
||||
<para>The following options are understood and used for various tools:</para>
|
||||
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>target_arch=</varname></term>
|
||||
|
||||
<listitem><para>Takes <option>i686</option> or <option>x86_64</option>.
|
||||
By default it will try to autodetect the current architecture.
|
||||
It defines in witch architecture the packages will be built with
|
||||
buildpkg.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>workspace_dir=</varname></term>
|
||||
|
||||
<listitem><para>Workspace dir where packages, iso, repos or build tree. Default is "/home/$OWNER/artools-workspace".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>chroots_dir=</varname></term>
|
||||
|
||||
<listitem><para>Build dir where buildpkg or buildiso chroot
|
||||
environment will be created. Default is "/var/lib/artools".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>build_mirror=</varname></term>
|
||||
|
||||
<listitem><para>Default mirror to be used when building
|
||||
packages or iso.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>account=</varname></term>
|
||||
|
||||
<listitem><para>Default user to be used for upload.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>project=</varname></term>
|
||||
|
||||
<listitem><para>Default SF project name to be used for upload.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>host_mirrors=</varname></term>
|
||||
|
||||
<listitem><para>Array of host mirrors.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options for buildtree</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><varname>repo_tree_artix=</varname></term>
|
||||
|
||||
<listitem><para>Artix package tree. Default is
|
||||
"('system' 'world' 'galaxy')".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>host_tree_artix=</varname></term>
|
||||
|
||||
<listitem><para>Host tree. Default is "https://github.com/artix-linux".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>repo_tree_arch=</varname></term>
|
||||
|
||||
<listitem><para>Archlinux package tree. Default is
|
||||
"('packages' 'community')".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>host_tree_arch=</varname></term>
|
||||
|
||||
<listitem><para>Host tree for archlinux. Default is
|
||||
"https://projects.archlinux.org/git/svntogit".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options for buildpkg</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><varname>build_list_pkg=</varname></term>
|
||||
|
||||
<listitem><para>Default list for buildpkg without the .list
|
||||
extension.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options for buildiso</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><varname>build_list_iso=</varname></term>
|
||||
|
||||
<listitem><para>Default list for buildiso without the .list
|
||||
extension.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>dist_release=</varname></term>
|
||||
|
||||
<listitem><para>Release version of the distribution.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<!-- TODO: We should tell where exactly this is used -->
|
||||
<term><varname>dist_branding=</varname></term>
|
||||
|
||||
<listitem><para>Branding of the distribution.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>gpgkey=</varname></term>
|
||||
|
||||
<listitem><para>If the gpgkey is supplied, the sfs images on iso will be signed.
|
||||
If the key is left empty or commented, signing will be skipped.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>initsys=</varname></term>
|
||||
|
||||
<listitem><para>Takes <option>openrc</option> (the default)
|
||||
or <option>notyetimplemented</option>. Selecting and option will change
|
||||
how the hostname, the displaymanager and services will be configured.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>kernel=</varname></term>
|
||||
|
||||
<listitem><para>Takes a string corresponding to an
|
||||
artix kernel package.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options for deployiso</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>tracker_url=</varname></term>
|
||||
|
||||
<listitem><para>Default tracker announce for the torrent.
|
||||
The tracker url can also contain comma separated urls.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>piece_size=</varname></term>
|
||||
|
||||
<listitem><para>Default priece size for the torrent in 2^n.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>limit=</varname></term>
|
||||
|
||||
<listitem><para>Default upload bandwidth limit in kb/s.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options for deploypkg</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><varname>repos_local=</varname></term>
|
||||
|
||||
<listitem><para>The local repository root. Default is "${workspace_dir}/repos".
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>profiles.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>buildiso</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>deployiso</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>buildtree</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>deploypkg</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>buildpkg</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
|
@@ -1,181 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="buildiso" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>buildiso-+</title>
|
||||
<productname>artools</productname>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>buildiso</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>buildiso</refname>
|
||||
<refpurpose>buildiso is used to build a particular ISO or a set of ISOs. </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>buildiso</command>
|
||||
<arg choice="opt" rep="repeat">OPTIONS</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para><command>buildiso</command> is used to build a particular ISO or a set of ISOs. </para>
|
||||
|
||||
<para>With buildiso you can build ISOs suitable to be booted from a removable media
|
||||
like a DVD o a USB Stick, it will automatically create the necessary files to
|
||||
install this ISO using calamares.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-p PROFILE...</option></term>
|
||||
|
||||
<listitem><para>Name of the build list or name of the directory
|
||||
you will build. It needs to contain an existing build list or a
|
||||
folder with a valid profile.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-a i686|x86_64</option></term>
|
||||
|
||||
<listitem><para>Architecture that the iso will be built. Can be i686 or x86_64.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-r DIR</option></term>
|
||||
|
||||
<listitem><para>Root working directory where the iso will be built.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-t DIR</option></term>
|
||||
|
||||
<listitem><para>Iso target directory where the final iso will be stored.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-i openrc|s6|runit</option></term>
|
||||
|
||||
<listitem><para>The init system on the iso</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-g KEY</option></term>
|
||||
|
||||
<listitem><para>The GPG key to use to sign the sfs images.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-k linuxXXX</option></term>
|
||||
|
||||
<listitem><para>The kernel on the iso</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-c</option></term>
|
||||
|
||||
<listitem><para>Disable clean working directory step.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-m</option></term>
|
||||
|
||||
<listitem><para>Enable persistence mode.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-x</option></term>
|
||||
|
||||
<listitem><para>Only build images, without creating an ISO file.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-z</option></term>
|
||||
|
||||
<listitem><para>Generate iso from already created images, for example created with the -x option.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
|
||||
<listitem><para>Verbose output to log file, show profile detail in combination with pretend.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
|
||||
<listitem><para>Query settings and pretend build.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-h</option></term>
|
||||
|
||||
<listitem><para>Help.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<!--<refsect1>
|
||||
<title>Exit status</title>
|
||||
|
||||
<para>On success, 0 is returned, a non-zero failure code
|
||||
otherwise.</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>profiles.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
@@ -1,160 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="buildpkg" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<refentryinfo>
|
||||
<title>buildpkg-+</title>
|
||||
<productname>artools</productname>
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>buildpkg</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>buildpkg</refname>
|
||||
<refpurpose>buildpkg is used to build packages in a clean chroot. </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>buildpkg</command>
|
||||
<arg choice="opt" rep="repeat">OPTIONS</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para><command>buildpkg</command> is used to build a particular package or a set of packages. </para>
|
||||
|
||||
<para>With buildpkg you can build packages in a clean chroot environment.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-p PROFILE...</option></term>
|
||||
|
||||
<listitem><para>Name of the build list or name of the directory
|
||||
you will build. It needs to cantain a existing build list or a
|
||||
folder with a valid PKGBUILD.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-a i686|x86_64|multilib</option></term>
|
||||
|
||||
<listitem><para>Architecture that the iso will be built. Can be i686, x86_64 or multilib.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-r DIR</option></term>
|
||||
|
||||
<listitem><para>Root working directory where the package will be built.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-i PKG</option></term>
|
||||
|
||||
<listitem><para>Install packages into the working copy of the chroot.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-o</option></term>
|
||||
|
||||
<listitem><para>Create chroot.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-d</option></term>
|
||||
|
||||
<listitem><para>Delete chroot.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-c</option></term>
|
||||
|
||||
<listitem><para>Clean chroot copy.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-u</option></term>
|
||||
|
||||
<listitem><para>Update chroot copy.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</option></term>
|
||||
|
||||
<listitem><para>Clean up cache and sources.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-n</option></term>
|
||||
|
||||
<listitem><para>Install built package in chroot and run namcap check.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-s</option></term>
|
||||
|
||||
<listitem><para>Sign package.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
|
||||
<listitem><para>Query settings and pretend build.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-h</option></term>
|
||||
|
||||
<listitem><para>Help.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
@@ -1,111 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="buildtree" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<refentryinfo>
|
||||
<title>buildtree-+</title>
|
||||
<productname>artools</productname>
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>buildtree</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>buildtree</refname>
|
||||
<refpurpose>buildtree is used to sync the cromnix and arch package build tree. </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>buildtree</command>
|
||||
<arg choice="opt" rep="repeat">OPTIONS</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para><command>buildtree</command> is used to sync package trees. </para>
|
||||
|
||||
<para>With buildtree, you can sync the cromnix and arch linux packae build trees.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-s</option></term>
|
||||
|
||||
<listitem><para>Sync Manjaro linux tree.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-a</option></term>
|
||||
|
||||
<listitem><para>Sync Arch linux tree.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-c</option></term>
|
||||
|
||||
<listitem><para>Clean package trees.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
|
||||
<listitem><para>Query settings.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-h</option></term>
|
||||
|
||||
<listitem><para>Help.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@@ -1,146 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="check-yaml" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>check-yaml-+</title>
|
||||
<productname>artools</productname>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>check-yaml</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>check-yaml</refname>
|
||||
<refpurpose>check-yaml is used to generate and validate yaml files used by calamares. </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>check-yaml</command>
|
||||
<arg choice="opt" rep="repeat">OPTIONS</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para><command>check-yaml</command> is used to generate and validate yaml files used by calamares.</para>
|
||||
|
||||
<para>check-yaml is a script to generate and validate yaml files by yaml schemas. Buildiso generates these files also, but check-yaml is a standalone version without the need to build the entire iso.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-p PROFILE...</option></term>
|
||||
|
||||
<listitem><para>Name of the build list or name of the directory.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-a i686|x86_64</option></term>
|
||||
|
||||
<listitem><para>Architecture that the yaml will be created for. Can be i686 or x86_64.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-i openrc|s6|runit</option></term>
|
||||
|
||||
<listitem><para>The init system the yaml will be created for.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-k linuxXXX</option></term>
|
||||
|
||||
<listitem><para>The kernel the yaml will be created for.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-c</option></term>
|
||||
|
||||
<listitem><para>Create calamares yaml conf files.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-g</option></term>
|
||||
|
||||
<listitem><para>Generate a packman group netgroup yaml file.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
|
||||
<listitem><para>Validate the yaml file by yaml schema.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
|
||||
<listitem><para>Query settings.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-h</option></term>
|
||||
|
||||
<listitem><para>Help.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<!--<refsect1>
|
||||
<title>Exit status</title>
|
||||
|
||||
<para>On success, 0 is returned, a non-zero failure code
|
||||
otherwise.</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>profiles.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
@@ -1,135 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="deployiso" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>deployiso-+</title>
|
||||
<productname>artools</productname>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>deployiso</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>deployiso</refname>
|
||||
<refpurpose>deployiso is used to upload a particular ISO or a set of ISOs. </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>deployiso</command>
|
||||
<arg choice="opt" rep="repeat">OPTIONS</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para><command>deployiso</command> is used to upload a particular ISO or a set of ISOs. </para>
|
||||
|
||||
<para>deployiso is a script to upload a specific iso or a buiildset to SF.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-p PROFILE...</option></term>
|
||||
|
||||
<listitem><para>Name of the build list or name of the directory
|
||||
you will upload.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-l</option></term>
|
||||
|
||||
<listitem><para>Limit bandwidth in kB/s.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-u</option></term>
|
||||
|
||||
<listitem><para>Update remote iso.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-t</option></term>
|
||||
|
||||
<listitem><para>Create a torrent from iso file.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
|
||||
<listitem><para>Verbose output.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
|
||||
<listitem><para>Query settings and pretend upload.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-h</option></term>
|
||||
|
||||
<listitem><para>Help.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<!--<refsect1>
|
||||
<title>Exit status</title>
|
||||
|
||||
<para>On success, 0 is returned, a non-zero failure code
|
||||
otherwise.</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>profiles.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
@@ -1,145 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="deploypkg" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>deploypkg-+</title>
|
||||
<productname>artools</productname>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>deploypkg</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>deploypkg</refname>
|
||||
<refpurpose>deploypkg is used to sync package repositories. </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>deploypkg</command>
|
||||
<arg choice="opt" rep="repeat">OPTIONS</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para><command>deploypkg</command> is used to sync package repositories. </para>
|
||||
|
||||
<para>deploypkg is a script to sync a specific repoitory with SF.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>-r REPOSITORY...</option></term>
|
||||
|
||||
<listitem><para>Name of the repo to sync.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-p PACKAGE...</option></term>
|
||||
|
||||
<listitem><para>Name of the package to add or delete.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-x</option></term>
|
||||
|
||||
<listitem><para>Add a package to the repo db.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-y</option></term>
|
||||
|
||||
<listitem><para>Delete a package from the repo.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-u</option></term>
|
||||
|
||||
<listitem><para>Upload a repo.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-d</option></term>
|
||||
|
||||
<listitem><para>Download a repo.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
|
||||
<listitem><para>Verbose output.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
|
||||
<listitem><para>Query settings and pretend upload.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-h</option></term>
|
||||
|
||||
<listitem><para>Help.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<!--<refsect1>
|
||||
<title>Exit status</title>
|
||||
|
||||
<para>On success, 0 is returned, a non-zero failure code
|
||||
otherwise.</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
@@ -1,192 +0,0 @@
|
||||
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
|
||||
<!--
|
||||
This file is part of artools.
|
||||
|
||||
Copyright 2015 Manjaro Developers
|
||||
Copyright 2017 Artoo
|
||||
|
||||
artools is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
artools is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with artools; If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<refentry id="profile.conf" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<refentryinfo>
|
||||
<title>profile.conf-+</title>
|
||||
<productname>artools</productname>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<contrib></contrib>
|
||||
<firstname></firstname>
|
||||
<surname></surname>
|
||||
<email></email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
</refentryinfo>
|
||||
|
||||
<refmeta>
|
||||
<refentrytitle>profile.conf</refentrytitle>
|
||||
<manvolnum>5</manvolnum>
|
||||
</refmeta>
|
||||
|
||||
<refnamediv>
|
||||
<refname>profile.conf</refname>
|
||||
<refpurpose>configuration file for the individual profiles </refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<para><filename>profile.conf</filename></para>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
||||
<para>profile.conf is a configuration file used to modify how the ISO will be built. </para>
|
||||
|
||||
<para>By default all the options in the file are commented, with a value equal to the
|
||||
default value. To change it just uncomment and put the desired value.</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>Options</title>
|
||||
|
||||
<para>The following options are understood:</para>
|
||||
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>displaymanager=</varname></term>
|
||||
|
||||
<listitem><para>Takes a value of
|
||||
<option>lightdm</option>,
|
||||
<option>sddm</option>,
|
||||
<option>gdm</option>,
|
||||
<option>mdm</option>,
|
||||
<option>lxdm</option>. Defaults to "none" value,
|
||||
which won't configure any display manager.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>autologin=</varname></term>
|
||||
|
||||
<listitem><para>Accepts
|
||||
<option>true</option> (the default)
|
||||
<option>false</option>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>netinstall=</varname></term>
|
||||
|
||||
<listitem><para>Accepts
|
||||
<option>false</option> (the default)
|
||||
<option>true</option>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>chrootcfg=</varname></term>
|
||||
|
||||
<listitem><para>Accepts
|
||||
<option>false</option> (the default)
|
||||
<option>true</option>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>extra=</varname></term>
|
||||
|
||||
<listitem><para>Accepts
|
||||
<option>false</option> (the default)
|
||||
<option>false</option>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>multilib=</varname></term>
|
||||
|
||||
<listitem><para>Accepts
|
||||
<option>true</option> (the default)
|
||||
<option>false</option>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>enable_openrc=</varname></term>
|
||||
|
||||
<listitem><para>Array of services that will be
|
||||
enabled in openrc systems.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>hostname=</varname></term>
|
||||
|
||||
<listitem><para>Hostname for the ISO.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>username=</varname></term>
|
||||
|
||||
<listitem><para>Username of the default user
|
||||
that will be created in the live-cd.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>password=</varname></term>
|
||||
|
||||
<listitem><para>Password of the default user
|
||||
that will be created in the live-cd.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>login_shell=</varname></term>
|
||||
|
||||
<listitem><para>Accepts any login shell for the user, eg. /bin/zsh.
|
||||
login_shell defaults to /bin/bash
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>addgroups=</varname></term>
|
||||
|
||||
<listitem><para>Default groups of the default user
|
||||
in the live-cd and the user created while installing
|
||||
the iso using calamares.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
<title>See Also</title>
|
||||
<para>
|
||||
<citerefentry project='artools'><refentrytitle>artools.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||
<citerefentry project='artools'><refentrytitle>buildiso</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
|
@@ -10,10 +10,10 @@
|
||||
# GNU General Public License for more details.
|
||||
|
||||
add_svc_rc(){
|
||||
local mnt="$1" name="$2"
|
||||
local mnt="$1" name="$2" rlvl="$3"
|
||||
if [[ -f $mnt/etc/init.d/$name ]];then
|
||||
msg2 "Setting %s ..." "$name"
|
||||
chroot $mnt rc-update add $name default &>/dev/null
|
||||
chroot $mnt rc-update add $name $rlvl &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -52,12 +52,15 @@ configure_services(){
|
||||
info "Configuring [%s]" "${initsys}"
|
||||
case ${initsys} in
|
||||
'openrc')
|
||||
for svc in ${enable_openrc[@]}; do
|
||||
for svc in ${openrc_boot[@]}; do
|
||||
add_svc_rc "$mnt" "$svc" "boot"
|
||||
done
|
||||
for svc in ${openrc_default[@]}; do
|
||||
[[ $svc == "xdm" ]] && set_xdm "$mnt"
|
||||
add_svc_rc "$mnt" "$svc"
|
||||
add_svc_rc "$mnt" "$svc" "default"
|
||||
done
|
||||
for svc in ${enable_live[@]}; do
|
||||
add_svc_rc "$mnt" "$svc"
|
||||
add_svc_rc "$mnt" "$svc" "default"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
@@ -32,16 +32,14 @@ make_torrent(){
|
||||
}
|
||||
|
||||
prepare_transfer(){
|
||||
prof="$1"
|
||||
target_dir="/iso/$prof/"
|
||||
src_dir="${cache_dir_iso}/$prof/"
|
||||
target_dir="/iso/${profile}/"
|
||||
src_dir="${cache_dir_iso}/${profile}/"
|
||||
${torrent} && make_torrent
|
||||
}
|
||||
|
||||
sync_dir(){
|
||||
prepare_transfer "$1"
|
||||
msg "Start upload [%s] ..." "$1"
|
||||
msg "Start upload [%s] ..." "${profile}"
|
||||
rsync "${rsync_args[@]}" ${src_dir} $(connect)${target_dir}
|
||||
msg "Done upload [%s]" "$1"
|
||||
msg "Done upload [%s]" "${profile}"
|
||||
show_elapsed_time "${FUNCNAME}" "${timer_start}"
|
||||
}
|
||||
|
@@ -35,7 +35,6 @@ error_function() {
|
||||
run_log(){
|
||||
local func="$1"
|
||||
local logfile=${log_dir}/$(gen_iso_fn).$func.log
|
||||
# local tmpfile=${tmp_dir}/$func.ansi.log
|
||||
logpipe=$(mktemp -u "${tmp_dir}/$func.pipe.XXXXXXXX")
|
||||
mkfifo "$logpipe"
|
||||
tee "$logfile" < "$logpipe" &
|
||||
@@ -43,8 +42,6 @@ run_log(){
|
||||
$func &> "$logpipe"
|
||||
wait $teepid
|
||||
rm "$logpipe"
|
||||
# cat $tmpfile | perl -pe 's/\e\[?.*?[\@-~]//g' > $logfile
|
||||
# rm "$tmpfile"
|
||||
}
|
||||
|
||||
run_safe() {
|
||||
@@ -227,10 +224,7 @@ make_iso() {
|
||||
gen_iso_fn(){
|
||||
local vars=() name
|
||||
vars+=("${os_id}")
|
||||
# if ! ${chrootcfg};then
|
||||
# [[ -n ${profile} ]] && vars+=("${profile}")
|
||||
# fi
|
||||
# [[ ${initsys} == 'openrc' ]] && vars+=("${initsys}")
|
||||
vars+=("${profile}")
|
||||
vars+=("${dist_release}")
|
||||
vars+=("${target_arch}")
|
||||
for n in ${vars[@]};do
|
||||
@@ -370,19 +364,6 @@ make_grub(){
|
||||
fi
|
||||
}
|
||||
|
||||
check_requirements(){
|
||||
|
||||
eval_build_list "${list_dir_iso}" "${build_list_iso}"
|
||||
|
||||
[[ -f ${run_dir}/repo_info ]] || die "%s is not a valid iso profiles directory!" "${run_dir}"
|
||||
|
||||
for sig in TERM HUP QUIT; do
|
||||
trap "trap_exit $sig \"$(gettext "%s signal caught. Exiting...")\" \"$sig\"" "$sig"
|
||||
done
|
||||
trap 'trap_exit INT "$(gettext "Aborted by user! Exiting...")"' INT
|
||||
trap 'trap_exit USR1 "$(gettext "An unknown error has occurred. Exiting...")"' ERR
|
||||
}
|
||||
|
||||
compress_images(){
|
||||
local timer=$(get_timer)
|
||||
run_safe "make_iso"
|
||||
@@ -408,53 +389,26 @@ prepare_images(){
|
||||
show_elapsed_time "${FUNCNAME}" "${timer}"
|
||||
}
|
||||
|
||||
archive_logs(){
|
||||
local name=$(gen_iso_fn) ext=log.tar.xz src=${tmp_dir}/archives.list
|
||||
find ${log_dir} -maxdepth 1 -name "$name*.log" -printf "%f\n" > $src
|
||||
msg2 "Archiving log files [%s] ..." "$name.$ext"
|
||||
tar -cJf ${log_dir}/$name.$ext -C ${log_dir} -T $src
|
||||
msg2 "Cleaning log files ..."
|
||||
find ${log_dir} -maxdepth 1 -name "$name*.log" -delete
|
||||
}
|
||||
|
||||
make_profile(){
|
||||
build(){
|
||||
msg "Start building [%s]" "${profile}"
|
||||
if ${clean_first};then
|
||||
chroot_clean "${chroots_iso}/${profile}/${target_arch}"
|
||||
|
||||
local unused_arch='i686'
|
||||
if [[ ${target_arch} == 'i686' ]];then
|
||||
unused_arch='x86_64'
|
||||
fi
|
||||
if [[ -d "${chroots_iso}/${profile}/${unused_arch}" ]];then
|
||||
chroot_clean "${chroots_iso}/${profile}/${unused_arch}"
|
||||
fi
|
||||
clean_iso_root "${iso_root}"
|
||||
fi
|
||||
|
||||
if ${iso_only}; then
|
||||
[[ ! -d ${work_dir} ]] && die "Create images: buildiso -p %s -x" "${profile}"
|
||||
compress_images
|
||||
${verbose} && archive_logs
|
||||
exit 1
|
||||
fi
|
||||
if ${images_only}; then
|
||||
prepare_images
|
||||
${verbose} && archive_logs
|
||||
warning "Continue compress: buildiso -p %s -zc ..." "${profile}"
|
||||
exit 1
|
||||
else
|
||||
prepare_images
|
||||
compress_images
|
||||
${verbose} && archive_logs
|
||||
fi
|
||||
reset_profile
|
||||
msg "Finished building [%s]" "${profile}"
|
||||
show_elapsed_time "${FUNCNAME}" "${timer_start}"
|
||||
}
|
||||
|
||||
build(){
|
||||
local prof="$1"
|
||||
prepare_build "$prof"
|
||||
make_profile
|
||||
}
|
||||
|
@@ -26,7 +26,11 @@ get_makepkg_conf(){
|
||||
local arch="$1"
|
||||
local conf="${tmp_dir}/makepkg-${arch}.conf"
|
||||
|
||||
cp "${DATADIR}/makepkg.conf" "$conf"
|
||||
if [[ -f $AT_USERCONFDIR/makepkg.conf ]];then
|
||||
cp "$AT_USERCONFDIR/makepkg.conf" "$conf"
|
||||
else
|
||||
cp "${DATADIR}/makepkg.conf" "$conf"
|
||||
fi
|
||||
|
||||
load_compiler_settings "${arch}"
|
||||
|
||||
@@ -47,20 +51,12 @@ check_build(){
|
||||
find_pkg(){
|
||||
local bdir="$1"
|
||||
local result=$(find . -type d -name "${bdir}")
|
||||
[[ -z $result ]] && die "%s is not a valid package or build list!" "${bdir}"
|
||||
}
|
||||
|
||||
clean_up(){
|
||||
msg2 "Cleaning [%s]" "${pkg_dir}"
|
||||
find ${pkg_dir} -maxdepth 1 -name "*.*" -delete #&> /dev/null
|
||||
if [[ -z $SRCDEST ]];then
|
||||
msg2 "Cleaning [source files]"
|
||||
find $PWD -maxdepth 1 -name '*.?z?' -delete #&> /dev/null
|
||||
fi
|
||||
[[ -z $result ]] && die "%s is not a valid package!" "${bdir}"
|
||||
}
|
||||
|
||||
sign_pkg(){
|
||||
local pkg="$1"
|
||||
[[ -f ${pkg_dir}/${pkg}.sig ]] && rm ${pkg_dir}/${pkg}.sig
|
||||
user_run "signfile ${pkg_dir}/${pkg}"
|
||||
}
|
||||
|
||||
@@ -87,17 +83,19 @@ post_build(){
|
||||
local ver=$(get_full_version "$pkg") src
|
||||
src=$pkg-$ver-$tarch.$ext
|
||||
move_to_cache "$src"
|
||||
if ${repo_add};then
|
||||
deploypkg "${deploypkg_args[@]}" -p "$src"
|
||||
user_own "${repos_local}/${repository}" -R
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
build_pkg(){
|
||||
${purge} && clean_up
|
||||
# setarch "${target_arch}"
|
||||
mkchrootpkg "${mkchrootpkg_args[@]}" || die
|
||||
post_build
|
||||
}
|
||||
|
||||
make_pkg(){
|
||||
build(){
|
||||
local pkg="$1"
|
||||
check_build "${pkg}"
|
||||
msg "Start building [%s]" "${pkg}"
|
||||
|
@@ -9,17 +9,21 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
repo_add_pkg(){
|
||||
local repo="$1" arch="$2" pkg="$3"
|
||||
# if [[ ! -f ${cache_dir_pkg}/$arch/$pkg{,.sig} ]];then
|
||||
ln -sv ${cache_dir_pkg}/$arch/$pkg{,.sig} ${repos_local}/$repo/os/$arch/
|
||||
# fi
|
||||
repo-add -R ${repos_local}/$repo/os/$arch/$repo.db.tar.xz ${cache_dir_pkg}/$arch/$pkg
|
||||
}
|
||||
|
||||
repo_del_pkg(){
|
||||
local repo="$1" arch="$2" pkg="$3"
|
||||
repo-remove -R ${repos_local}/$repo/os/$arch/$repo.db.tar.xz $pkg
|
||||
repo_update(){
|
||||
local repo="$1" arch="$2" pkg="$3" action="$4" copy="$5"
|
||||
if [[ $action == "add" ]];then
|
||||
if [[ -f ${repos_local}/$repo/os/$arch/$pkg \
|
||||
&& -f ${repos_local}/$repo/os/$arch/$pkg.sig ]];then
|
||||
rm ${repos_local}/$repo/os/$arch/$pkg
|
||||
rm ${repos_local}/$repo/os/$arch/$pkg.sig
|
||||
fi
|
||||
local cmd='ln -s'
|
||||
$copy && cmd='cp'
|
||||
$cmd ${cache_dir_pkg}/$arch/$repo/$pkg{,.sig} ${repos_local}/$repo/os/$arch/
|
||||
fi
|
||||
local dest=${repos_local}/$repo/os/$arch/$pkg
|
||||
[[ $action == "remove" ]] && dest=$pkg
|
||||
repo-$action -R ${repos_local}/$repo/os/$arch/$repo.db.tar.xz $dest
|
||||
}
|
||||
|
||||
update_lock(){
|
||||
@@ -27,6 +31,15 @@ update_lock(){
|
||||
rsync "${rsync_args[@]}" --exclude='os' "${repos_local}/$repo/" "$(connect)${repos_remote}/$repo/"
|
||||
}
|
||||
|
||||
is_locked(){
|
||||
local repo="$1" url="https://${host}/projects/${project}/files/repos"
|
||||
if wget --spider -v $url/$repo/$repo.lock &>/dev/null;then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
repo_lock(){
|
||||
local repo="$1"
|
||||
if [[ ! -f ${repos_local}/$repo/$repo.lock ]];then
|
||||
@@ -47,8 +60,11 @@ repo_unlock(){
|
||||
|
||||
repo_download(){
|
||||
local repo="$1"
|
||||
rsync "${rsync_args[@]}" "$(connect)${repos_remote}/$repo/" "${repos_local}/$repo/"
|
||||
[[ -f ${repos_local}/$repo/$repo.lock ]] && die "The '%s' repository is locked" "$repo"
|
||||
if is_locked "$repo"; then
|
||||
die "The '%s' repository is locked" "$repo"
|
||||
else
|
||||
rsync "${rsync_args[@]}" "$(connect)${repos_remote}/$repo/" "${repos_local}/$repo/"
|
||||
fi
|
||||
}
|
||||
|
||||
repo_upload(){
|
||||
|
@@ -9,40 +9,32 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
sync_tree_branches(){
|
||||
local branches=(master artix archlinux testing)
|
||||
for b in ${branches[@]};do
|
||||
git checkout $b &> /dev/null
|
||||
local local_head=$(git log --pretty=%H ...refs/heads/$b^ | head -n 1)
|
||||
local remote_head=$(git ls-remote origin -h refs/heads/$b | cut -f1)
|
||||
local timer=$(get_timer) repo="$1"
|
||||
msg "Checking [%s] (%s) ..." "$repo" "$b"
|
||||
msg2 "local: %s" "${local_head}"
|
||||
msg2 "remote: %s" "${remote_head}"
|
||||
if [[ "${local_head}" == "${remote_head}" ]]; then
|
||||
info "nothing to do"
|
||||
else
|
||||
info "needs sync"
|
||||
git pull origin $b
|
||||
fi
|
||||
msg "Done [%s]" "$repo"
|
||||
done
|
||||
git checkout master &> /dev/null
|
||||
show_elapsed_time "${FUNCNAME}" "${timer}"
|
||||
get_local_head(){
|
||||
echo $(git log --pretty=%H ...refs/heads/$1^ | head -n 1)
|
||||
}
|
||||
|
||||
get_remote_head(){
|
||||
echo $(git ls-remote origin -h refs/heads/$1 | cut -f1)
|
||||
}
|
||||
|
||||
is_dirty() {
|
||||
[[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
sync_tree(){
|
||||
local master=$(git log --pretty=%H ...refs/heads/master^ | head -n 1)
|
||||
local master_remote=$(git ls-remote origin -h refs/heads/master | cut -f1)
|
||||
local timer=$(get_timer) repo="$1"
|
||||
local branch="master" repo="$1"
|
||||
local local_head=$(get_local_head "$branch")
|
||||
local remote_head=$(get_remote_head "$branch")
|
||||
local timer=$(get_timer)
|
||||
msg "Checking [%s] ..." "$repo"
|
||||
msg2 "local: %s" "${master}"
|
||||
msg2 "remote: %s" "${master_remote}"
|
||||
if [[ "${master}" == "${master_remote}" ]]; then
|
||||
msg2 "local: %s" "${local_head}"
|
||||
msg2 "remote: %s" "${remote_head}"
|
||||
if [[ "${local_head}" == "${remote_head}" ]]; then
|
||||
info "nothing to do"
|
||||
else
|
||||
info "needs sync"
|
||||
git pull origin master
|
||||
git pull origin $branch
|
||||
fi
|
||||
msg "Done [%s]" "$repo"
|
||||
show_elapsed_time "${FUNCNAME}" "${timer}"
|
||||
@@ -57,20 +49,6 @@ clone_tree(){
|
||||
show_elapsed_time "${FUNCNAME}" "${timer}"
|
||||
}
|
||||
|
||||
sync_tree_artix(){
|
||||
cd ${tree_dir_artix}
|
||||
for repo in ${repo_tree_artix[@]};do
|
||||
if [[ -d ${repo} ]];then
|
||||
cd ${repo}
|
||||
sync_tree_branches "${repo}"
|
||||
cd ..
|
||||
else
|
||||
clone_tree "${repo}" "${host_tree_artix}/${repo}"
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
}
|
||||
|
||||
sync_tree_arch(){
|
||||
cd ${tree_dir_arch}
|
||||
for repo in ${repo_tree_arch[@]};do
|
||||
@@ -91,25 +69,38 @@ read_import_list(){
|
||||
import_list=$(sed "$_com_rm" "${list_dir_import}/$name.list" | sed "$_space" | sed "$_clean")
|
||||
}
|
||||
|
||||
is_dirty() {
|
||||
[[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] || return 1
|
||||
get_pkgver(){
|
||||
source PKGBUILD
|
||||
echo $pkgver-$pkgrel
|
||||
}
|
||||
|
||||
is_untracked(){
|
||||
[[ $(git ls-files --others --exclude-standard) != "" ]] || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
import_from_arch(){
|
||||
local timer=$(get_timer)
|
||||
for repo in ${repo_tree_artix[@]};do
|
||||
local timer=$(get_timer) branch='testing'
|
||||
for repo in ${repo_tree_import[@]};do
|
||||
read_import_list "$repo"
|
||||
if [[ -n ${import_list[@]} ]];then
|
||||
cd ${tree_dir_artix}/$repo
|
||||
git checkout archlinux &> /dev/null
|
||||
git checkout $branch &> /dev/null
|
||||
$(is_dirty) && die "[%s] has uncommited changes!" "${repo}"
|
||||
git pull origin $branch &> /dev/null
|
||||
local arch_dir=packages
|
||||
[[ $repo == "galaxy" ]] && arch_dir=community
|
||||
msg "Import into [%s] branch (archlinux)" "$repo"
|
||||
msg "Import into [%s]" "$repo"
|
||||
for pkg in ${import_list[@]};do
|
||||
msg2 "Importing [%s] ..." "$pkg"
|
||||
rsync "${rsync_args[@]}" ${tree_dir_arch}/$arch_dir/$pkg/trunk/ ${tree_dir_artix}/$repo/$pkg/
|
||||
$(is_dirty) && git commit -m "Archlinux $pkg import $(date %Y%m%d)"
|
||||
if $(is_dirty) || $(is_untracked); then
|
||||
git add $pkg
|
||||
cd $pkg
|
||||
local ver=$(get_pkgver)
|
||||
msg2 "Archlinux import: [%s]" "$pkg-$ver"
|
||||
git commit -m "Archlinux import: $pkg-$ver"
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
@@ -9,16 +9,6 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
repo_add_pkg(){
|
||||
repo="$1" arch="$2" pkg="$3" ext="db.tar.xz"
|
||||
repo-add "$repo/os/$arch/$repo.$ext" "$repo/os/$arch/$pkg"
|
||||
}
|
||||
|
||||
repo_del_pkg(){
|
||||
repo="$1" arch="$2" pkg="$3" ext="db.tar.xz"
|
||||
repo-remove "$repo/os/$arch/$repo.$ext" "$repo/os/$arch/$pkg"
|
||||
}
|
||||
|
||||
in_array() {
|
||||
local needle=$1; shift
|
||||
local item
|
||||
|
@@ -8,119 +8,62 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
write_repo_conf(){
|
||||
local repos=$(find $USER_HOME -type f -name "repo_info")
|
||||
local path name
|
||||
[[ -z ${repos[@]} ]] && run_dir=${DATADIR}/iso-profiles && return 1
|
||||
for r in ${repos[@]}; do
|
||||
path=${r%/repo_info}
|
||||
name=${path##*/}
|
||||
echo "run_dir=$path" > ${AT_USERCONFDIR}/$name.conf
|
||||
done
|
||||
}
|
||||
|
||||
load_run_dir(){
|
||||
local gitrepo='iso-profiles'
|
||||
[[ -f ${AT_USERCONFDIR}/$gitrepo.conf ]] || write_repo_conf
|
||||
[[ -r ${AT_USERCONFDIR}/$gitrepo.conf ]] && source ${AT_USERCONFDIR}/$gitrepo.conf
|
||||
return 0
|
||||
}
|
||||
|
||||
load_profile(){
|
||||
local profdir="$1"
|
||||
local profile_conf="$profdir/profile.conf"
|
||||
local prof="$1"
|
||||
local profdir="${DATADIR}/iso-profiles/$prof"
|
||||
[[ "$prof" != 'base' ]] && profdir=${workspace_dir}/iso-profiles/$prof
|
||||
|
||||
[[ -f ${profile_conf} ]] || return 1
|
||||
root_list="${DATADIR}/iso-profiles/base/Packages-Root"
|
||||
[[ -f "$profdir/Packages-Root" ]] && root_list="$profdir/Packages-Root"
|
||||
|
||||
[[ -r ${profile_conf} ]] && source ${profile_conf}
|
||||
root_overlay="${DATADIR}/iso-profiles/base/root-overlay"
|
||||
[[ -d "$profdir/root-overlay" ]] && root_overlay="$profdir/root-overlay"
|
||||
|
||||
[[ -f "$profdir/Packages-Desktop" ]] && desktop_list="$profdir/Packages-Desktop"
|
||||
[[ -d "$profdir/desktop-overlay" ]] && desktop_overlay="$profdir/desktop-overlay"
|
||||
|
||||
live_list="${DATADIR}/iso-profiles/base/Packages-Live"
|
||||
[[ -f "$profdir/Packages-Live" ]] && live_list="$profdir/Packages-Live"
|
||||
|
||||
live_overlay="${DATADIR}/iso-profiles/base/live-overlay"
|
||||
[[ -d "$profdir/live-overlay" ]] && live_overlay="$profdir/live-overlay"
|
||||
|
||||
[[ -f $profdir/profile.conf ]] || return 1
|
||||
|
||||
[[ -r $profdir/profile.conf ]] && source $profdir/profile.conf
|
||||
|
||||
[[ -z ${displaymanager} ]] && displaymanager="none"
|
||||
|
||||
[[ -z ${autologin} ]] && autologin="true"
|
||||
[[ ${displaymanager} == 'none' ]] && autologin="false"
|
||||
|
||||
[[ -z ${multilib} ]] && multilib="true"
|
||||
|
||||
[[ -z ${hostname} ]] && hostname="artix"
|
||||
|
||||
[[ -z ${username} ]] && username="artix"
|
||||
|
||||
[[ -z ${password} ]] && password="artix"
|
||||
|
||||
[[ -z ${login_shell} ]] && login_shell='/bin/bash'
|
||||
|
||||
if [[ -z ${addgroups} ]];then
|
||||
addgroups="video,power,storage,optical,network,lp,scanner,wheel,sys"
|
||||
addgroups="video,power,storage,optical,network,lp,scanner,wheel,users"
|
||||
fi
|
||||
|
||||
if [[ -z ${enable_openrc[@]} ]];then
|
||||
enable_openrc=('acpid' 'bluetooth' 'elogind' 'cronie' 'cupsd' 'dbus' 'syslog-ng' 'NetworkManager')
|
||||
if [[ -z ${openrc_boot[@]} ]];then
|
||||
openrc_boot=('elogind')
|
||||
fi
|
||||
|
||||
if [[ ${displaymanager} != "none" ]]; then
|
||||
enable_openrc+=('xdm')
|
||||
if [[ -z ${openrc_default[@]} ]];then
|
||||
openrc_default=('acpid' 'bluetooth' 'cronie' 'cupsd' 'dbus' 'syslog-ng' 'NetworkManager')
|
||||
fi
|
||||
|
||||
[[ -z ${netinstall} ]] && netinstall='false'
|
||||
|
||||
[[ -z ${chrootcfg} ]] && chrootcfg='false'
|
||||
[[ ${displaymanager} != "none" ]] && openrc_default+=('xdm')
|
||||
|
||||
enable_live=('artix-live' 'pacman-init')
|
||||
|
||||
netgroups="https://raw.githubusercontent.com/artix-linux/iso-profiles/master/shared/netgroups"
|
||||
|
||||
basic='true'
|
||||
[[ -z ${extra} ]] && extra='false'
|
||||
|
||||
${extra} && basic='false'
|
||||
|
||||
root_list=${run_dir}/shared/Packages-Root
|
||||
[[ -f "$profdir/Packages-Root" ]] && root_list="$profdir/Packages-Root"
|
||||
|
||||
root_overlay="${run_dir}/shared/${os_id}/root-overlay"
|
||||
[[ -d "$profdir/root-overlay" ]] && root_overlay="$profdir/root-overlay"
|
||||
|
||||
[[ -f "$profdir/Packages-Desktop" ]] && desktop_list=$profdir/Packages-Desktop
|
||||
[[ -d "$profdir/desktop-overlay" ]] && desktop_overlay="$profdir/desktop-overlay"
|
||||
|
||||
live_list="${run_dir}/shared/Packages-Live"
|
||||
[[ -f "$profdir/Packages-Live" ]] && live_list="$profdir/Packages-Live"
|
||||
|
||||
live_overlay="${run_dir}/shared/${os_id}/live-overlay"
|
||||
[[ -d "$profdir/live-overlay" ]] && live_overlay="$profdir/live-overlay"
|
||||
|
||||
if ${netinstall};then
|
||||
sort -u ${run_dir}/shared/Packages-Net ${live_list} > ${tmp_dir}/packages-live-net.list
|
||||
live_list=${tmp_dir}/packages-live-net.list
|
||||
else
|
||||
chrootcfg="false"
|
||||
fi
|
||||
[[ -z ${netgroups} ]] && netgroups="https://raw.githubusercontent.com/artix-linux/netgroups/master"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
reset_profile(){
|
||||
unset displaymanager
|
||||
unset autologin
|
||||
unset multilib
|
||||
unset hostname
|
||||
unset username
|
||||
unset password
|
||||
unset addgroups
|
||||
unset enable_openrc
|
||||
unset enable_live
|
||||
unset login_shell
|
||||
unset netinstall
|
||||
unset chrootcfg
|
||||
unset extra
|
||||
unset root_list
|
||||
unset desktop_list
|
||||
unset live_list
|
||||
unset root_overlay
|
||||
unset desktop_overlay
|
||||
unset live_overlay
|
||||
}
|
||||
|
||||
write_live_session_conf(){
|
||||
local path=$1${SYSCONFDIR}
|
||||
[[ ! -d $path ]] && mkdir -p "$path"
|
||||
@@ -131,9 +74,6 @@ write_live_session_conf(){
|
||||
echo '# autologin' >> ${conf}
|
||||
echo "autologin=${autologin}" >> ${conf}
|
||||
echo '' >> ${conf}
|
||||
echo '# login shell' >> ${conf}
|
||||
echo "login_shell=${login_shell}" >> ${conf}
|
||||
echo '' >> ${conf}
|
||||
echo '# live username' >> ${conf}
|
||||
echo "username=${username}" >> ${conf}
|
||||
echo '' >> ${conf}
|
||||
@@ -149,32 +89,18 @@ load_pkgs(){
|
||||
local pkglist="$1" arch="$2" init="$3" _kv="$4"
|
||||
info "Loading Packages: [%s] ..." "${pkglist##*/}"
|
||||
|
||||
local _init="s|>openrc||g" #_init_rm="s|>runit.*||g"
|
||||
local _init="s|>$init||g"
|
||||
case "$init" in
|
||||
'openrc') _init_rm1="s|>runit.*||g"; _init_rm2="s|>s6*||g" ;;
|
||||
's6') _init_rm1="s|>runit.*||g"; _init_rm2="s|>openrc.*||g" ;;
|
||||
'runit') _init_rm1="s|>s6.*||g"; _init_rm2="s|>openrc.*||g" ;;
|
||||
esac
|
||||
|
||||
local _basic="s|>basic.*||g"
|
||||
if ${basic};then
|
||||
_basic="s|>basic||g"
|
||||
fi
|
||||
|
||||
local _extra="s|>extra.*||g"
|
||||
if ${extra};then
|
||||
_extra="s|>extra||g"
|
||||
fi
|
||||
|
||||
local _multi _arch _arch_rm
|
||||
local _arch="s|>x86_64||g" _arch_rm="s|>i686.*||g"
|
||||
|
||||
if [[ "$arch" == 'i686' ]];then
|
||||
_arch="s|>i686||g"
|
||||
_arch_rm="s|>x86_64.*||g"
|
||||
_multi="s|>multilib.*||g"
|
||||
else
|
||||
_arch="s|>x86_64||g"
|
||||
_arch_rm="s|>i686.*||g"
|
||||
if ${multilib};then
|
||||
_multi="s|>multilib||g"
|
||||
else
|
||||
_multi="s|>multilib.*||g"
|
||||
fi
|
||||
fi
|
||||
|
||||
local _blacklist="s|>blacklist.*||g" \
|
||||
@@ -188,11 +114,10 @@ load_pkgs(){
|
||||
| sed "$_blacklist" \
|
||||
| sed "$_purge" \
|
||||
| sed "$_init" \
|
||||
| sed "$_init_rm1" \
|
||||
| sed "$_init_rm2" \
|
||||
| sed "$_arch" \
|
||||
| sed "$_arch_rm" \
|
||||
| sed "$_multi" \
|
||||
| sed "$_kernel" \
|
||||
| sed "$_basic" \
|
||||
| sed "$_extra" \
|
||||
| sed "$_clean"))
|
||||
}
|
||||
|
@@ -11,70 +11,44 @@
|
||||
|
||||
import ${LIBDIR}/util-yaml.sh
|
||||
|
||||
# check_yaml(){
|
||||
# msg2 "Checking validity [%s] ..." "${1##*/}"
|
||||
# local name=${1##*/} data=$1 schema
|
||||
# case ${name##*.} in
|
||||
# yaml)
|
||||
# name=netgroups
|
||||
# # data=$1
|
||||
# ;;
|
||||
# conf)
|
||||
# name=${name%.conf}
|
||||
# # data=${tmp_dir}/$name.yaml
|
||||
# # cp $1 $data
|
||||
# ;;
|
||||
# esac
|
||||
# local schemas_dir=/usr/share/calamares/schemas
|
||||
# schema=${schemas_dir}/$name.schema.yaml
|
||||
# # pykwalify -d $data -s $schema
|
||||
# kwalify -lf $schema $data
|
||||
# }
|
||||
|
||||
# write_calamares_yaml(){
|
||||
# configure_calamares "${yaml_dir}"
|
||||
# if ${validate}; then
|
||||
# for conf in "${yaml_dir}"/etc/calamares/modules/*.conf "${yaml_dir}"/etc/calamares/settings.conf; do
|
||||
# check_yaml "$conf"
|
||||
# done
|
||||
# fi
|
||||
# }
|
||||
|
||||
write_netgroup_yaml(){
|
||||
msg2 "Writing %s ..." "${2##*/}"
|
||||
echo "---" > "$2"
|
||||
echo "- name: '$1'" >> "$2"
|
||||
echo " description: '$1'" >> "$2"
|
||||
echo " selected: false" >> "$2"
|
||||
echo " hidden: false" >> "$2"
|
||||
echo " critical: false" >> "$2"
|
||||
echo " packages:" >> "$2"
|
||||
local name="$1" yaml="$2"
|
||||
msg2 "Writing %s ..." "${yaml##*/}"
|
||||
echo "---" > "$yaml"
|
||||
echo "- name: '$name'" >> "$yaml"
|
||||
echo " description: '$name'" >> "$yaml"
|
||||
echo " selected: false" >> "$yaml"
|
||||
echo " hidden: false" >> "$yaml"
|
||||
echo " critical: false" >> "$yaml"
|
||||
echo " packages:" >> "$yaml"
|
||||
for p in ${packages[@]};do
|
||||
echo " - $p" >> "$2"
|
||||
echo " - $p" >> "$yaml"
|
||||
done
|
||||
# ${validate} && check_yaml "$2"
|
||||
}
|
||||
|
||||
write_pacman_group_yaml(){
|
||||
packages=$(pacman -Sgq "$1")
|
||||
local group="$1"
|
||||
packages=$(pacman -Sgq "$group")
|
||||
prepare_dir "${cache_dir_netinstall}/pacman"
|
||||
write_netgroup_yaml "$1" "${cache_dir_netinstall}/pacman/$1.yaml"
|
||||
# ${validate} && check_yaml "${cache_dir_netinstall}/pacman/$1.yaml"
|
||||
write_netgroup_yaml "$group" "${cache_dir_netinstall}/pacman/$group.yaml"
|
||||
}
|
||||
|
||||
gen_fn(){
|
||||
echo "${yaml_dir}/$1-${target_arch}-${initsys}.yaml"
|
||||
}
|
||||
|
||||
make_profile_yaml(){
|
||||
prepare_check "$1"
|
||||
prepare_build(){
|
||||
load_profile "${profile}"
|
||||
yaml_dir=${cache_dir_netinstall}/${profile}/${target_arch}
|
||||
prepare_dir "${yaml_dir}"
|
||||
}
|
||||
|
||||
build(){
|
||||
load_pkgs "${root_list}" "${target_arch}" "${initsys}" "${kernel}"
|
||||
write_netgroup_yaml "$1" "$(gen_fn "Packages-Root")"
|
||||
write_netgroup_yaml "${profile}" "$(gen_fn "Packages-Root")"
|
||||
if [[ -f "${desktop_list}" ]]; then
|
||||
load_pkgs "${desktop_list}" "${target_arch}" "${initsys}" "${kernel}"
|
||||
write_netgroup_yaml "$1" "$(gen_fn "Packages-Desktop")"
|
||||
write_netgroup_yaml "${profile}" "$(gen_fn "Packages-Desktop")"
|
||||
fi
|
||||
# ${calamares} && write_calamares_yaml "$1"
|
||||
reset_profile
|
||||
unset yaml_dir
|
||||
${calamares} && configure_calamares "${yaml_dir}"
|
||||
}
|
||||
|
@@ -61,7 +61,11 @@ write_servicescfg_conf(){
|
||||
echo '' >> "$conf"
|
||||
echo 'services:' >> "$conf"
|
||||
echo ' enabled:' >> "$conf"
|
||||
for s in ${enable_openrc[@]};do
|
||||
for s in ${openrc_boot[@]};do
|
||||
echo " - name: $s" >> "$conf"
|
||||
echo ' runlevel: boot' >> "$conf"
|
||||
done
|
||||
for s in ${openrc_default[@]};do
|
||||
echo " - name: $s" >> "$conf"
|
||||
echo ' runlevel: default' >> "$conf"
|
||||
done
|
||||
@@ -89,21 +93,6 @@ write_initcpio_conf(){
|
||||
echo "kernel: ${kernel}" >> "$conf"
|
||||
}
|
||||
|
||||
write_unpack_conf(){
|
||||
local conf="${modules_dir}/unpackfs.conf"
|
||||
msg2 "Writing %s ..." "${conf##*/}"
|
||||
echo "---" > "$conf"
|
||||
echo "unpack:" >> "$conf"
|
||||
echo " - source: \"/run/artix/bootmnt/${os_id}/${target_arch}/rootfs.sfs\"" >> "$conf"
|
||||
echo " sourcefs: \"squashfs\"" >> "$conf"
|
||||
echo " destination: \"\"" >> "$conf"
|
||||
if [[ -f "${desktop_list}" ]] ; then
|
||||
echo " - source: \"/run/artix/bootmnt/${os_id}/${target_arch}/desktopfs.sfs\"" >> "$conf"
|
||||
echo " sourcefs: \"squashfs\"" >> "$conf"
|
||||
echo " destination: \"\"" >> "$conf"
|
||||
fi
|
||||
}
|
||||
|
||||
write_users_conf(){
|
||||
local conf="${modules_dir}/users.conf"
|
||||
msg2 "Writing %s ..." "${conf##*/}"
|
||||
@@ -123,15 +112,6 @@ write_users_conf(){
|
||||
echo "avatarFilePath: ~/.face" >> "$conf" # mostly used file-name for avatar
|
||||
}
|
||||
|
||||
write_packages_conf(){
|
||||
local conf="${modules_dir}/packages.conf"
|
||||
msg2 "Writing %s ..." "${conf##*/}"
|
||||
echo "---" > "$conf"
|
||||
echo "backend: pacman" >> "$conf"
|
||||
echo '' >> "$conf"
|
||||
echo "update_db: true" >> "$conf"
|
||||
}
|
||||
|
||||
write_welcome_conf(){
|
||||
local conf="${modules_dir}/welcome.conf"
|
||||
msg2 "Writing %s ..." "${conf##*/}"
|
||||
@@ -154,18 +134,7 @@ write_welcome_conf(){
|
||||
echo " - storage" >> "$conf"
|
||||
echo " - ram" >> "$conf"
|
||||
echo " - root" >> "$conf"
|
||||
if ${netinstall};then
|
||||
echo " - internet" >> "$conf"
|
||||
fi
|
||||
}
|
||||
|
||||
write_postcfg_conf(){
|
||||
local conf="${modules_dir}/postcfg.conf"
|
||||
msg2 "Writing %s ..." "${conf##*/}"
|
||||
echo "---" > "$conf"
|
||||
echo "keyrings:" >> "$conf"
|
||||
echo " - archlinux" >> "$conf"
|
||||
echo " - cromnix" >> "$conf"
|
||||
echo " - internet" >> "$conf"
|
||||
}
|
||||
|
||||
write_umount_conf(){
|
||||
@@ -177,17 +146,7 @@ write_umount_conf(){
|
||||
}
|
||||
|
||||
get_yaml(){
|
||||
local args=() yaml
|
||||
if ${chrootcfg};then
|
||||
args+=("chrootcfg")
|
||||
else
|
||||
args+=("packages")
|
||||
fi
|
||||
args+=("${initsys}")
|
||||
for arg in ${args[@]};do
|
||||
yaml=${yaml:-}${yaml:+-}${arg}
|
||||
done
|
||||
echo "${yaml}.yaml"
|
||||
echo "netgroups-${initsys}.yaml"
|
||||
}
|
||||
|
||||
write_netinstall_conf(){
|
||||
@@ -218,26 +177,13 @@ write_settings_conf(){
|
||||
echo " - keyboard" >> "$conf"
|
||||
echo " - partition" >> "$conf"
|
||||
echo " - users" >> "$conf" && write_users_conf
|
||||
if ${netinstall};then
|
||||
echo " - netinstall" >> "$conf" && write_netinstall_conf
|
||||
fi
|
||||
echo " - netinstall" >> "$conf" && write_netinstall_conf
|
||||
echo " - summary" >> "$conf"
|
||||
echo " - exec:" >> "$conf"
|
||||
echo " - partition" >> "$conf"
|
||||
echo " - mount" >> "$conf"
|
||||
if ${netinstall};then
|
||||
if ${chrootcfg}; then
|
||||
echo " - chrootcfg" >> "$conf"
|
||||
echo " - networkcfg" >> "$conf"
|
||||
else
|
||||
echo " - unpackfs" >> "$conf" && write_unpack_conf
|
||||
echo " - networkcfg" >> "$conf"
|
||||
echo " - packages" >> "$conf" && write_packages_conf
|
||||
fi
|
||||
else
|
||||
echo " - unpackfs" >> "$conf" && write_unpack_conf
|
||||
echo " - networkcfg" >> "$conf"
|
||||
fi
|
||||
echo " - chrootcfg" >> "$conf"
|
||||
echo " - networkcfg" >> "$conf"
|
||||
echo " - machineid" >> "$conf" && write_machineid_conf
|
||||
echo " - fstab" >> "$conf"
|
||||
echo " - locale" >> "$conf"
|
||||
@@ -255,7 +201,7 @@ write_settings_conf(){
|
||||
esac
|
||||
echo " - grubcfg" >> "$conf"
|
||||
echo " - bootloader" >> "$conf" && write_bootloader_conf
|
||||
echo " - postcfg" >> "$conf" && write_postcfg_conf
|
||||
echo " - postcfg" >> "$conf"
|
||||
echo " - umount" >> "$conf" && write_umount_conf
|
||||
echo " - show:" >> "$conf"
|
||||
echo " - finished" >> "$conf" && write_finished_conf
|
||||
|
162
lib/util.sh
162
lib/util.sh
@@ -8,80 +8,6 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# $1: section
|
||||
parse_section() {
|
||||
local is_section=0
|
||||
while read line; do
|
||||
[[ $line =~ ^\ {0,}# ]] && continue
|
||||
[[ -z "$line" ]] && continue
|
||||
if [ $is_section == 0 ]; then
|
||||
if [[ $line =~ ^\[.*?\] ]]; then
|
||||
line=${line:1:$((${#line}-2))}
|
||||
section=${line// /}
|
||||
if [[ $section == $1 ]]; then
|
||||
is_section=1
|
||||
continue
|
||||
fi
|
||||
continue
|
||||
fi
|
||||
elif [[ $line =~ ^\[.*?\] && $is_section == 1 ]]; then
|
||||
break
|
||||
else
|
||||
pc_key=${line%%=*}
|
||||
pc_key=${pc_key// /}
|
||||
pc_value=${line##*=}
|
||||
pc_value=${pc_value## }
|
||||
eval "$pc_key='$pc_value'"
|
||||
fi
|
||||
done < "$2"
|
||||
}
|
||||
|
||||
get_repos() {
|
||||
local section repos=() filter='^\ {0,}#'
|
||||
while read line; do
|
||||
[[ $line =~ "${filter}" ]] && continue
|
||||
[[ -z "$line" ]] && continue
|
||||
if [[ $line =~ ^\[.*?\] ]]; then
|
||||
line=${line:1:$((${#line}-2))}
|
||||
section=${line// /}
|
||||
case ${section} in
|
||||
"options") continue ;;
|
||||
*) repos+=("${section}") ;;
|
||||
esac
|
||||
fi
|
||||
done < "$1"
|
||||
echo ${repos[@]}
|
||||
}
|
||||
|
||||
check_user_repos_conf(){
|
||||
local repositories=$(get_repos "$1") uri='file://'
|
||||
for repo in ${repositories[@]}; do
|
||||
msg2 "parsing repo [%s] ..." "${repo}"
|
||||
parse_section "${repo}" "$1"
|
||||
[[ ${pc_value} == $uri* ]] && die "Using local repositories is not supported!"
|
||||
done
|
||||
}
|
||||
|
||||
# $1: list_dir
|
||||
show_build_lists(){
|
||||
local list temp
|
||||
for item in $(ls $1/*.list); do
|
||||
temp=${item##*/}
|
||||
list=${list:-}${list:+|}${temp%.list}
|
||||
done
|
||||
echo $list
|
||||
}
|
||||
|
||||
# $1: make_conf_dir
|
||||
show_build_profiles(){
|
||||
local cpuarch temp
|
||||
for item in $(ls $1/*.conf); do
|
||||
temp=${item##*/}
|
||||
cpuarch=${cpuarch:-}${cpuarch:+|}${temp%.conf}
|
||||
done
|
||||
echo $cpuarch
|
||||
}
|
||||
|
||||
get_timer(){
|
||||
echo $(date +%s)
|
||||
}
|
||||
@@ -111,14 +37,9 @@ prepare_dir(){
|
||||
[[ ! -d $1 ]] && mkdir -p $1
|
||||
}
|
||||
|
||||
get_release(){
|
||||
source /etc/lsb-release
|
||||
echo "${DISTRIB_RELEASE}"
|
||||
}
|
||||
|
||||
get_distname(){
|
||||
source /etc/lsb-release
|
||||
echo "${DISTRIB_ID%Linux}"
|
||||
source /usr/lib/os-release
|
||||
echo "${NAME%Linux}"
|
||||
}
|
||||
|
||||
get_disturl(){
|
||||
@@ -136,14 +57,12 @@ get_osid(){
|
||||
echo "${ID}"
|
||||
}
|
||||
|
||||
init_common(){
|
||||
init_artools_base(){
|
||||
|
||||
[[ -z ${target_arch} ]] && target_arch=$(uname -m)
|
||||
|
||||
[[ -z ${chroots_dir} ]] && chroots_dir='/var/lib/artools'
|
||||
|
||||
[[ -z ${build_mirror} ]] && build_mirror='https://downloads.sourceforge.net/project/artix-linux/repos'
|
||||
|
||||
log_dir='/var/log/artools'
|
||||
|
||||
tmp_dir='/tmp'
|
||||
@@ -161,11 +80,11 @@ init_common(){
|
||||
prepare_dir "${workspace_dir}"
|
||||
}
|
||||
|
||||
init_buildtree(){
|
||||
init_artools_pkg(){
|
||||
|
||||
[[ -z ${tree_dir_artix} ]] && tree_dir_artix=${workspace_dir}/artix
|
||||
|
||||
[[ -z ${repo_tree_artix[@]} ]] && repo_tree_artix=('system' 'world' 'galaxy')
|
||||
[[ -z ${repo_tree_import[@]} ]] && repo_tree_import=('system' 'world' 'galaxy')
|
||||
|
||||
[[ -z ${host_tree_artix} ]] && host_tree_artix='https://github.com/artix-linux'
|
||||
|
||||
@@ -178,40 +97,30 @@ init_buildtree(){
|
||||
list_dir_import="${SYSCONFDIR}/import.list.d"
|
||||
|
||||
[[ -d ${AT_USERCONFDIR}/import.list.d ]] && list_dir_import=${AT_USERCONFDIR}/import.list.d
|
||||
}
|
||||
|
||||
init_buildpkg(){
|
||||
chroots_pkg="${chroots_dir}/buildpkg"
|
||||
|
||||
list_dir_pkg="${SYSCONFDIR}/pkg.list.d"
|
||||
|
||||
make_conf_dir="${SYSCONFDIR}/make.conf.d"
|
||||
|
||||
[[ -d ${AT_USERCONFDIR}/pkg.list.d ]] && list_dir_pkg=${AT_USERCONFDIR}/pkg.list.d
|
||||
|
||||
[[ -z ${build_list_pkg} ]] && build_list_pkg='default'
|
||||
|
||||
cache_dir_pkg=${workspace_dir}/pkg
|
||||
|
||||
prepare_dir "${cache_dir_pkg}"
|
||||
|
||||
[[ -z ${repos_local} ]] && repos_local="${workspace_dir}/repos"
|
||||
|
||||
repos_remote="/${repos_local##*/}"
|
||||
}
|
||||
|
||||
init_buildiso(){
|
||||
init_artools_iso(){
|
||||
chroots_iso="${chroots_dir}/buildiso"
|
||||
|
||||
list_dir_iso="${SYSCONFDIR}/iso.list.d"
|
||||
|
||||
[[ -d ${AT_USERCONFDIR}/iso.list.d ]] && list_dir_iso=${AT_USERCONFDIR}/iso.list.d
|
||||
|
||||
[[ -z ${build_list_iso} ]] && build_list_iso='default'
|
||||
|
||||
cache_dir_iso="${workspace_dir}/iso"
|
||||
|
||||
prepare_dir "${cache_dir_iso}"
|
||||
|
||||
##### iso settings #####
|
||||
profile='base'
|
||||
|
||||
[[ -z ${dist_release} ]] && dist_release=$(get_release)
|
||||
[[ -z ${dist_release} ]] && dist_release=$(date +%Y%m%d)
|
||||
|
||||
dist_name=$(get_distname)
|
||||
|
||||
@@ -224,9 +133,6 @@ init_buildiso(){
|
||||
[[ -z ${kernel} ]] && kernel="linux-lts"
|
||||
|
||||
[[ -z ${gpgkey} ]] && gpgkey=''
|
||||
}
|
||||
|
||||
init_deployiso(){
|
||||
|
||||
[[ -z ${uplimit} ]] && uplimit=100
|
||||
|
||||
@@ -237,14 +143,6 @@ init_deployiso(){
|
||||
torrent_meta="$(get_osname)"
|
||||
}
|
||||
|
||||
init_deploypkg(){
|
||||
|
||||
repository='system'
|
||||
|
||||
[[ -z ${repos_local} ]] && repos_local="${workspace_dir}/repos"
|
||||
|
||||
repos_remote="/${repos_local##*/}"
|
||||
}
|
||||
|
||||
load_config(){
|
||||
|
||||
@@ -254,17 +152,11 @@ load_config(){
|
||||
|
||||
[[ -r ${artools_conf} ]] && source ${artools_conf}
|
||||
|
||||
init_common
|
||||
init_artools_base
|
||||
|
||||
init_buildtree
|
||||
init_artools_pkg
|
||||
|
||||
init_buildpkg
|
||||
|
||||
init_buildiso
|
||||
|
||||
init_deployiso
|
||||
|
||||
init_deploypkg
|
||||
init_artools_iso
|
||||
|
||||
return 0
|
||||
}
|
||||
@@ -312,30 +204,6 @@ show_config(){
|
||||
fi
|
||||
}
|
||||
|
||||
read_build_list(){
|
||||
local _space="s| ||g" _clean=':a;N;$!ba;s/\n/ /g' _com_rm="s|#.*||g"
|
||||
build_list=$(sed "$_com_rm" "$1.list" | sed "$_space" | sed "$_clean")
|
||||
}
|
||||
|
||||
# $1: list_dir
|
||||
# $2: build list
|
||||
eval_build_list(){
|
||||
eval "case $2 in
|
||||
$(show_build_lists $1)) is_build_list=true; read_build_list $1/$2 ;;
|
||||
*) is_build_list=false ;;
|
||||
esac"
|
||||
}
|
||||
|
||||
run(){
|
||||
if ${is_build_list};then
|
||||
for item in ${build_list[@]};do
|
||||
$1 $item
|
||||
done
|
||||
else
|
||||
$1 $2
|
||||
fi
|
||||
}
|
||||
|
||||
check_root() {
|
||||
(( EUID == 0 )) && return
|
||||
if type -P sudo >/dev/null; then
|
||||
|
Reference in New Issue
Block a user