diff --git a/airootfs/etc/makepkg.conf b/airootfs/etc/makepkg.conf index d08e74f..25b8bb6 100644 --- a/airootfs/etc/makepkg.conf +++ b/airootfs/etc/makepkg.conf @@ -145,8 +145,8 @@ DBGSRCDIR="/usr/src/debug" # COMPRESSGZ=(gzip -c -f -n) COMPRESSBZ2=(bzip2 -c -f) -COMPRESSXZ=(xz -v -c -z --threads=0 -9 -e -) -COMPRESSZST=(zstd -c -z -q -) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) COMPRESSLRZ=(lrzip -q) COMPRESSLZO=(lzop -q) COMPRESSZ=(compress -c -f) diff --git a/airootfs/etc/melawy-linux-release b/airootfs/etc/melawy-linux-release deleted file mode 100644 index b2febea..0000000 --- a/airootfs/etc/melawy-linux-release +++ /dev/null @@ -1,4 +0,0 @@ -LSB_VERSION=2.0 -DISTRIB_ID="MelawyLinux" -DISTRIB_RELEASE="rolling" -DISTRIB_DESCRIPTION="Melawy Linux" diff --git a/airootfs/etc/pacman-cache.conf b/airootfs/etc/pacman-cache.conf new file mode 100644 index 0000000..89c154e --- /dev/null +++ b/airootfs/etc/pacman-cache.conf @@ -0,0 +1,99 @@ +# /etc/pacman.conf +# +# +# See the pacman.conf(5) manpage for option and repository directives +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# +# GENERAL OPTIONS +# +[options] +# RootDir = / +# DBPath = /var/lib/pacman/ +# CacheDir = /var/cache/pacman/pkg/ +# LogFile = /var/log/pacman.log +# GPGDir = /etc/pacman.d/gnupg/ +# HookDir = /etc/pacman.d/hooks/ +HoldPkg = base base-devel pacman glibc +# XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +# XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +# CleanMethod = KeepInstalled +Architecture = auto +#IgnorePkg = +# IgnoreGroup = +# NoUpgrade = +# NoExtract = +# UseSyslog +Color +ILoveCandy +# NoProgressBar +CheckSpace +VerbosePkgLists +ParallelDownloads = 8 +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +# RemoteFileSigLevel = Required + +#[core] +#SigLevel = Never +#Include = /etc/pacman.d/kaos-mirrorlist + +#[main] +#SigLevel = Never +#Include = /etc/pacman.d/kaos-mirrorlist + +#[apps] +#SigLevel = Never +#Include = /etc/pacman.d/kaos-mirrorlist + + +#[kde-unstable] +#Include = /etc/pacman.d/mirrorlist + +[melawy] +Include = /etc/pacman.d/melawy-linux-mirrorlist + +[melawy-3party] +Include = /etc/pacman.d/melawy-linux-mirrorlist + +[cache] +SigLevel = Optional +Server = http://192.168.1.250/$repo/$arch + +# [core-testing] +# Include = /etc/pacman.d/mirrorlist + +[core] +Include = /etc/pacman.d/mirrorlist + +# [extra-testing] +# Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist + +# [multilib-testing] +# Include = /etc/pacman.d/mirrorlist + +[multilib] +Include = /etc/pacman.d/mirrorlist + +[arcolinux_repo] +Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo_xlarge] +Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo_3party] +Include = /etc/pacman.d/arcolinux-mirrorlist + +[garuda] +Include = /etc/pacman.d/chaotic-mirrorlist + +[chaotic-aur] +Include = /etc/pacman.d/chaotic-mirrorlist + +# [custom] +# SigLevel = Optional TrustAll +# Server = file:///home/custompkgs diff --git a/airootfs/etc/pacman-std.conf b/airootfs/etc/pacman-std.conf new file mode 100644 index 0000000..1d66ab7 --- /dev/null +++ b/airootfs/etc/pacman-std.conf @@ -0,0 +1,99 @@ +# /etc/pacman.conf +# +# +# See the pacman.conf(5) manpage for option and repository directives +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# +# GENERAL OPTIONS +# +[options] +# RootDir = / +# DBPath = /var/lib/pacman/ +# CacheDir = /var/cache/pacman/pkg/ +# LogFile = /var/log/pacman.log +# GPGDir = /etc/pacman.d/gnupg/ +# HookDir = /etc/pacman.d/hooks/ +HoldPkg = base base-devel pacman glibc +# XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +# XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +# CleanMethod = KeepInstalled +Architecture = auto +#IgnorePkg = +# IgnoreGroup = +# NoUpgrade = +# NoExtract = +# UseSyslog +Color +ILoveCandy +# NoProgressBar +CheckSpace +VerbosePkgLists +ParallelDownloads = 8 +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +# RemoteFileSigLevel = Required + +#[core] +#SigLevel = Never +#Include = /etc/pacman.d/kaos-mirrorlist + +#[main] +#SigLevel = Never +#Include = /etc/pacman.d/kaos-mirrorlist + +#[apps] +#SigLevel = Never +#Include = /etc/pacman.d/kaos-mirrorlist + + +#[kde-unstable] +#Include = /etc/pacman.d/mirrorlist + +[melawy] +Include = /etc/pacman.d/melawy-linux-mirrorlist + +[melawy-3party] +Include = /etc/pacman.d/melawy-linux-mirrorlist + +# [cache] +# SigLevel = Optional +# Server = http://192.168.1.250/$repo/$arch + +# [core-testing] +# Include = /etc/pacman.d/mirrorlist + +[core] +Include = /etc/pacman.d/mirrorlist + +# [extra-testing] +# Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist + +# [multilib-testing] +# Include = /etc/pacman.d/mirrorlist + +[multilib] +Include = /etc/pacman.d/mirrorlist + +[arcolinux_repo] +Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo_xlarge] +Include = /etc/pacman.d/arcolinux-mirrorlist + +[arcolinux_repo_3party] +Include = /etc/pacman.d/arcolinux-mirrorlist + +[garuda] +Include = /etc/pacman.d/chaotic-mirrorlist + +[chaotic-aur] +Include = /etc/pacman.d/chaotic-mirrorlist + +# [custom] +# SigLevel = Optional TrustAll +# Server = file:///home/custompkgs diff --git a/airootfs/etc/pacman.conf b/airootfs/etc/pacman.conf index 89c154e..1d66ab7 100644 --- a/airootfs/etc/pacman.conf +++ b/airootfs/etc/pacman.conf @@ -57,9 +57,9 @@ Include = /etc/pacman.d/melawy-linux-mirrorlist [melawy-3party] Include = /etc/pacman.d/melawy-linux-mirrorlist -[cache] -SigLevel = Optional -Server = http://192.168.1.250/$repo/$arch +# [cache] +# SigLevel = Optional +# Server = http://192.168.1.250/$repo/$arch # [core-testing] # Include = /etc/pacman.d/mirrorlist diff --git a/airootfs/etc/ssh/sshd_config b/airootfs/etc/ssh/sshd_config deleted file mode 100644 index dc22c11..0000000 --- a/airootfs/etc/ssh/sshd_config +++ /dev/null @@ -1,116 +0,0 @@ -# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $ - -# This is the sshd server system-wide configuration file. See -# sshd_config(5) for more information. - -# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin - -# The strategy used for options in the default sshd_config shipped with -# OpenSSH is to specify options with their default value where -# possible, but leave them commented. Uncommented options override the -# default value. - -#Port 22 -#AddressFamily any -#ListenAddress 0.0.0.0 -#ListenAddress :: - -#HostKey /etc/ssh/ssh_host_rsa_key -#HostKey /etc/ssh/ssh_host_ecdsa_key -#HostKey /etc/ssh/ssh_host_ed25519_key - -# Ciphers and keying -#RekeyLimit default none - -# Logging -#SyslogFacility AUTH -#LogLevel INFO - -# Authentication: - -#LoginGraceTime 2m -PermitRootLogin yes -#StrictModes yes -#MaxAuthTries 6 -#MaxSessions 10 - -#PubkeyAuthentication yes - -# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 -# but this is overridden so installations will only check .ssh/authorized_keys -AuthorizedKeysFile .ssh/authorized_keys - -#AuthorizedPrincipalsFile none - -#AuthorizedKeysCommand none -#AuthorizedKeysCommandUser nobody - -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts -#HostbasedAuthentication no -# Change to yes if you don't trust ~/.ssh/known_hosts for -# HostbasedAuthentication -#IgnoreUserKnownHosts no -# Don't read the user's ~/.rhosts and ~/.shosts files -#IgnoreRhosts yes - -# To disable tunneled clear text passwords, change to no here! -#PasswordAuthentication yes -#PermitEmptyPasswords no - -# Change to no to disable s/key passwords -KbdInteractiveAuthentication no - -# Kerberos options -#KerberosAuthentication no -#KerberosOrLocalPasswd yes -#KerberosTicketCleanup yes -#KerberosGetAFSToken no - -# GSSAPI options -#GSSAPIAuthentication no -#GSSAPICleanupCredentials yes - -# Set this to 'yes' to enable PAM authentication, account processing, -# and session processing. If this is enabled, PAM authentication will -# be allowed through the KbdInteractiveAuthentication and -# PasswordAuthentication. Depending on your PAM configuration, -# PAM authentication via KbdInteractiveAuthentication may bypass -# the setting of "PermitRootLogin prohibit-password". -# If you just want the PAM account and session checks to run without -# PAM authentication, then enable this but set PasswordAuthentication -# and KbdInteractiveAuthentication to 'no'. -UsePAM yes - -#AllowAgentForwarding yes -#AllowTcpForwarding yes -#GatewayPorts no -#X11Forwarding no -#X11DisplayOffset 10 -#X11UseLocalhost yes -#PermitTTY yes -PrintMotd no -#PrintLastLog yes -#TCPKeepAlive yes -#PermitUserEnvironment no -#Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 -#UseDNS no -#PidFile /run/sshd.pid -#MaxStartups 10:30:100 -#PermitTunnel no -#ChrootDirectory none -#VersionAddendum none - -# no default banner path -#Banner none - -# override default of no subsystems -Subsystem sftp /usr/lib/ssh/sftp-server - -# Example of overriding settings on a per-user basis -#Match User anoncvs -# X11Forwarding no -# AllowTcpForwarding no -# PermitTTY no -# ForceCommand cvs server diff --git a/airootfs/etc/ssh/sshd_config.d/10-archiso.conf b/airootfs/etc/ssh/sshd_config.d/10-archiso.conf new file mode 100644 index 0000000..6ea7b41 --- /dev/null +++ b/airootfs/etc/ssh/sshd_config.d/10-archiso.conf @@ -0,0 +1,3 @@ +# Allow root login using password authentication +PasswordAuthentication yes +PermitRootLogin yes diff --git a/airootfs/root/archives/liveuser.tar.xz b/airootfs/root/archives/liveuser.tar.xz index a0193ff..4105758 100644 Binary files a/airootfs/root/archives/liveuser.tar.xz and b/airootfs/root/archives/liveuser.tar.xz differ diff --git a/airootfs/root/archives/skel.tar.xz b/airootfs/root/archives/skel.tar.xz index 3c49a42..d58f4ea 100644 Binary files a/airootfs/root/archives/skel.tar.xz and b/airootfs/root/archives/skel.tar.xz differ diff --git a/airootfs/root/customize_airootfs.sh b/airootfs/root/customize_airootfs.sh index 2e623ee..e1b05d5 100755 --- a/airootfs/root/customize_airootfs.sh +++ b/airootfs/root/customize_airootfs.sh @@ -23,8 +23,6 @@ chown -R 1000:1000 /home/liveuser tar -xJvf /root/archives/skel.tar.xz -C /root --strip=1 --overwrite chown -R 0:0 /root -cp -fT /etc/melawy-linux-release /etc/lsb-release - sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf diff --git a/airootfs/usr/local/bin/calamares-offline b/airootfs/usr/local/bin/calamares-offline index f38b221..d475a8e 100755 --- a/airootfs/usr/local/bin/calamares-offline +++ b/airootfs/usr/local/bin/calamares-offline @@ -1,6 +1,14 @@ #!/bin/bash Main() { + resp=$(curl -s -o /dev/null -I -w "%{http_code}" http://192.168.1.250/cache/x86_64/) + + if [ $resp -eq 200 ]; then + sudo cp /etc/pacman-cache.conf /etc/pacman.conf + else + sudo cp /etc/pacman-std.conf /etc/pacman.conf + fi + local mode=offline local progname="" progname="$(basename "$0")" diff --git a/airootfs/usr/local/bin/calamares-online b/airootfs/usr/local/bin/calamares-online index f5dd478..1fd85c2 100755 --- a/airootfs/usr/local/bin/calamares-online +++ b/airootfs/usr/local/bin/calamares-online @@ -26,6 +26,14 @@ catch_chrooted_pacman_log() { } Main() { + resp=$(curl -s -o /dev/null -I -w "%{http_code}" http://192.168.1.250/cache/x86_64/) + + if [ $resp -eq 200 ]; then + sudo cp /etc/pacman-cache.conf /etc/pacman.conf + else + sudo cp /etc/pacman-std.conf /etc/pacman.conf + fi + local progname progname="$(basename "$0")" local log=/home/liveuser/melawy-install.log diff --git a/netinstall.yaml b/netinstall.yaml index d2ca26f..aee7f6b 100644 --- a/netinstall.yaml +++ b/netinstall.yaml @@ -5,9 +5,6 @@ selected: true critical: true packages: - - pacman - - pacman-mirrorlist - - pacman-contrib - archlinux-keyring - arcolinux-keyring - arcolinux-mirrorlist-git @@ -20,6 +17,7 @@ - chwd-db - dracut - gptfdisk + - iptables-nft - linux-firmware - linux-firmware-marvell - linux-xanmod-anbox @@ -32,6 +30,9 @@ - melawy-linux-mirrorlist - melawy-refind-menu-generator - melawy-welcome + - pacman + - pacman-contrib + - pacman-mirrorlist - plymouth - plymouth-kcm - refind @@ -42,7 +43,6 @@ - xf86-input-void - xf86-video-fbdev - xf86-video-openchrome - - iptables-nft - name: "Virtual machines" description: "Required if OS run in virtual environment" @@ -52,6 +52,7 @@ critical: true packages: - bridge-utils + - edk2-shell - hyperv - libvirt - open-vm-tools @@ -64,7 +65,6 @@ - xf86-input-vmmouse - xf86-video-qxl - xf86-video-vmware - - edk2-shell - name: "Booting process: Refind integration" description: "Boot loader screen" @@ -256,12 +256,12 @@ - nvidia-340xx-settings - nvidia-340xx-utils - - name: "ZFS drivers" - description: "ZFS filesystem drivers" - selected: true - packages: - - zfs-dkms-git - - zfs-utils-git + # - name: "ZFS drivers" + # description: "ZFS filesystem drivers" + # selected: true + # packages: + # - zfs-dkms-git + # - zfs-utils-git - name: "V4L2 drivers" description: "V4L2 video, webcamera drivers" @@ -327,6 +327,7 @@ - rsync - s-nail - screen + - screenfetch - sed - sudo - sysfsutils @@ -410,7 +411,11 @@ - ocs-url - octopi - pace - - pamac-all + - pamac-cli + - pamac-gtk + - libpamac + - libpamac-flatpak-plugin + - libpamac-snap-plugin - paru - pkgfile - rebuild-detector @@ -434,6 +439,7 @@ - ffmpegthumbnailer - ffmpegthumbs - file-roller + - glfw-wayland - gnome-keyring - gparted - gst-libav @@ -500,7 +506,6 @@ - xdg-user-dirs-gtk - xdg-utils - xsettingsd - - glfw-wayland - name: "Filesystem" description: "Filesystem tools and applications" @@ -755,14 +760,13 @@ - boost - boost-libs - ccache - - cmake - - extra-cmake-modules - - doxygen - - codelldb - clang - - lld + - cmake + - codelldb - dbeaver + - doxygen - eslint-language-server + - extra-cmake-modules - fakeroot - gcc - gcc-libs @@ -773,6 +777,7 @@ - github-desktop - icu69-bin - jdk-openjdk + - lld - lldb - llvm - llvm-libs diff --git a/packages.x86_64 b/packages.x86_64 index f5dda04..3a996bf 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -149,10 +149,6 @@ nvidia-dkms nvidia-settings nvidia-utils -## ZFS drivers -zfs-dkms-git -zfs-utils-git - ## V4L2 drivers v4l2loopback-dkms @@ -211,6 +207,7 @@ ripgrep rsync s-nail screen +screenfetch sed sudo sysfsutils @@ -282,10 +279,14 @@ discover downgrade flatpak flatpak-kcm +libpamac +libpamac-flatpak-plugin +libpamac-snap-plugin ocs-url octopi pace -pamac-all +pamac-cli +pamac-gtk paru pkgfile rebuild-detector diff --git a/profiledef.sh b/profiledef.sh index 9f629c8..5a6db69 100644 --- a/profiledef.sh +++ b/profiledef.sh @@ -14,7 +14,7 @@ out_dir="../boot/iso" bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 'uefi-x64.systemd-boot.esp' 'uefi-x64.systemd-boot.eltorito') arch="x86_64" -pacman_conf="airootfs/etc/pacman.conf" +pacman_conf="/etc/pacman.conf" airootfs_image_type="squashfs" airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M') file_permissions=(