blob: 62036b402ab0b5ac40524117ff66d96206fdbf8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/bin/bash
# This is just a temporary install script that will install xilinux into a folder
# recommended to run with root
KEY="davidovski https://xi.davidovski.xyz/repo/xi.pub"
R=$1
mkdir -p $R
mkdir -p $R/tmp
mkdir -p $R/dev
mkdir -p $R/sys
mkdir -p $R/run
mkdir -p $R/proc
mkdir -p $R/usr/bin
mkdir -p $R/usr/lib
mkdir -p $R/root
cd $R
ln -s /bin usr/bin
ln -s /bin sbin
ln -s /bin usr/sbin
ln -s /lib lib
ln -s /lib lib64
ln -s /lib usr/lib64
ln -s usr/local usr
xi sync
xi -nyl --root . install $(ls /var/lib/xipkg/packages/core)
xi -nyl --root . keyimport $KEY
# chroot into the system to install xipkg and any postinstall scripts
xi -nyl --root . install xipkg
cd bin
ln -s bash sh
cd ../..
mkdir -p $R/var/lib/xipkg/
cp -r /var/lib/xipkg/packages $R/var/lib/xipkg
cp -r /var/lib/xipkg/keychain $R/var/lib/xipkg
# Autoconfiguring some things like network
echo "xilinux" > $R/etc/hostname
cat > $R/etc/resolv.conf << "EOF"
nameserver 80.80.80.80
nameserver 80.80.81.81
EOF
|