add chroot commands

This commit is contained in:
Ward from fusion-voyager-3 2023-10-20 16:51:55 +03:00
parent 16c5c1eb66
commit 19d2d1192a
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#! /bin/bash
apt remove casper -y
apt autoremove -y
/tmp/albius-crypttab.sh
/tmp/albius-refind_linux.sh
refind-install
apt install -y /var/cache/apt/archives/pika-refind-theme*.deb
apt install -y /var/cache/apt/archives/booster*.deb
locale-gen
useradd -m -k -U pikaos
echo "pikaos"| passwd --stdin pikaos
mkdir -p /var/lib/AccountsService/users
echo '[User]\nSession=firstsetup' > /var/lib/AccountsService/users/pikaos
mkdir -p /home/pikaos/.config/autostart
cp /usr/share/applications/pika-first-setup.desktop /home/pikaos/.config/autostart
chown -R pikaos:pikaos /home/pikaos

View File

@ -8,4 +8,5 @@
mount --rbind /run "$1"/run mount --rbind /run "$1"/run
mkdir -p "$1"/var/cache/apt/archives mkdir -p "$1"/var/cache/apt/archives
cp -rvf /cdrom/pool/main/* "$1"/var/cache/apt/archives/ cp -rvf /cdrom/pool/main/* "$1"/var/cache/apt/archives/
genfstab -U "$1" > "$1"/etc/fstab
chroot /chroot_dir /bin/bash -c "su - -c /usr/lib/pika/pikainstall/pika-install-chroot.sh" chroot /chroot_dir /bin/bash -c "su - -c /usr/lib/pika/pikainstall/pika-install-chroot.sh"