summaryrefslogtreecommitdiff
path: root/scripts/install.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-11 15:27:40 +0100
committerdavidovski <david@davidovski.xyz>2022-04-11 15:27:40 +0100
commit30be8ddd88f617f21b874e623f2da8643fe2699c (patch)
tree451d431e7ceb5a80613c9e32d0edc7c70a883762 /scripts/install.sh
parent62e5165d2607576d3bc4973da62ad7fbd2baf52d (diff)
added preserve to tar command
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index f31d487..d342281 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -66,7 +66,7 @@ EOF
generating_fstab () {
echo "Generating fstab..."
- xichroot $SYSCONFIG genfstab -U / > $SYSROOT/etc/fstab
+ xichroot $SYSROOT genfstab -U / > $SYSROOT/etc/fstab
}
building_initramfs () {
@@ -95,20 +95,28 @@ installing_bootloader () {
}
}
+fixing_permissions () {
+ xichroot $SYSROOT chmod 755 /
+ xichroot $SYSROOT chmod 755 /usr
+ xichroot $SYSROOT chmod 755 /usr/bin
+ xichroot $SYSROOT chmod 755 /usr/lib
+}
+
downloading_additional_packages () {
echo "Syncing repos..."
xichroot $SYSROOT xi sync
echo "Downloading additional packages..."
- xichroot $SYSROOT xi $XIFLAGS install $additional_packages
+ xi -r $SYSROOT $XIFLAGS install $additional_packages
}
steps="
+configuring_nameservers
generating_fstab
building_initramfs
configuring_system
installing_bootloader
configuring_users
-configuring_nameservers
+fixing_permissions
downloading_additional_packages
"