Compare commits

..

9 commits

Author SHA1 Message Date
Philip Mueller
b1c8ccd1df [util-iso] update fat tarball download 2023-12-20 12:37:56 +07:00
Philip Mueller
eb56fd68b3 [util-yaml] don't call locale module 2023-12-13 17:40:13 +07:00
Philip Mueller
9e623eec51 [util-yaml] move config to right module 2023-12-13 16:07:54 +07:00
Philip Mueller
14a0b8e906 [util-yaml] try to fix locale on gaming edition 2023-12-13 16:00:22 +07:00
Philip Mueller
31e0129837 [util] update default mirror 2023-08-29 08:15:01 +02:00
Philip Mueller
933beac1ba Revert "[util-yaml] exec postcfg"
This reverts commit 0f4f15e716.
2023-08-16 23:01:06 +02:00
Philip Mueller
0f4f15e716 [util-yaml] exec postcfg 2023-08-16 22:42:14 +02:00
Philip Mueller
5a783ded77 [util-yaml] disable displaymanager config 2023-08-16 21:45:03 +02:00
Philip Mueller
d87c86eee6 [util-iso] tmp workaround to fix Steam fat-tarball download 2023-08-16 07:45:07 +02:00
9 changed files with 38 additions and 16 deletions

View file

@ -13,8 +13,7 @@ BIN_BASE = \
bin/manjaro-chroot \
bin/fstabgen \
bin/signfile \
bin/chroot-run \
bin/check-yaml
bin/chroot-run
LIBS_BASE = \
lib/util.sh \

View file

@ -131,7 +131,6 @@ usage() {
echo " [default: ${kernel}]"
echo ' -l Create permalink'
echo ' -m Set SquashFS image mode to persistence'
echo ' -n Disable multilib'
echo " -p <profile> Buildset or profile [default: ${build_list_iso}]"
echo ' -o Enable office installer module'
echo ' -q Query settings and pretend build'
@ -151,7 +150,7 @@ usage() {
orig_argv=("$@")
opts='p:a:b:r:t:k:g:d:cfzxmnvqhilo'
opts='p:a:b:r:t:k:g:d:cfzxmvqhilo'
while getopts "${opts}" arg; do
case "${arg}" in
@ -164,7 +163,6 @@ while getopts "${opts}" arg; do
g) gpgkey="$OPTARG" ;;
k) kernel="$OPTARG" ;;
m) persist=true ;;
n) no_multilib=true ;; # only exist if set here
p) build_list_iso="$OPTARG" ;;
q) pretend=true ;;
r) chroots_iso="$OPTARG" ;;

View file

@ -1,3 +1,3 @@
MODULES=(loop dm-snapshot)
HOOKS=(base udev miso_shutdown miso miso_loop_mnt miso_pxe_common miso_pxe_http miso_pxe_nbd miso_pxe_nfs miso_kms modconf block filesystems keyboard keymap)
MODULES="loop dm-snapshot"
HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_pxe_common miso_pxe_http miso_pxe_nbd miso_pxe_nfs miso_kms modconf block filesystems keyboard keymap"
COMPRESSION="xz"

View file

@ -38,7 +38,7 @@ Architecture = auto
# We cannot check disk space from within a chroot environment
#CheckSpace
#VerbosePkgLists
ParallelDownloads = 4
#ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
@ -86,3 +86,4 @@ Include = /etc/pacman.d/mirrorlist
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

View file

@ -38,7 +38,7 @@ Architecture = auto
# We cannot check disk space from within a chroot environment
#CheckSpace
#VerbosePkgLists
ParallelDownloads = 4
#ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.

View file

