mirror of
https://github.com/tuxdotrs/tuxOS.git
synced 2025-07-06 17:56:35 +05:30
added packages
This commit is contained in:
13
packages/tuxos-calamares-config/files/calamares/launch.sh
Executable file
13
packages/tuxos-calamares-config/files/calamares/launch.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
## Check if booted using 'Copy to RAM' mode
|
||||
DIR="/etc/calamares"
|
||||
KERNEL=`uname -r`
|
||||
|
||||
if [[ -d "/run/archiso/copytoram" ]]; then
|
||||
sudo sed -i -e 's|/run/archiso/bootmnt/arch/x86_64/airootfs.sfs|/run/archiso/copytoram/airootfs.sfs|g' "$DIR"/modules/unpackfs.conf
|
||||
sudo sed -i -e "s|/run/archiso/bootmnt/arch/boot/x86_64/vmlinuz-linux|/usr/lib/modules/$KERNEL/vmlinuz|g" "$DIR"/modules/unpackfs.conf
|
||||
fi
|
||||
|
||||
## Launch calamare installer accordingly
|
||||
pkexec calamares -d -style kvantum
|
Reference in New Issue
Block a user