manjaro-tools/scripts/livecd

69 lines
1.5 KiB
Text
Raw Normal View History

2014-12-15 03:50:58 +01:00
#!/bin/sh
[[ -r /opt/livecd/util.sh ]] && source /opt/livecd/util.sh
load_profile_config "/opt/livecd/profile.conf"
2014-12-15 03:50:58 +01:00
[[ -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)
echo "update fstab for swap" > /var/log/livecd.log
2014-12-15 03:50:58 +01:00
# scan_swap
2015-05-21 23:23:00 +02:00
## Systemd should do it
# should or should not?
# [[ -d /run/openrc ]] && configure_swap
2015-02-17 23:51:01 +01:00
configure_swap
2014-12-15 03:50:58 +01:00
echo "set locale" >> /var/log/livecd.log
2014-12-15 03:50:58 +01:00
2015-02-17 23:51:01 +01:00
# set language
configure_language
2014-12-15 03:50:58 +01:00
locale-gen
echo "configure system" >> /var/log/livecd.log
2014-12-15 03:50:58 +01:00
# add BROWSER var
2015-02-17 23:51:01 +01:00
configure_env
configure_machine_id
2014-12-15 03:50:58 +01:00
echo "configure sudoers" >> /var/log/livecd.log
2014-12-15 03:50:58 +01:00
# do_fix_perms
2015-02-17 23:51:01 +01:00
configure_sudo
2014-12-15 03:50:58 +01:00
echo "depmod extramodules" >> /var/log/livecd.log
2015-01-11 13:22:45 +01:00
2014-12-15 03:50:58 +01:00
# depmod extramodules
2015-02-17 23:51:01 +01:00
depmod $(cat /usr/lib/modules/$(uname -r)/extramodules/version)
2014-12-15 03:50:58 +01:00
2015-02-19 10:32:14 +01:00
install_localization
2015-06-06 13:43:00 +02:00
if [[ ${autologin} == "true" ]] ; then
configure_displaymanager_autologin
fi
echo "configure root password" >> /var/log/livecd.log
configure_user_root /
cp -a /etc/skel/. /root/
# configure documentation
[[ -e "/etc/skel/Manjaro/Beginner_User_Guide.pdf" ]] && ln -sf \
2015-01-11 13:22:45 +01:00
/etc/skel/Manjaro/Beginner_User_Guide.pdf "/home/${username}/Desktop/Beginner User Guide.pdf"
# check if we are running inside a virtual machine and unistall kalu
[[ -e "/usr/bin/kalu" ]] && rm_kalu /
configure_alsa /
2015-01-11 13:22:45 +01:00
# save settings
alsactl -f /etc/asound.state store &>/dev/null
2015-02-19 13:26:01 +01:00