mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
🔥 update
This commit is contained in:
48 files changed
+1364
-1075
No files matched your search
+34
-23
@@ -2,13 +2,14 @@
|
||||
|
||||
# Made by Fernando "maroto"
|
||||
# Run anything in the filesystem right before being "mksquashed"
|
||||
# ISO-NEXT specific cleanup removals and additions (08-2021) @killajoe and @manuel
|
||||
|
||||
script_path=$(readlink -f ${0%/*})
|
||||
work_dir=work
|
||||
|
||||
# Adapted from AIS. An excellent bit of code!
|
||||
arch_chroot(){
|
||||
arch-chroot $script_path/${work_dir}/airootfs /bin/bash -c "${1}"
|
||||
arch-chroot $script_path/${work_dir}/x86_64/airootfs /bin/bash -c "${1}"
|
||||
}
|
||||
|
||||
do_merge(){
|
||||
@@ -20,20 +21,27 @@ locale-gen
|
||||
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||||
usermod -s /usr/bin/bash root
|
||||
cp -aT /etc/skel/ /root/
|
||||
rm /root/xed.dconf
|
||||
chmod 700 /root
|
||||
useradd -m -p \"\" -g users -G 'sys,rfkill,wheel' -s /bin/bash liveuser
|
||||
git clone https://github.com/endeavouros-team/liveuser-desktop-settings.git
|
||||
git clone -b 08-2021 --single-branch https://github.com/endeavouros-team/liveuser-desktop-settings.git
|
||||
#git clone https://github.com/endeavouros-team/liveuser-desktop-settings.git
|
||||
cd liveuser-desktop-settings
|
||||
rm -R /home/liveuser/.config
|
||||
cp -R .config /home/liveuser/
|
||||
chown -R liveuser:users /home/liveuser/.config
|
||||
chown -R liveuser:liveuser /home/liveuser/.config
|
||||
cp .xinitrc .xprofile .Xauthority /home/liveuser/
|
||||
chown liveuser:liveuser /home/liveuser/.xinitrc
|
||||
chown liveuser:liveuser /home/liveuser/.xprofile
|
||||
chown liveuser:liveuser /home/liveuser/.Xauthority
|
||||
cp -R .local /home/liveuser/
|
||||
chown -R liveuser:liveuser /home/liveuser/.local
|
||||
chmod +x /home/liveuser/.local/bin/*
|
||||
cp user_pkglist.txt /home/liveuser/
|
||||
chown liveuser:users /home/liveuser/user_pkglist.txt
|
||||
chown liveuser:liveuser /home/liveuser/user_pkglist.txt
|
||||
rm /home/liveuser/.bashrc
|
||||
cp .bashrc /home/liveuser/
|
||||
chown liveuser:users /home/liveuser/.bashrc
|
||||
cp -R community_editions /home/liveuser/
|
||||
chown -R liveuser:users /home/liveuser/community_editions
|
||||
chown liveuser:liveuser /home/liveuser/.bashrc
|
||||
cp LICENSE /home/liveuser/
|
||||
cd ..
|
||||
rm -R liveuser-desktop-settings
|
||||
@@ -47,7 +55,7 @@ chown root:root /etc/sudoers.d
|
||||
chown root:root /etc/sudoers.d/g_wheel
|
||||
chmod 755 /etc
|
||||
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/#Server/Server/g' /etc/pacman.d/mirrorlist
|
||||
# sed -i 's/#Server/Server/g' /etc/pacman.d/mirrorlist
|
||||
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
|
||||
sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
||||
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
|
||||
@@ -58,26 +66,29 @@ systemctl set-default multi-user.target
|
||||
cp -rf /usr/share/mkinitcpio/hook.preset /etc/mkinitcpio.d/linux.preset
|
||||
sed -i 's?%PKGBASE%?linux?' /etc/mkinitcpio.d/linux.preset
|
||||
|
||||
pacman-key --init
|
||||
pacman-key --add /usr/share/pacman/keyrings/cachyos.gpg && sudo pacman-key --lsign-key F3B607488DB35A47
|
||||
pacman-key --populate
|
||||
pacman-key --refresh-keys
|
||||
pacman -Syy
|
||||
# fetch fallback mirrorlist for offline installs:
|
||||
wget https://gitlab.com/cachyos/cachyos-archiso/-/raw/master/mirrorlist
|
||||
cp mirrorlist /etc/pacman.d/
|
||||
rm mirrorlist
|
||||
|
||||
# now done with recreating pacman keyring inside calamares:
|
||||
# shellprocess_initialize_pacman
|
||||
#pacman-key --init
|
||||
#pacman-key --add /usr/share/pacman/keyrings/cachyos.gpg && sudo pacman-key --lsign-key F3B607488DB35A47
|
||||
#pacman-key --populate
|
||||
#pacman-key --refresh-keys
|
||||
#pacman -Syy
|
||||
|
||||
# now done with recreating pacman keyring inside calamares:
|
||||
# shellprocess_initialize_pacman
|
||||
#rm -R /etc/pacman.d/gnupg
|
||||
|
||||
sed -i 's|^GRUB_CMDLINE_LINUX_DEFAULT=\"\(.*\)\"$|GRUB_CMDLINE_LINUX_DEFAULT=\"\1 nowatchdog\"|' /etc/default/grub
|
||||
sed -i 's?GRUB_DISTRIBUTOR=.*?GRUB_DISTRIBUTOR=\"CachyOS\"?' /etc/default/grub
|
||||
sed -i 's?\#GRUB_THEME=.*?GRUB_THEME=\/boot\/grub\/themes\/CachyOS\/theme.txt?g' /etc/default/grub
|
||||
echo 'GRUB_DISABLE_SUBMENU=y' >> /etc/default/grub
|
||||
rm /boot/grub/grub.cfg
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/cleaner_script.sh
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/chrooted_cleaner_script.sh
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/calamares_switcher
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/pacstrap_calamares
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/update-mirrorlist
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/calamares_for_testers
|
||||
wget https://gitlab.com/cachyos/install-scripts/-/raw/master/prepare-calamares
|
||||
chmod +x cleaner_script.sh chrooted_cleaner_script.sh calamares_switcher pacstrap_calamares update-mirrorlist calamares_for_testers prepare-calamares
|
||||
mv cleaner_script.sh chrooted_cleaner_script.sh calamares_switcher update-mirrorlist pacstrap_calamares calamares_for_testers prepare-calamares /usr/bin/
|
||||
wget https://raw.githubusercontent.com/endeavouros-team/liveuser-desktop-settings/master/dconf/xed.dconf
|
||||
wget https://raw.githubusercontent.com/endeavouros-team/liveuser-desktop-settings/08-2021/dconf/xed.dconf
|
||||
dbus-launch dconf load / < xed.dconf
|
||||
sudo -H -u liveuser bash -c 'dbus-launch dconf load / < xed.dconf'
|
||||
rm xed.dconf
|
||||
|
||||
Reference in new issue
Block a user