2014-12-15 03:50:58 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
[[ -r /opt/livecd/util.sh ]] && source /opt/livecd/util.sh
|
|
|
|
|
2015-02-17 23:51:01 +01:00
|
|
|
load_config "/opt/livecd/manjaro-tools.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)
|
2014-12-17 05:21:16 +01:00
|
|
|
|
2014-12-15 03:50:58 +01:00
|
|
|
echo "update fstab for swap" > /tmp/livecd.log
|
|
|
|
|
|
|
|
## Systemd should do it
|
|
|
|
# scan_swap
|
2015-02-17 23:51:01 +01:00
|
|
|
configure_swap
|
2014-12-15 03:50:58 +01:00
|
|
|
|
|
|
|
echo "set locale" >> /tmp/livecd.log
|
|
|
|
|
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" >> /tmp/livecd.log
|
|
|
|
|
|
|
|
# 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" >> /tmp/livecd.log
|
|
|
|
|
|
|
|
# do_fix_perms
|
2015-02-17 23:51:01 +01:00
|
|
|
configure_sudo
|
2014-12-15 03:50:58 +01:00
|
|
|
|
2015-01-11 13:22:45 +01:00
|
|
|
echo "depmod extramodules" >> /tmp/livecd.log
|
|
|
|
|
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
|
2014-12-17 05:21:16 +01:00
|
|
|
|
2015-02-17 23:51:01 +01:00
|
|
|
configure_displaymanager
|
2014-12-18 01:15:31 +01:00
|
|
|
|
2014-12-17 05:21:16 +01:00
|
|
|
echo "configure root password" >> /tmp/livecd.log
|
|
|
|
|
2015-02-19 13:52:35 +01:00
|
|
|
configure_user_root /
|
2014-12-17 05:21:16 +01:00
|
|
|
cp -a /etc/skel/. /root/
|
|
|
|
|
2015-01-11 00:04:06 +01:00
|
|
|
# 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"
|
|
|
|
|
2015-02-19 13:52:35 +01:00
|
|
|
# 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
|
|
|
|
2015-02-19 13:52:35 +01:00
|
|
|
|