82 lines
1.9 KiB
Bash
Executable file
82 lines
1.9 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
[[ -r /opt/livecd/util.sh ]] && source /opt/livecd/util.sh
|
|
|
|
load_config "/opt/livecd/manjaro-tools.conf"
|
|
|
|
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
|
|
[[ -r /opt/livecd/util-livecd.sh ]] && source /opt/livecd/util-livecd.sh
|
|
|
|
CONSOLEFONT="$(kernel_cmdline vconsole.font)"
|
|
CONSOLEMAP="$(kernel_cmdline vconsole.font.map)"
|
|
PACMAN_LNG="pacman --config /opt/livecd/pacman-lng.conf --noconfirm --noprogressbar"
|
|
arch=$(uname -m)
|
|
_KV=$(uname -r)
|
|
|
|
echo "update fstab for swap" > /tmp/livecd.log
|
|
|
|
## Systemd should do it
|
|
# scan_swap
|
|
configure_swap_live
|
|
|
|
echo "set locale" >> /tmp/livecd.log
|
|
|
|
# set_locale
|
|
set_locale
|
|
locale-gen
|
|
|
|
echo "configure system" >> /tmp/livecd.log
|
|
|
|
# add BROWSER var
|
|
configure_env_live
|
|
|
|
echo "configure sudoers" >> /tmp/livecd.log
|
|
|
|
# do_fix_perms
|
|
configure_sudo_live
|
|
|
|
echo "depmod extramodules" >> /tmp/livecd.log
|
|
|
|
# depmod extramodules
|
|
depmod $(cat /usr/lib/modules/${_KV}/extramodules/version)
|
|
|
|
# check if we are running inside a virtual machine and unistall kalu
|
|
DESTDIR="/"
|
|
[[ -e "/usr/bin/kalu" ]] && _rm_kalu
|
|
|
|
install_localization_live "${DESTDIR}"
|
|
|
|
configure_displaymanager_live
|
|
|
|
echo "configure root password" >> /tmp/livecd.log
|
|
|
|
configure_user_root_live "${DESTDIR}"
|
|
cp -a /etc/skel/. /root/
|
|
|
|
configure_machine_id_live
|
|
|
|
configure_thus_live
|
|
|
|
configure_calamares_live
|
|
|
|
# configure documentation
|
|
[[ -e "/etc/skel/Manjaro/Beginner_User_Guide.pdf" ]] && ln -sf \
|
|
/etc/skel/Manjaro/Beginner_User_Guide.pdf "/home/${username}/Desktop/Beginner User Guide.pdf"
|
|
|
|
# disable network (workaround for lightdm)
|
|
if [[ -e "/usr/bin/lightdm" ]]; then
|
|
for eth in $(ifconfig | grep ': ' | cut -d: -f1); do
|
|
ifconfig $eth down
|
|
echo "$eth" >> /tmp/ifconfig.devices
|
|
done
|
|
fi
|
|
|
|
configure_alsa_live "${DESTDIR}"
|
|
|
|
# save settings
|
|
alsactl -f /etc/asound.state store &>/dev/null
|
|
|
|
# configure pulse
|
|
if [[ -f /usr/bin/pulseaudio-ctl ]];then
|
|
/opt/livecd/pulseaudio-ctl-normal
|
|
fi
|