mirror of
https://github.com/janishutz/arch-dev-vm.git
synced 2025-11-25 05:44:23 +00:00
add some more fixes
This commit is contained in:
44
chroot.sh
44
chroot.sh
@@ -9,7 +9,7 @@ hwclock --systohc
|
|||||||
locale-gen
|
locale-gen
|
||||||
|
|
||||||
echo "LANG=en_GB.UTF-8" > /etc/locale.conf
|
echo "LANG=en_GB.UTF-8" > /etc/locale.conf
|
||||||
echo "KEYMAP=de_CH.latin1" > /etc/vconsole.conf
|
echo "KEYMAP=de_CH-latin1" > /etc/vconsole.conf
|
||||||
echo "arch-dev-vm" > /etc/hostname
|
echo "arch-dev-vm" > /etc/hostname
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
@@ -23,11 +23,6 @@ sleep 2
|
|||||||
mkinitcpio -P
|
mkinitcpio -P
|
||||||
plymouth-set-default-theme -R script
|
plymouth-set-default-theme -R script
|
||||||
|
|
||||||
cd /tmp
|
|
||||||
git clone https://aur.archlinux.org/yay.git
|
|
||||||
cd yay
|
|
||||||
makepkg -si
|
|
||||||
|
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH
|
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
@@ -37,14 +32,6 @@ echo "
|
|||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
read -p "Do you want to have a barebone (b) or complete (c) install? " installType
|
|
||||||
|
|
||||||
if [[ "$installType" != "c" ]]; then
|
|
||||||
yay -Syu --noconfirm nodejs npm rustup kate python-pip gcc
|
|
||||||
fi
|
|
||||||
|
|
||||||
yay -Syu --noconfirm vscodium
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
==> Creating new user, please choose a password once prompted!
|
==> Creating new user, please choose a password once prompted!
|
||||||
@@ -53,9 +40,12 @@ echo "
|
|||||||
|
|
||||||
read -p "Choose a password: " pwd
|
read -p "Choose a password: " pwd
|
||||||
|
|
||||||
useradd -m arch-is-the-best
|
useradd -m arch-is-best
|
||||||
echo "$pwd" | passwd arch-is-the-best --stdin
|
passwd arch-is-best << EOD
|
||||||
usermod -aG wheel arch-is-the-best
|
${pwd}
|
||||||
|
${pwd}
|
||||||
|
EOD
|
||||||
|
usermod -aG wheel arch-is-best
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
@@ -76,6 +66,26 @@ echo "
|
|||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
git clone https://aur.archlinux.org/yay.git
|
||||||
|
cd yay
|
||||||
|
makepkg -si
|
||||||
|
|
||||||
|
echo "
|
||||||
|
|
||||||
|
==> AUR helper installed
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
read -p "Do you want to have a barebone (b) or complete (c) install? " installType
|
||||||
|
|
||||||
|
if [[ "$installType" != "c" ]]; then
|
||||||
|
yay -Syu --noconfirm nodejs npm rustup kate python-pip gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
yay -Syu --noconfirm vscodium
|
||||||
|
|
||||||
|
|
||||||
mkdir /home/arch-is-best/.config
|
mkdir /home/arch-is-best/.config
|
||||||
|
|
||||||
mv /home/arch-is-best/arch-dev-vm/config/* /home/arch-is-best/.config
|
mv /home/arch-is-best/arch-dev-vm/config/* /home/arch-is-best/.config
|
||||||
|
|||||||
@@ -95,9 +95,10 @@ echo "
|
|||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
cp -r ~/arch-dev-vm /mnt/root/
|
mkdir /mnt/root
|
||||||
|
cp -r ~/arch-dev-vm /mnt/root/arch-dev-vm/
|
||||||
|
|
||||||
arch-chroot /mnt /root/chroot.sh
|
arch-chroot /mnt /root/arch-dev-vm/chroot.sh
|
||||||
|
|
||||||
# Chroot is running
|
# Chroot is running
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user