1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-12 13:21:33 -05:00

Compare commits

..

No commits in common. "4b7a2682bd0ab78db6aec24809ae5d0976bbed5d" and "e7dba4febfade863f4b06943923bfe734f9b18cb" have entirely different histories.

View File

@ -22,8 +22,6 @@ unpriv(){
sudo -u nobody "$@"
}
installation_date=$(date "+%Y-%m-%d %H:%M:%S")
# Check if this is a VM
virtualization=$(systemd-detect-virt)
@ -268,14 +266,15 @@ fi
## Set the default BTRFS Subvol to Snapshot 1 before pacstrapping
btrfs subvolume set-default "$(btrfs subvolume list /mnt | grep "@/.snapshots/1/snapshot" | grep -oP '(?<=ID )[0-9]+')" /mnt
echo "<?xml version=\"1.0\"?>
## Temporarily hardcode the date here, will make it work with proper date later.
echo '<?xml version="1.0"?>
<snapshot>
<type>single</type>
<num>1</num>
<date>${installation_date}</date>
<date>1999-03-31 0:00:00</date>
<description>First Root Filesystem</description>
<cleanup>number</cleanup>
</snapshot>" > /mnt/@/.snapshots/1/info.xml
</snapshot>' > /mnt/@/.snapshots/1/info.xml
chmod 600 /mnt/@/.snapshots/1/info.xml
@ -596,6 +595,7 @@ fi
## Set umask to 077.
sed -i 's/^UMASK.*/UMASK 077/g' /mnt/etc/login.defs
sed -i 's/^HOME_MODE/#HOME_MODE/g' /mnt/etc/login.defs
sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /mnt/etc/login.defs
sed -i 's/umask 022/umask 077/g' /mnt/etc/bash.bashrc
# Finish up