@ -18,7 +18,7 @@ prepare_initcpio(){
prepare_initramfs(){
cp ${DATADIR}/mkinitcpio.conf $1/etc/mkinitcpio-${iso_name}.conf
local _kernver=$(cat $1/usr/lib/modules/*/kernelbase | awk -F'-' '{print $1}')
local _kernver=$(cat $1/usr/lib/modules/*/version)
if [[ -n ${gpgkey} ]]; then
su ${OWNER} -c "gpg --export ${gpgkey} >${USERCONFDIR}/gpgkey"
exec 17<>${USERCONFDIR}/gpgkey

View file

@ -353,6 +353,32 @@ make_image_desktop() {
mount_fs_root "${path}"
chroot_create "${path}" "${packages}"
#TODO: tmp workaround to fix Steam fat-tarball download
# Grab the steam bootstrap for first boot
PKG_URL="https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/steam-jupiter-stable-1.0.0.78-1.2-x86_64.pkg.tar.zst"
TMP_PKG="/tmp/package.pkg.tar.zst"
OUTPUT_FILE="/tmp/bootstraplinux_ubuntu12_32.tar.xz"
TARGET_FILE="${path}/usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz"
curl -o "$TMP_PKG" "$PKG_URL"
ZST_CHECKSUM=e94242167c5af25a87b6ffd92963fa8c15263b9a2838bcc0c3a36f918e5ba21c64984be20f718096ff1fed4ec52d49846239695b573db21e1c4ffce9cd493bc1
TMP_PKG_CHECKSUM=$(sha512sum ${TMP_PKG} | cut -d " " -f1)
if [[ "$ZST_CHECKSUM" == "$TMP_PKG_CHECKSUM" ]]; then
tar -I zstd -xvf "$TMP_PKG" usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz -O > "$OUTPUT_FILE"
else
msg "Download of ${PKG_URL} failed!"
exit 1
fi
XZ_CHECKSUM=17b7011fe7ae13834aa1f722724abfc3829ef8632bbabec2ae6b53ef0a9b6f1fc4db61b32056c62401e5aeb001e0f00d9e20f8ea045347b91cbe84ad4d0a919b
BS_CHECKSUM=$(sha512sum ${OUTPUT_FILE} | cut -d " " -f1)
if [[ "$XZ_CHECKSUM" == "$BS_CHECKSUM" ]]; then
mv "$OUTPUT_FILE" "$TARGET_FILE"
else
msg "Extraction of ${TARGET_FILE} failed!"
exit 1
fi
[[ -e "$TMP_PKG" ]] && rm "$TMP_PKG"
[[ -e "$OUTPUT_FILE" ]] && rm "$OUTPUT_FILE"
pacman -Qr "${path}" > "${path}/desktopfs-pkgs.txt"
cp "${path}/desktopfs-pkgs.txt" ${iso_dir}/$(gen_iso_fn)-pkgs.txt

View file

@ -392,12 +392,12 @@ write_settings_conf(){
echo " - machineid" >> "$conf" && write_machineid_conf
echo " - fstab" >> "$conf"
if ${oem_used}; then
msg2 "Skipping to set locale, keyboard and localecfg modules."
msg2 "Skipping to set locale and keyboard modules."
else
echo " - locale" >> "$conf"
echo " - keyboard" >> "$conf"
echo " - localecfg" >> "$conf"
fi
echo " - localecfg" >> "$conf"
echo " - luksopenswaphookcfg" >> "$conf"
echo " - luksbootkeyfile" >> "$conf"
echo " - initcpiocfg" >> "$conf"
@ -411,7 +411,7 @@ write_settings_conf(){
else
echo " - users" >> "$conf"
fi
echo " - displaymanager" >> "$conf" && write_displaymanager_conf
#echo " - displaymanager" >> "$conf" && write_displaymanager_conf
if ${mhwd_used}; then
echo " - mhwdcfg" >> "$conf" && write_mhwdcfg_conf
else

View file

@ -409,7 +409,6 @@ load_profile_config(){
[[ -z ${snap_channel} ]] && snap_channel="stable"
[[ -z ${multilib} ]] && multilib="true"
[[ ${no_multilib} == 'true' ]] && multilib="false"
[[ -z ${nonfree_mhwd} ]] && nonfree_mhwd="true"
@ -517,7 +516,6 @@ reset_profile(){
unset extra
unset full_iso
unset office_installer
unset no_multilib
}
check_profile(){
@ -836,7 +834,7 @@ create_chksums() {
init_profiles() {
_workdir='/usr/share/manjaro-tools'
if [[ -d ${_workdir}/iso-profiles ]]; then
rm -Rf ${_workdir}/iso-profiles
rm -Rf ${_workdir}/iso-profiles ]]
fi
git clone -q --depth 1 -b ${branch} https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git ${_workdir}/iso-profiles/