summaryrefslogtreecommitdiff
path: root/install-system.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-12-07 19:12:06 +0000
committerdavidovski <david@davidovski.xyz>2021-12-07 19:12:06 +0000
commit7887f4d828c0ec15b209afc49f2671e368cb2c70 (patch)
treed17c1267dda4fab3bab0edf1ca616462808d7a91 /install-system.sh
parentab6b17e9efdab3efecae20d56237bfa09bed72ba (diff)
added rudimentary install script
Diffstat (limited to 'install-system.sh')
-rwxr-xr-xinstall-system.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/install-system.sh b/install-system.sh
new file mode 100755
index 0000000..892e1e5
--- /dev/null
+++ b/install-system.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# This is just a temporary install script that will install xilinux into a folder
+# recommended to run with root
+
+R=$1
+
+mkdir -p $R
+mkdir -p $R/usr/bin
+mkdir -p $R/usr/lib
+
+cd $R
+ln -s usr/bin bin
+ln -s usr/bin sbin
+ln -s usr/bin usr/sbin
+
+ln -s usr/lib lib
+ln -s usr/lib lib64
+ln -s usr/lib usr/lib64
+
+xi sync
+
+xi -nyl --root . install $(ls /var/lib/xipkg/packages/core)
+