add chroot commands
This commit is contained in:
parent
16c5c1eb66
commit
19d2d1192a
16
pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh
Executable file
16
pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh
Executable 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
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user