perhaps ready?

This commit is contained in:
Ward from fusion-voyager-3 2023-10-20 17:13:28 +03:00
parent c43a513dac
commit 3f5563f141
3 changed files with 5 additions and 1 deletions

View File

@ -8,5 +8,5 @@ Rules-Requires-Root: no
Package: pikainstall Package: pikainstall
Architecture: linux-any Architecture: linux-any
Depends: ${misc:Depends}, squashfs-tools Depends: ${misc:Depends}, squashfs-tools, arch-install-scripts
Description: Command line installer for PikaOS Description: Command line installer for PikaOS

View File

@ -0,0 +1,3 @@
#! /bin/bash
if [ "$(id -u)" -ne 0 ]; then echo "Please run as root." >&2; exit 1; fi
/usr/lib/pika/pikainstall/pikainstall "$@"

View File

@ -9,4 +9,5 @@
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 genfstab -U "$1" > "$1"/etc/fstab
cat "$1"/etc/fstab | grep -v zram > "$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"