Merge pull request #169 from fewtarius/3.0

Misc fixes and updates
This commit is contained in:
Adam Jafarov 2022-05-23 14:45:28 +03:00 committed by GitHub
commit 5a1f2f7b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 19 deletions

View File

@ -70,8 +70,15 @@ base_os_install() {
parted ${DEVICE} mkpart primary fat32 2M 256M parted ${DEVICE} mkpart primary fat32 2M 256M
parted ${DEVICE} set 1 boot on parted ${DEVICE} set 1 boot on
parted ${DEVICE} set 1 esp on parted ${DEVICE} set 1 esp on
# If the available storage is less than 64GB, don't create /home.
# If the boot device is mmcblk0, don't create an ext4 partition or it will break steamOS versions
# released after May 20.
if [ "$(awk '/'${DEVICE}'/ {print $3; exit}' /proc/partitions)" -lt 64000000 ] || [[ "${DEVICE}" =~ mmcblk0 ]]; then
parted ${DEVICE} mkpart primary btrfs 256M 100%
else
parted ${DEVICE} mkpart primary btrfs 256M 24G parted ${DEVICE} mkpart primary btrfs 256M 24G
parted ${DEVICE} mkpart primary ext4 24G 100% parted ${DEVICE} mkpart primary ext4 24G 100%
fi
root_partition="${INSTALLDEVICE}2" root_partition="${INSTALLDEVICE}2"
mkfs -t vfat ${INSTALLDEVICE}1 mkfs -t vfat ${INSTALLDEVICE}1
fatlabel ${INSTALLDEVICE}1 HOLOEFI fatlabel ${INSTALLDEVICE}1 HOLOEFI
@ -159,8 +166,10 @@ full_install() {
sleep 1 sleep 1
# The actual installation begins here: # The actual installation begins here:
arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_UPDATE} arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_UPDATE}
arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} holoiso-main holoiso-updateclient wireplumber vulkan-radeon lib32-vulkan-radeon extra/vulkan-intel multilib/lib32-vulkan-intel arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} holoiso-main holoiso-updateclient wireplumber
sleep 1 sleep 1
while true
do
echo "Please choose your current GPU:" echo "Please choose your current GPU:"
echo "1) AMD only: Will install updated Gamescope with Mangohud and FSR support" echo "1) AMD only: Will install updated Gamescope with Mangohud and FSR support"
echo "2) Intel: Will install older Gamescope that's compatible with Intel GPUs but without Mangohud and FSR support" echo "2) Intel: Will install older Gamescope that's compatible with Intel GPUs but without Mangohud and FSR support"
@ -168,14 +177,17 @@ full_install() {
if [[ "${HOLO_GPU_TYPE}" == "1" ]]; then if [[ "${HOLO_GPU_TYPE}" == "1" ]]; then
echo "Installing gamescope for AMD GPUs..." echo "Installing gamescope for AMD GPUs..."
GAMESCOPE_INSTALL=(/usr/bin/pacman --noconfirm -S --needed --overwrite="*" gamescope) arch-chroot ${HOLO_INSTALL_DIR} sed -i "s#IgnorePkg = gamescope #IgnorePkg = #g" /etc/pacman.conf
GAMESCOPE_INSTALL=(/usr/bin/pacman --noconfirm -S --needed --overwrite="*" vulkan-radeon lib32-vulkan-radeon gamescope)
break
elif [[ "${HOLO_GPU_TYPE}" == "2" ]]; then elif [[ "${HOLO_GPU_TYPE}" == "2" ]]; then
echo "Installing gamescope for Intel GPUs..." echo "Installing gamescope for Intel GPUs..."
GAMESCOPE_INSTALL=(/usr/bin/pacman --noconfirm -S --needed --overwrite="*" extra/mesa multilib/lib32-mesa holo/gamescope) GAMESCOPE_INSTALL=(/usr/bin/pacman --noconfirm -S --needed --overwrite="*" extra/vulkan-intel multilib-lib32-vulkan-intel extra/mesa multilib/lib32-mesa holo/gamescope)
break
else else
echo "Nothing choosed or Invalid choice. Installing gamescope for Intel GPUs..." echo -e "You have made an invalid selection, please try again...\n"
GAMESCOPE_INSTALL=(/usr/bin/pacman --noconfirm -S --needed --overwrite="*" extra/mesa multilib/lib32-mesa holo/gamescope)
fi fi
done
echo "\nConfiguring Steam Deck UI by default..." echo "\nConfiguring Steam Deck UI by default..."
arch-chroot ${HOLO_INSTALL_DIR} ${GAMESCOPE_INSTALL} arch-chroot ${HOLO_INSTALL_DIR} ${GAMESCOPE_INSTALL}
mkdir ${HOLO_INSTALL_DIR}/etc/sddm.conf.d mkdir ${HOLO_INSTALL_DIR}/etc/sddm.conf.d
@ -187,8 +199,9 @@ full_install() {
arch-chroot ${HOLO_INSTALL_DIR} chown -R ${HOLOUSER}:${HOLOUSER} /home/${HOLOUSER}/Desktop arch-chroot ${HOLO_INSTALL_DIR} chown -R ${HOLOUSER}:${HOLOUSER} /home/${HOLOUSER}/Desktop
arch-chroot ${HOLO_INSTALL_DIR} systemctl enable cups bluetooth sddm holoiso-reboot-tracker arch-chroot ${HOLO_INSTALL_DIR} systemctl enable cups bluetooth sddm holoiso-reboot-tracker
arch-chroot ${HOLO_INSTALL_DIR} usermod -a -G rfkill ${HOLOUSER} arch-chroot ${HOLO_INSTALL_DIR} usermod -a -G rfkill ${HOLOUSER}
arch-chroot ${HOLO_INSTALL_DIR} usermod -a -G wheel ${HOLOUSER}
arch-chroot ${HOLO_INSTALL_DIR} sudo -u ${HOLOUSER} steam arch-chroot ${HOLO_INSTALL_DIR} sudo -u ${HOLOUSER} steam
arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} flatpak arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} flatpak packagekit-qt5 rsync unzip vim
arch-chroot ${HOLO_INSTALL_DIR} flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo arch-chroot ${HOLO_INSTALL_DIR} flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
} }

View File

@ -3,7 +3,7 @@
iso_name="SteamOS_Holo" iso_name="SteamOS_Holo"
iso_label="HOLO_$(date +%Y%m)" iso_label="HOLO_$(date +%Y%m)"
iso_publisher="theVakhovske <https://github.com/bhaiest>" iso_publisher="$(git config --get user.name) <$(git config --get remote.origin.url | sed "s#^.*:#https://www.github.com/#g")>"
iso_application="SteamOS Live/Rescue CD" iso_application="SteamOS Live/Rescue CD"
iso_version="$(date +%Y%m%d_%H%M)_amdgpu" iso_version="$(date +%Y%m%d_%H%M)_amdgpu"
install_dir="arch" install_dir="arch"