mirror of
https://github.com/tuxdotrs/tuxOS.git
synced 2025-07-06 09:46:34 +05:30
14 lines
493 B
Bash
Executable File
14 lines
493 B
Bash
Executable File
#!/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
|