forked from mirrored-repos/manjaro-tools
update to new Packages-Livecd name
This commit is contained in:
parent
1c17434a2a
commit
0d0898e8e0
30 changed files with 3 additions and 8951 deletions
|
@ -180,7 +180,7 @@ if [ -e "${pkgsfile}" ] ; then
|
|||
get_pkglist_de
|
||||
fi
|
||||
|
||||
if [[ -f Packages-Overlay ]]; then
|
||||
if [[ -f Packages-Livecd ]]; then
|
||||
get_pkglist_overlay
|
||||
fi
|
||||
|
||||
|
@ -214,11 +214,7 @@ if [ "${arch}" == "x86_64" ]; then
|
|||
fi
|
||||
make_isolinux
|
||||
|
||||
# if [[ -f Packages-Overlay ]]; then
|
||||
make_overlay-image
|
||||
# else
|
||||
# make_overlay
|
||||
# fi
|
||||
|
||||
make_isomounts
|
||||
make_iso
|
||||
|
|
|
@ -637,8 +637,8 @@ get_pkglist(){
|
|||
|
||||
get_pkglist_overlay(){
|
||||
if [ "${arch}" == "i686" ]; then
|
||||
overlay_packages=$(sed "s|#.*||g" "Packages-Overlay" | sed "s| ||g" | sed "s|>dvd.*||g" | sed "s|>blacklist.*||g" | sed "s|>x86_64.*||g" | sed "s|>i686||g" | sed "s|KERNEL|$manjaro_kernel|g" | sed ':a;N;$!ba;s/\n/ /g')
|
||||
overlay_packages=$(sed "s|#.*||g" "Packages-Livecd" | sed "s| ||g" | sed "s|>dvd.*||g" | sed "s|>blacklist.*||g" | sed "s|>x86_64.*||g" | sed "s|>i686||g" | sed "s|KERNEL|$manjaro_kernel|g" | sed ':a;N;$!ba;s/\n/ /g')
|
||||
elif [ "${arch}" == "x86_64" ]; then
|
||||
overlay_packages=$(sed "s|#.*||g" "Packages-Overlay" | sed "s| ||g" | sed "s|>dvd.*||g" | sed "s|>blacklist.*||g" | sed "s|>i686.*||g" | sed "s|>x86_64||g" | sed "s|KERNEL|$manjaro_kernel|g" | sed ':a;N;$!ba;s/\n/ /g')
|
||||
overlay_packages=$(sed "s|#.*||g" "Packages-Livecd" | sed "s| ||g" | sed "s|>dvd.*||g" | sed "s|>blacklist.*||g" | sed "s|>i686.*||g" | sed "s|>x86_64||g" | sed "s|KERNEL|$manjaro_kernel|g" | sed ':a;N;$!ba;s/\n/ /g')
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
## DPMS - Display Power Management Settings
|
||||
## These are disabled by default to prevent auto-actions when
|
||||
## the system is idle, such as screen blanking (10 mins) or
|
||||
## suspending (1 hour).
|
||||
(sleep 15s && xset -dpms; xset s off) &
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -n "$(blkid -L %MISO_LABEL% |grep -Eo 'sr|cd|loop')" ]; then
|
||||
echo -e " : \033[00;32m _ _ _ \033[0m"
|
||||
echo -e " : \033[00;32m | | | | (_) \033[0m"
|
||||
echo -e " : \033[00;32m | | _ | | ____ ____ _ ____ ____ ___ \033[0m"
|
||||
echo -e " : \033[00;32m | || || |/ _ | _ \ | |/ _ |/ ___) _ \ \033[0m"
|
||||
echo -e " : \033[00;32m | || || ( ( | | | | || ( ( | | | | |_| | \033[0m"
|
||||
echo -e " : \033[00;32m |_||_||_|\_||_|_| |_|| |\_||_|_| \___/ \033[0m"
|
||||
echo -e " : \033[00;32m (__/ \033[0m"
|
||||
echo -e " : "
|
||||
echo -e " : "
|
||||
echo -e " : \033[33m Remove the boot medium, close the tray (if any), then press ENTER. \033[0m"
|
||||
echo -e " : "
|
||||
echo -e " : "
|
||||
echo -e ".:."
|
||||
|
||||
read -t 120
|
||||
fi
|
|
@ -1,67 +0,0 @@
|
|||
# Copied from systemd-localed
|
||||
# http://cgit.freedesktop.org/systemd/systemd/log/src/locale/kbd-model-map
|
||||
# (originally under LGPLv2.1+, used under the LGPL to GPL conversion clause)
|
||||
# Generated from system-config-keyboard's model list
|
||||
# consolelayout xlayout xmodel xvariant xoptions
|
||||
sg ch pc105 de_nodeadkeys terminate:ctrl_alt_bksp
|
||||
nl nl pc105 - terminate:ctrl_alt_bksp
|
||||
mk-utf mk,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
trq tr pc105 - terminate:ctrl_alt_bksp
|
||||
uk gb pc105 - terminate:ctrl_alt_bksp
|
||||
is-latin1 is pc105 - terminate:ctrl_alt_bksp
|
||||
de de pc105 - terminate:ctrl_alt_bksp
|
||||
la-latin1 latam pc105 - terminate:ctrl_alt_bksp
|
||||
us us pc105+inet - terminate:ctrl_alt_bksp
|
||||
ko kr pc105 - terminate:ctrl_alt_bksp
|
||||
ro-std ro pc105 std terminate:ctrl_alt_bksp
|
||||
de-latin1 de pc105 - terminate:ctrl_alt_bksp
|
||||
slovene si pc105 - terminate:ctrl_alt_bksp
|
||||
hu101 hu pc105 qwerty terminate:ctrl_alt_bksp
|
||||
jp106 jp jp106 - terminate:ctrl_alt_bksp
|
||||
croat hr pc105 - terminate:ctrl_alt_bksp
|
||||
it2 it pc105 - terminate:ctrl_alt_bksp
|
||||
hu hu pc105 - terminate:ctrl_alt_bksp
|
||||
sr-latin rs pc105 latin terminate:ctrl_alt_bksp
|
||||
fi fi pc105 - terminate:ctrl_alt_bksp
|
||||
fr_CH ch pc105 fr terminate:ctrl_alt_bksp
|
||||
dk-latin1 dk pc105 - terminate:ctrl_alt_bksp
|
||||
fr fr pc105 - terminate:ctrl_alt_bksp
|
||||
it it pc105 - terminate:ctrl_alt_bksp
|
||||
ua-utf ua,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
fr-latin1 fr pc105 - terminate:ctrl_alt_bksp
|
||||
sg-latin1 ch pc105 de_nodeadkeys terminate:ctrl_alt_bksp
|
||||
be-latin1 be pc105 - terminate:ctrl_alt_bksp
|
||||
dk dk pc105 - terminate:ctrl_alt_bksp
|
||||
fr-pc fr pc105 - terminate:ctrl_alt_bksp
|
||||
bg_pho-utf8 bg,us pc105 ,phonetic terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
it-ibm it pc105 - terminate:ctrl_alt_bksp
|
||||
cz-us-qwertz cz,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
br-abnt2 br abnt2 - terminate:ctrl_alt_bksp
|
||||
ro ro pc105 - terminate:ctrl_alt_bksp
|
||||
us-acentos us pc105 intl terminate:ctrl_alt_bksp
|
||||
pt-latin1 pt pc105 - terminate:ctrl_alt_bksp
|
||||
ro-std-cedilla ro pc105 std_cedilla terminate:ctrl_alt_bksp
|
||||
tj_alt-UTF8 tj pc105 - terminate:ctrl_alt_bksp
|
||||
de-latin1-nodeadkeys de pc105 nodeadkeys terminate:ctrl_alt_bksp
|
||||
no no pc105 - terminate:ctrl_alt_bksp
|
||||
bg_bds-utf8 bg,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
dvorak us pc105 dvorak terminate:ctrl_alt_bksp
|
||||
dvorak us pc105 dvorak-alt-intl terminate:ctrl_alt_bksp
|
||||
ru ru,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
cz-lat2 cz pc105 qwerty terminate:ctrl_alt_bksp
|
||||
pl2 pl pc105 - terminate:ctrl_alt_bksp
|
||||
es es pc105 - terminate:ctrl_alt_bksp
|
||||
ro-cedilla ro pc105 cedilla terminate:ctrl_alt_bksp
|
||||
ie ie pc105 - terminate:ctrl_alt_bksp
|
||||
et ee pc105 - terminate:ctrl_alt_bksp
|
||||
sk-qwerty sk pc105 - terminate:ctrl_alt_bksp,qwerty
|
||||
fr-latin9 fr pc105 latin9 terminate:ctrl_alt_bksp
|
||||
fr_CH-latin1 ch pc105 fr terminate:ctrl_alt_bksp
|
||||
cf ca pc105 - terminate:ctrl_alt_bksp
|
||||
sv-latin1 se pc105 - terminate:ctrl_alt_bksp
|
||||
sr-cy rs pc105 - terminate:ctrl_alt_bksp
|
||||
gr gr,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
by by,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
il il pc105 - terminate:ctrl_alt_bksp
|
||||
kazakh kz,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
|
||||
lt lt pc105 - terminate:ctrl_alt_bksp
|
186
livecd/km
186
livecd/km
|
@ -1,186 +0,0 @@
|
|||
#!/bin/bash
|
||||
# written by Tobias Powalowski <tpowa@archlinux.org>
|
||||
# adapted for Cinnarch by Alex Filgueira <faidoc@gmail.com>
|
||||
# adapted for Manjaro by Philip Müller <philm@manjaro.org>
|
||||
|
||||
abort()
|
||||
{
|
||||
DIALOG --yesno "${_abort}" 6 42 || return 0
|
||||
[[ -e /tmp/.km ]] && rm -f /tmp/.km
|
||||
[[ -e /tmp/.keymap ]] && rm -f /tmp/.keymap
|
||||
[[ -e /tmp/.font ]] && rm -f /tmp/.font
|
||||
[[ -e /tmp/.km-running ]] && rm /tmp/.km-running
|
||||
clear
|
||||
exit 1
|
||||
}
|
||||
|
||||
# kernel_cmdline ()
|
||||
# {
|
||||
# for param in $(/bin/cat /proc/cmdline); do
|
||||
# case "${param}" in
|
||||
# $1=*) echo "${param##*=}"; return 0 ;;
|
||||
# $1) return 0 ;;
|
||||
# *) continue ;;
|
||||
# esac
|
||||
# done
|
||||
# [ -n "${2}" ] && echo "${2}"
|
||||
# return 1
|
||||
# }
|
||||
|
||||
# DIALOG()
|
||||
# an el-cheapo dialog wrapper
|
||||
#
|
||||
# parameters: see dialog(1)
|
||||
# returns: whatever dialog did
|
||||
DIALOG() {
|
||||
dialog --backtitle "${TITLE}" --aspect 15 "$@"
|
||||
return $?
|
||||
}
|
||||
|
||||
error_kmset()
|
||||
{
|
||||
DIALOG --msgbox "${_error}" 0 0
|
||||
}
|
||||
|
||||
dokeymap() {
|
||||
echo "${_scanning}"
|
||||
KEYMAPS=
|
||||
for i in $(find ${BASEDIR}/keymaps -follow -name "*.gz" | sed 's|^.*/||g' | sort); do
|
||||
KEYMAPS="${KEYMAPS} ${i} -"
|
||||
done
|
||||
CANCEL=""
|
||||
DIALOG --menu "${_select}" 22 60 16 ${KEYMAPS} 2>${ANSWER} || CANCEL="1"
|
||||
if [[ "${CANCEL}" = "1" ]]; then
|
||||
S_NEXTITEM="1"
|
||||
return 1
|
||||
fi
|
||||
keymap=$(cat ${ANSWER})
|
||||
echo ${keymap} > /tmp/.keymap
|
||||
# backward fix since filesystem 2013.03-1 don't ships vconsole.conf anymore
|
||||
echo "KEYMAP=us" > ${DESTDIR}/etc/vconsole.conf
|
||||
echo "FONT=" >> ${DESTDIR}/etc/vconsole.conf
|
||||
echo "FONT_MAP=" >> ${DESTDIR}/etc/vconsole.conf
|
||||
sed -i -e "s/^KEYMAP=.*/KEYMAP=\"$(cat /tmp/.keymap | sed -e 's/\..*//g')\"/g" ${DESTDIR}/etc/vconsole.conf
|
||||
if [[ "${keymap}" ]]; then
|
||||
DIALOG --infobox "{$_load} ${keymap}" 0 0
|
||||
#loadkeys -q ${BASEDIR}/keymaps/${keymap}
|
||||
loadkeys -q ${keymap} > /dev/null 2>&1 || error_kmset
|
||||
# for openrc
|
||||
if [ -e /run/openrc ]; then
|
||||
# get keymap without extension (.map.gz)
|
||||
KEYMAP=$(echo ${keymap} | cut -f 1 -d ".")
|
||||
# get stored keymap
|
||||
CKMAP=$(cat ${DESTDIR}/etc/conf.d/keymaps | grep -w keymap= | cut -f 2 -d '"')
|
||||
# if stored keymap is different from current selected keymap, replace it
|
||||
if [ ! ${CKMAP} == ${KEYMAP} ]; then
|
||||
sed -i "s/keymap=\"${CKMAP}\"/keymap=\"${KEYMAP}\"/" ${DESTDIR}/etc/conf.d/keymaps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Setup x11 config file
|
||||
local KBLAYOUT=$(get_layout)
|
||||
local KEYMAP=$(cat /tmp/.keymap | sed -e 's/\..*//g')
|
||||
_write_x11_config_file
|
||||
|
||||
S_NEXTITEM=2
|
||||
}
|
||||
|
||||
|
||||
mainmenu() {
|
||||
if [[ -n "${S_NEXTITEM}" ]]; then
|
||||
DEFAULT="--default-item ${S_NEXTITEM}"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
DIALOG ${DEFAULT} --backtitle "${TITLE}" --title "${_menu}" \
|
||||
--menu "${_desc}" 17 58 13 \
|
||||
"1" "${_keymap}" \
|
||||
"2" "${EXIT}" 2>${ANSWER}
|
||||
case $(cat ${ANSWER}) in
|
||||
"1")
|
||||
dokeymap
|
||||
;;
|
||||
"2")
|
||||
[[ -e /tmp/.km-running ]] && rm /tmp/.km-running
|
||||
clear
|
||||
exit 0 ;;
|
||||
*)
|
||||
abort ;;
|
||||
esac
|
||||
}
|
||||
|
||||
: >/tmp/.keymap
|
||||
: >/tmp/.font
|
||||
: >/tmp/.km
|
||||
|
||||
# do UID checking here so someone can at least get usage instructions
|
||||
if [ "$EUID" != "0" ]; then
|
||||
echo "error: This script must be run as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# force to use english
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_MESSAGES=en_US.UTF-8
|
||||
|
||||
# Translation
|
||||
#source /opt/livecd/functions
|
||||
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
|
||||
|
||||
LOCALE=$(get_country)
|
||||
|
||||
# English
|
||||
source /opt/livecd/km-en.lng
|
||||
# Turkish
|
||||
if [ "${LOCALE}" = "tr_TR" ]; then
|
||||
source /opt/livecd/km-tr.lng
|
||||
fi
|
||||
|
||||
ANSWER="/tmp/.km"
|
||||
TITLE="${_title}"
|
||||
BASEDIR="/usr/share/kbd"
|
||||
|
||||
if [[ "${1}" = "--setup" ]]; then
|
||||
EXIT="${_return}"
|
||||
DESTDIR="/install"
|
||||
else
|
||||
EXIT="${_exit}"
|
||||
DESTDIR=""
|
||||
fi
|
||||
|
||||
if [[ ! -d ${BASEDIR}/keymaps ]]; then
|
||||
echo "${_nokeymap} ${BASEDIR}/keymaps" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -d ${BASEDIR}/consolefonts ]]; then
|
||||
echo "${_nofonts} ${BASEDIR}/consolefonts" >&2
|
||||
fi
|
||||
|
||||
if [[ ! $(which loadkeys) ]]; then
|
||||
echo "${_loadkeys}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [[ ! $(which setfont) ]]; then
|
||||
echo "${_setfont}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -e /tmp/.km-running ]]; then
|
||||
echo "${_km}"
|
||||
echo "${_tmp}"
|
||||
exit 1
|
||||
fi
|
||||
: >/tmp/.km-running
|
||||
|
||||
while true; do
|
||||
mainmenu
|
||||
done
|
||||
|
||||
clear
|
||||
exit 0
|
||||
|
||||
# vim: set ts=4 sw=4 et:
|
|
@ -1,21 +0,0 @@
|
|||
#Translation
|
||||
_yes="Yes"
|
||||
_no="No"
|
||||
_cancel="Cancel"
|
||||
_title="Manjaro Keymap Setting"
|
||||
_return="Return to Main Menu"
|
||||
_exit="Exit"
|
||||
_abort="Abort Keymap And Console Font Setting?"
|
||||
_error="An error occured, your current keymap was not changed."
|
||||
_scanning="Scanning for keymaps..."
|
||||
_select="Select A Keymap"
|
||||
_load="Loading keymap:"
|
||||
_menu=" MAIN MENU "
|
||||
_desc="Use ↓ and ↑ to navigate menus.\nUse TAB to switch between buttons and ENTER to select."
|
||||
_keymap="Set Keymap"
|
||||
_nokeymap="Cannot load keymaps, as none were found in"
|
||||
_nofonts="Cannot load consolefonts, as none were found in"
|
||||
_loadkeys="'loadkeys' binary not found!"
|
||||
_setfont="'setfont' binary not found!"
|
||||
_km="km already runs on a different console!"
|
||||
_tmp="Please remove /tmp/.km-running first to launch km!"
|
|
@ -1,37 +0,0 @@
|
|||
#Translation
|
||||
_yes="Evet"
|
||||
_no="Hayir"
|
||||
_cancel="Iptal"
|
||||
_title="Manjaro Tus Haritasi Ayarlari"
|
||||
|
||||
_return="Ana Menu ye Don"
|
||||
|
||||
_exit="Cikis"
|
||||
|
||||
_abort="Tus haritasi ve Konsol Font Ayarlarini Gec?"
|
||||
|
||||
_error="Hata olustu, gecerli tus haritasi degismedi."
|
||||
|
||||
_scanning="Tus haritalari taraniyor..."
|
||||
|
||||
_select="Bir Tus Haritasi Secin"
|
||||
|
||||
_load="Tus Haritasi Yukleniyor:"
|
||||
|
||||
_menu=" ANA MENU "
|
||||
|
||||
_desc=" ↓ ve ↑ ile menuler arasinda gezinin.\nUse TAB ile sekmeler arasinda gezin ve ENTER ile secin."
|
||||
|
||||
_keymap="Tus haritasini Ayarla"
|
||||
|
||||
_nokeymap="Tus Haritasi Yuklenemedi"
|
||||
|
||||
_nofonts="Konsol Fontlari Yuklenemedi"
|
||||
|
||||
_loadkeys="'Yukleme' Insa bulunamadi!"
|
||||
|
||||
_setfont="'Font Ayari' Insa bulunamadi!"
|
||||
|
||||
_km="km Baska Bir Ucbirimde Halen Calismaktadir!"
|
||||
|
||||
_tmp="Lutfen km yurutmeden once /tmp/.km-running kaldirin!"
|
147
livecd/lg
147
livecd/lg
|
@ -1,147 +0,0 @@
|
|||
#!/bin/bash
|
||||
# written by Alex Filgueira <faidoc@gmail.com>
|
||||
# adapted for Manjaro by Philip Müller <philm@manjaro.org>
|
||||
|
||||
abort()
|
||||
{
|
||||
DIALOG --yesno "${_abort}" 6 42 || return 0
|
||||
[[ -e /tmp/.lg ]] && rm -f /tmp/.lg
|
||||
[[ -e /tmp/.language ]] && rm -f /tmp/.language
|
||||
[[ -e /tmp/.lg-running ]] && rm /tmp/.lg-running
|
||||
clear
|
||||
exit 1
|
||||
}
|
||||
|
||||
# kernel_cmdline ()
|
||||
# {
|
||||
# for param in $(/bin/cat /proc/cmdline); do
|
||||
# case "${param}" in
|
||||
# $1=*) echo "${param##*=}"; return 0 ;;
|
||||
# $1) return 0 ;;
|
||||
# *) continue ;;
|
||||
# esac
|
||||
# done
|
||||
# [ -n "${2}" ] && echo "${2}"
|
||||
# return 1
|
||||
# }
|
||||
|
||||
# DIALOG()
|
||||
# an el-cheapo dialog wrapper
|
||||
#
|
||||
# parameters: see dialog(1)
|
||||
# returns: whatever dialog did
|
||||
DIALOG() {
|
||||
dialog --backtitle "${TITLE}" --aspect 15 "$@"
|
||||
return $?
|
||||
}
|
||||
|
||||
error_lgset()
|
||||
{
|
||||
DIALOG --msgbox "${_error}" 0 0
|
||||
}
|
||||
|
||||
dolanguages() {
|
||||
# "Scanning for locales..."
|
||||
LOCALES=""
|
||||
for i in $(cat ${DESTDIR}/etc/locale.gen | grep -v "# " | sed 's/#//g' | sed 's/ UTF-8//g' | grep .UTF-8); do
|
||||
LOCALES="${LOCALES} ${i} -"
|
||||
done
|
||||
|
||||
CANCEL=""
|
||||
DIALOG --menu "${_select}" 22 60 16 ${LOCALES} 2>${ANSWER} || CANCEL="1"
|
||||
if [[ "${CANCEL}" = "1" ]]; then
|
||||
S_NEXTITEM="1"
|
||||
return 1
|
||||
fi
|
||||
locale=$(cat ${ANSWER})
|
||||
echo ${locale} > /tmp/.locale
|
||||
if [[ "${locale}" ]]; then
|
||||
DIALOG --infobox "${_set} ${locale}" 0 0
|
||||
sed -i "s/#\(${locale}\)/\1/" ${DESTDIR}/etc/locale.gen
|
||||
echo "LANG=${locale}" > ${DESTDIR}/etc/locale.conf
|
||||
echo "LC_COLLATE=C" >> ${DESTDIR}/etc/locale.conf
|
||||
if [[ "$(cat ${DESTDIR}/etc/environment | grep LANG=)" = "" ]]; then
|
||||
echo "LANG=${locale}" >> ${DESTDIR}/etc/environment
|
||||
else
|
||||
sed -i -e "s/^.*LANG=.*/LANG=${locale}/" ${DESTDIR}/etc/environment
|
||||
fi
|
||||
fi
|
||||
S_NEXTITEM=2
|
||||
}
|
||||
|
||||
|
||||
mainmenu() {
|
||||
if [[ -n "${S_NEXTITEM}" ]]; then
|
||||
DEFAULT="--default-item ${S_NEXTITEM}"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
DIALOG ${DEFAULT} --backtitle "${TITLE}" --title "${_menu}" \
|
||||
--menu "${_desc}" 17 58 13 \
|
||||
"1" "${_locale}" \
|
||||
"2" "${EXIT}" 2>${ANSWER}
|
||||
case $(cat ${ANSWER}) in
|
||||
"1")
|
||||
dolanguages
|
||||
;;
|
||||
"2")
|
||||
[[ -e /tmp/.lg-running ]] && rm /tmp/.lg-running
|
||||
clear
|
||||
exit 0 ;;
|
||||
*)
|
||||
abort ;;
|
||||
esac
|
||||
}
|
||||
|
||||
: >/tmp/.language
|
||||
: >/tmp/.lg
|
||||
|
||||
# do UID checking here so someone can at least get usage instructions
|
||||
if [ "$EUID" != "0" ]; then
|
||||
echo "error: This script must be run as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# force to use english
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_MESSAGES=en_US.UTF-8
|
||||
|
||||
# Translation
|
||||
#source /opt/livecd/functions
|
||||
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
|
||||
|
||||
LOCALE=$(get_country)
|
||||
|
||||
# English
|
||||
source /opt/livecd/lg-en.lng
|
||||
# Turkish
|
||||
if [ "${LOCALE}" = "tr_TR" ]; then
|
||||
source /opt/livecd/lg-tr.lng
|
||||
fi
|
||||
|
||||
ANSWER="/tmp/.lg"
|
||||
TITLE="${_title}"
|
||||
|
||||
if [[ "${1}" = "--setup" ]]; then
|
||||
EXIT="${_return}"
|
||||
DESTDIR="/install"
|
||||
else
|
||||
EXIT="${_exit}"
|
||||
DESTDIR=""
|
||||
fi
|
||||
|
||||
if [[ -e /tmp/.lg-running ]]; then
|
||||
echo "${_lg}"
|
||||
echo "${_tmp}"
|
||||
exit 1
|
||||
fi
|
||||
: >/tmp/.lg-running
|
||||
|
||||
while true; do
|
||||
mainmenu
|
||||
done
|
||||
|
||||
clear
|
||||
exit 0
|
||||
|
||||
# vim: set ts=4 sw=4 et:
|
|
@ -1,16 +0,0 @@
|
|||
#Translation
|
||||
_yes="Yes"
|
||||
_no="No"
|
||||
_cancel="Cancel"
|
||||
_title="Manjaro Language Setting"
|
||||
_return="Return to Main Menu"
|
||||
_exit="Exit"
|
||||
_abort="Abort Language Setting?"
|
||||
_error="An error occured, your current language was not selected."
|
||||
_select="Select A Locale"
|
||||
_set="Set locale:"
|
||||
_menu=" MAIN MENU "
|
||||
_desc="Use ↓ and ↑ to navigate menus.\nUse TAB to switch between buttons and ENTER to select."
|
||||
_locale="Set Locale"
|
||||
_lg="lg already runs on a different console!"
|
||||
_tmp="Please remove /tmp/.lg-running first to continue!"
|
|
@ -1,27 +0,0 @@
|
|||
#Translation
|
||||
_yes="Evet"
|
||||
_no="Hayir"
|
||||
_cancel="Iptal"
|
||||
_title="Manjaro Dil Ayarlari"
|
||||
|
||||
_return="Ana Menuye Don"
|
||||
|
||||
_exit="Cikis"
|
||||
|
||||
_abort="Dil Ayarlarini Gec?"
|
||||
|
||||
_error="Hata olustu, dil secilmedi."
|
||||
|
||||
_select="Yereli Secin"
|
||||
|
||||
_set="Yereli Ayarla:"
|
||||
|
||||
_menu=" ANA MENU "
|
||||
|
||||
_desc=" ↓ ve ↑ ile menuler arasinda gezin.\nUse TAB ile butonlar arasinda gezin ve ENTER ile secin."
|
||||
|
||||
_locale="Yereli Ayarlayin"
|
||||
|
||||
_lg="lg halen baska bir ucbirimde calismaktadir!"
|
||||
|
||||
_tmp="Lutfen devam etmeden once /tmp/.lg-running silin!"
|
256
livecd/livecd
256
livecd/livecd
|
@ -1,256 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
[[ -r /opt/livecd/util.sh ]] && source /opt/livecd/util.sh
|
||||
|
||||
load_config "/opt/livecd/manjaro-tools.conf"
|
||||
|
||||
[[ -r /opt/livecd/util-common.sh ]] && source /opt/livecd/util-common.sh
|
||||
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.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)
|
||||
_kernver=$(uname -r)
|
||||
_kernver=${_kernver%%-*}
|
||||
_kernver=${_kernver%%.[00-99].[00-99]}
|
||||
EXTRAMODULES=extramodules-${_kernver}-MANJARO
|
||||
|
||||
echo "update fstab for swap" > /tmp/livecd.log
|
||||
|
||||
## Systemd should do it
|
||||
# scan_swap
|
||||
swapdev="$(fdisk -l 2>/dev/null | grep swap | cut -d' ' -f1)"
|
||||
if [ -e "${swapdev}" ]; then
|
||||
swapon ${swapdev}
|
||||
echo "${swapdev} swap swap defaults 0 0 #configured by manjaroiso" >>/etc/fstab
|
||||
fi
|
||||
|
||||
echo "set locale" >> /tmp/livecd.log
|
||||
|
||||
# set_locale
|
||||
set_locale
|
||||
locale-gen
|
||||
|
||||
echo "configure alsa" >> /tmp/livecd.log
|
||||
|
||||
# configure alsa
|
||||
set_alsa
|
||||
|
||||
# configure pulse
|
||||
if [ -e "/usr/bin/pulseaudio-ctl" ] ; then
|
||||
pulseaudio-ctl normal
|
||||
fi
|
||||
|
||||
# save settings
|
||||
alsactl -f /etc/asound.state store &>/dev/null
|
||||
|
||||
echo "enable default mirror" >> /tmp/livecd.log
|
||||
|
||||
# enable default mirror
|
||||
#cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
||||
#if [ ! -z "$ping_check" ] ; then
|
||||
# pacman-mirrors -g &>/dev/null
|
||||
#fi
|
||||
|
||||
echo "configure system" >> /tmp/livecd.log
|
||||
|
||||
# add BROWSER var
|
||||
echo "BROWSER=/usr/bin/xdg-open" >> /etc/environment
|
||||
echo "BROWSER=/usr/bin/xdg-open" >> /etc/skel/.bashrc
|
||||
echo "BROWSER=/usr/bin/xdg-open" >> /etc/profile
|
||||
# add TERM var
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
echo "TERM=mate-terminal" >> /etc/environment
|
||||
echo "TERM=mate-terminal" >> /etc/profile
|
||||
fi
|
||||
|
||||
## FIXME - Workaround to launch mate-terminal
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
sed -i -e "s~^.*Exec=.*~Exec=mate-terminal -e 'sudo setup'~" "/etc/skel/Desktop/installer-launcher-cli.desktop"
|
||||
sed -i -e "s~^.*Terminal=.*~Terminal=false~" "/etc/skel/Desktop/installer-launcher-cli.desktop"
|
||||
fi
|
||||
|
||||
# do_configsforroot
|
||||
cp -a /etc/skel/. /root/
|
||||
|
||||
echo "configure sudoers" >> /tmp/livecd.log
|
||||
|
||||
# do_fix_perms
|
||||
chown root:root /etc/sudoers
|
||||
sed -i -e 's|# %wheel ALL=(ALL) ALL|%wheel ALL=(ALL) ALL|g' /etc/sudoers
|
||||
chmod 440 /etc/sudoers
|
||||
|
||||
echo "configure applications" >> /tmp/livecd.log
|
||||
|
||||
# fix_gnome_apps
|
||||
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
|
||||
if [ -e "/usr/bin/dconf" ] ; then
|
||||
dconf update
|
||||
fi
|
||||
if [ -e "/usr/bin/gnome-keyring-daemon" ] ; then
|
||||
setcap cap_ipc_lock=ep /usr/bin/gnome-keyring-daemon &> /dev/null
|
||||
fi
|
||||
|
||||
echo "configure user" >> /tmp/livecd.log
|
||||
|
||||
useradd -m -g users -G ${addgroups} -p $(gen_pw) ${username}
|
||||
|
||||
# do_configsforroot
|
||||
cp -a /etc/skel/. /root/
|
||||
|
||||
# configurate pacman
|
||||
#pacman-key --init
|
||||
#pacman-key --populate archlinux manjaro
|
||||
|
||||
# fix_ping_installation
|
||||
setcap cap_net_raw=ep /usr/bin/ping &> /dev/null
|
||||
setcap cap_net_raw=ep /usr/bin/ping6 &> /dev/null
|
||||
|
||||
# installing localization packages
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lng-image.sqfs" ] ; then
|
||||
echo "install translation packages" >> /tmp/livecd.log
|
||||
_configure_translation_pkgs
|
||||
${PACMAN_LNG} -Sy
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/kde-image.sqfs" ] ; then
|
||||
${PACMAN_LNG} -S ${KDE_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/firefox" ] ; then
|
||||
${PACMAN_LNG} -S ${FIREFOX_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/thunderbird" ] ; then
|
||||
${PACMAN_LNG} -S ${THUNDER_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/libreoffice" ] ; then
|
||||
${PACMAN_LNG} -S ${LIBRE_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/hunspell" ] ; then
|
||||
${PACMAN_LNG} -S ${HUNSPELL_LNG_INST} &> /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# set unique machine-id
|
||||
#dbus-uuidgen --ensure=/etc/machine-id
|
||||
#dbus-uuidgen --ensure=/var/lib/dbus/machine-id
|
||||
|
||||
# depmod extramodules
|
||||
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
|
||||
|
||||
# check if we are running inside a virtual machine and unistall kalu
|
||||
DESTDIR="/"
|
||||
if [ -e "/usr/bin/kalu" ] ; then
|
||||
_rm_kalu
|
||||
fi
|
||||
|
||||
if [ -e "/etc/live-installer/install.conf" ] ; then
|
||||
echo "configure live-installer" >> /tmp/livecd.log
|
||||
_conf_file="/etc/live-installer/install.conf"
|
||||
fi
|
||||
if [ -e "/etc/thus.conf" ] ; then
|
||||
echo "configure thus" >> /tmp/livecd.log
|
||||
_conf_file="/etc/thus.conf"
|
||||
fi
|
||||
|
||||
if [ -e "$_conf_file" ] ; then
|
||||
sed -i "s|_root-image_|/bootmnt/${install_dir}/_ARCH_/root-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_kernel_|$manjaro_kernel|g" $_conf_file
|
||||
release=$(cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d= -f2)
|
||||
sed -i "s|_version_|$release|g" $_conf_file
|
||||
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/xfce-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/xfce-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro XFCE Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/gnome-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/gnome-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro Gnome Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/cinnamon-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/cinnamon-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro Cinnamon Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/openbox-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/openbox-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro Openbox Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/mate-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/mate-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro MATE Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/kde-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/kde-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro KDE Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lxde-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/lxde-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro LXDE Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lxqt-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/lxqt-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro LXQt Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/enlightenment-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/enlightenment-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro Enlightenment Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/pekwm-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/pekwm-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro PekWM Edition|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/custom-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop_|/bootmnt/${install_dir}/_ARCH_/custom-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_title_|Manjaro Custom Edition|g" $_conf_file
|
||||
fi
|
||||
if [ "${arch}" == "i686" ] ; then
|
||||
sed -i "s|_ARCH_|i686|g" $_conf_file
|
||||
else
|
||||
sed -i "s|_ARCH_|x86_64|g" $_conf_file
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e "/usr/share/calamares/settings.conf" ] ; then
|
||||
echo "configure calamares" >> /tmp/livecd.log
|
||||
_conf_file="/usr/share/calamares/modules/unpackfs.conf"
|
||||
sed -i "s|_root-image_|/bootmnt/${install_dir}/_ARCH_/root-image.sqfs|g" $_conf_file
|
||||
sed -i "s|_kernel_|$manjaro_kernel|g" "/usr/share/calamares/modules/initcpio.conf"
|
||||
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/xfce-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/xfce-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/gnome-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/gnome-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/cinnamon-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/cinnamon-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/openbox-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/openbox-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/mate-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/mate-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/kde-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/kde-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lxde-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/lxde-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lxqt-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/lxqt-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/enlightenment-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/enlightenment-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/pekwm-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/pekwm-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/custom-image.sqfs" ] ; then
|
||||
sed -i "s|_desktop-image_|/bootmnt/${install_dir}/_ARCH_/custom-image.sqfs|g" $_conf_file
|
||||
fi
|
||||
if [ "${arch}" == "i686" ] ; then
|
||||
sed -i "s|_ARCH_|i686|g" $_conf_file
|
||||
else
|
||||
sed -i "s|_ARCH_|x86_64|g" $_conf_file
|
||||
fi
|
||||
fi
|
31
livecd/mhwd
31
livecd/mhwd
|
@ -1,31 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
|
||||
|
||||
USENONFREE="$(kernel_cmdline nonfree no)"
|
||||
VIDEO="$(kernel_cmdline xdriver no)"
|
||||
|
||||
# hwdetect_graphics
|
||||
if [ -e "/opt/livecd/pacman-gfx.conf" ] ; then
|
||||
echo "run mhwd" >> /tmp/livecd.log
|
||||
if [ "${USENONFREE}" == "yes" ] || [ "${USENONFREE}" == "true" ]; then
|
||||
if [ "${VIDEO}" == "vesa" ]; then
|
||||
mhwd --install pci video-vesa --pmconfig "/opt/livecd/pacman-gfx.conf" &> /dev/null
|
||||
else
|
||||
mhwd --auto pci nonfree 0300 --pmconfig "/opt/livecd/pacman-gfx.conf" &> /dev/null
|
||||
fi
|
||||
else
|
||||
if [ "${VIDEO}" == "vesa" ]; then
|
||||
mhwd --install pci video-vesa --pmconfig "/opt/livecd/pacman-gfx.conf" &> /dev/null
|
||||
else
|
||||
mhwd --auto pci free 0300 --pmconfig "/opt/livecd/pacman-gfx.conf" &> /dev/null
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -e /run/openrc ]];then
|
||||
if [[ -f /etc/X11/mhwd.d/virtualbox.conf ]];then
|
||||
VBoxService &> /dev/null
|
||||
fi
|
||||
fi
|
||||
echo "MHWD DONE" > /tmp/mhwd.task
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
(sleep 15s && pulseaudio-ctl n) &
|
237
livecd/setup
237
livecd/setup
|
@ -1,237 +0,0 @@
|
|||
#!/bin/bash
|
||||
# installer wrapper
|
||||
|
||||
TITLE="Manjaro Linux Installation Framework (v0.8.7)"
|
||||
|
||||
_yes="Yes"
|
||||
_no="No"
|
||||
_cancel="Cancel"
|
||||
|
||||
ANSWER="/tmp/.setup"
|
||||
|
||||
# main menu selection tracker
|
||||
CURRENT_SELECTION=""
|
||||
|
||||
[[ -r /opt/livecd/util.sh ]] && source /opt/livecd/util.sh
|
||||
|
||||
load_config "/opt/livecd/manjaro-tools.conf"
|
||||
|
||||
[[ -r /opt/livecd/util-mnt.sh ]] && source /opt/livecd/util-mnt.sh
|
||||
[[ -r /opt/livecd/util-inst.sh ]] && source /opt/livecd/util-inst.sh
|
||||
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
|
||||
[[ -r /opt/livecd/util-common.sh ]] && source /opt/livecd/util-common.sh
|
||||
|
||||
# check if we have a internet connection
|
||||
ping_check=$(LC_ALL=C ping -c 1 www.manjaro.org | grep "1 received")
|
||||
|
||||
# list all net devices with mac adress
|
||||
net_interfaces() {
|
||||
for i in $(ls /sys/class/net); do
|
||||
echo "$i $(cat /sys/class/net/$i/address)"
|
||||
done
|
||||
}
|
||||
|
||||
# donetwork()
|
||||
# Hand-hold through setting up networking
|
||||
#
|
||||
# args: none
|
||||
# returns: 1 on failure
|
||||
donetwork() {
|
||||
NETPARAMETERS=""
|
||||
while [[ "${NETPARAMETERS}" = "" ]]; do
|
||||
# select network interface
|
||||
INTERFACE=
|
||||
S_DHCP=
|
||||
ifaces=$(net_interfaces)
|
||||
while [[ "${INTERFACE}" = "" ]]; do
|
||||
DIALOG --ok-label "Select" --menu "Select a network interface" 14 55 7 ${ifaces} 2>${ANSWER}
|
||||
case $? in
|
||||
1) return 1 ;;
|
||||
0) INTERFACE=$(cat ${ANSWER}) ;;
|
||||
esac
|
||||
done
|
||||
# wireless switch
|
||||
CONNECTION=""
|
||||
WLAN_HIDDEN=""
|
||||
WLAN_HEX=""
|
||||
WLAN_ESSID=""
|
||||
WLAN_SECURITY=""
|
||||
WLAN_KEY=""
|
||||
DIALOG --defaultno --yesno "Is your network device wireless?" 5 40
|
||||
if [[ $? -eq 0 ]]; then
|
||||
CONNECTION="wireless"
|
||||
DIALOG --defaultno --yesno "Is your wireless ESSID hexadecimal?" 5 40
|
||||
[[ $? -eq 0 ]] && WLAN_HEX="yes"
|
||||
DIALOG --inputbox "Enter your ESSID" 7 40 "MyNetwork" 2>${ANSWER} || return 1
|
||||
WLAN_ESSID=$(cat ${ANSWER})
|
||||
DIALOG --defaultno --yesno "Is your wireless network hidden?" 5 40
|
||||
[[ $? -eq 0 ]] && WLAN_HIDDEN="yes"
|
||||
DIALOG --yesno "Is your wireless network encrypted?" 5 40
|
||||
if [[ $? -eq 0 ]]; then
|
||||
while [[ "${WLAN_SECURITY}" = "" ]]; do
|
||||
DIALOG --ok-label "Select" --menu "Select encryption type" 9 40 7 \
|
||||
"wep" "WEP encryption" \
|
||||
"wpa" "WPA encryption" 2>${ANSWER}
|
||||
case $? in
|
||||
1) return 1 ;;
|
||||
0) WLAN_SECURITY=$(cat ${ANSWER}) ;;
|
||||
esac
|
||||
done
|
||||
DIALOG --inputbox "Enter your KEY" 5 40 "WirelessKey" 2>${ANSWER} || return 1
|
||||
WLAN_KEY=$(cat ${ANSWER})
|
||||
else
|
||||
WLAN_SECURITY="open"
|
||||
fi
|
||||
else
|
||||
CONNECTION="ethernet"
|
||||
fi
|
||||
# dhcp switch
|
||||
IP=""
|
||||
DHCLIENT=""
|
||||
DIALOG --yesno "Do you want to use DHCP?" 5 40
|
||||
if [[ $? -eq 0 ]]; then
|
||||
IP="dhcp"
|
||||
DIALOG --defaultno --yesno "Do you want to use dhclient instead of dhcpcd?" 5 55
|
||||
[[ $? -eq 0 ]] && DHCLIENT="yes"
|
||||
S_DHCP=1
|
||||
else
|
||||
IP="static"
|
||||
DIALOG --inputbox "Enter your IP address" 7 40 "192.168.1.23" 2>${ANSWER} || return 1
|
||||
IPADDR=$(cat ${ANSWER})
|
||||
DIALOG --inputbox "Enter your gateway" 7 40 "192.168.1.1" 2>${ANSWER} || return 1
|
||||
GW=$(cat ${ANSWER})
|
||||
DIALOG --inputbox "Enter your DNS server IP" 7 40 "192.168.1.1" 2>${ANSWER} || return 1
|
||||
DNS=$(cat ${ANSWER})
|
||||
fi
|
||||
DIALOG --yesno "Are these settings correct?\n\nInterface: ${INTERFACE}\nConnection: ${CONNECTION}\nESSID in hexadecimal: ${WLAN_HEX}\nESSID: ${WLAN_ESSID}\nHidden: ${WLAN_HIDDEN}\nEncryption: ${WLAN_SECURITY}\nKey: ${WLAN_KEY}\ndhcp or static: ${IP}\nUse dhclient: ${DHCLIENT}\nIP address: ${IPADDR}\nGateway: ${GW}\nDNS server: ${DNS}" 0 0
|
||||
case $? in
|
||||
1) ;;
|
||||
0) NETPARAMETERS="1" ;;
|
||||
esac
|
||||
done
|
||||
# profile name
|
||||
NETWORK_PROFILE=""
|
||||
DIALOG --inputbox "Enter your network profile name" 7 40 "${INTERFACE}-${CONNECTION}" 2>${ANSWER} || return 1
|
||||
NETWORK_PROFILE=/etc/network.d/$(cat ${ANSWER})
|
||||
# write profile
|
||||
echo "CONNECTION='${CONNECTION}'" >${NETWORK_PROFILE}
|
||||
echo "DESCRIPTION='$NETWORK_PROFILE generated by manjaro setup'" >>${NETWORK_PROFILE}
|
||||
echo "INTERFACE='${INTERFACE}'" >>${NETWORK_PROFILE}
|
||||
if [[ "${CONNECTION}" = "wireless" ]]; then
|
||||
echo "SECURITY='${WLAN_SECURITY}'" >>${NETWORK_PROFILE}
|
||||
[[ "${WLAN_HEX}" = "yes" ]] && echo "ESSID_TYPE='hex'" >>${NETWORK_PROFILE}
|
||||
echo "ESSID='${WLAN_ESSID}'" >>${NETWORK_PROFILE}
|
||||
echo "KEY='${WLAN_KEY}'" >>${NETWORK_PROFILE}
|
||||
[[ "${WLAN_HIDDEN}" = "yes" ]] && echo "HIDDEN=yes" >>${NETWORK_PROFILE}
|
||||
fi
|
||||
echo "IP='${IP}'" >>${NETWORK_PROFILE}
|
||||
if [[ "${IP}" = "dhcp" ]]; then
|
||||
[[ "${DHCLIENT}" = "yes" ]] && echo "DHCLIENT=yes" >>${NETWORK_PROFILE}
|
||||
else
|
||||
echo "ADDR='${IPADDR}'" >>${NETWORK_PROFILE}
|
||||
echo "GATEWAY='${GW}'" >>${NETWORK_PROFILE}
|
||||
echo "DNS=('${DNS}')" >>${NETWORK_PROFILE}
|
||||
fi
|
||||
# run netcfg
|
||||
netcfg -r $(basename ${NETWORK_PROFILE}) >${LOG}
|
||||
if [[ $? -gt 0 ]]; then
|
||||
DIALOG --msgbox "Error occured while running netcfg. (see ${LOG} for output)" 0 0
|
||||
return 1
|
||||
fi
|
||||
# http/ftp proxy settings
|
||||
DIALOG --inputbox "Enter your HTTP proxy server, for example:\nhttp://name:port\nhttp://ip:port\nhttp://username:password@ip:port\n\n Leave the field empty if no proxy is needed to install." 13 65 "" 2>${ANSWER} || return 1
|
||||
PROXY_HTTP=$(cat ${ANSWER})
|
||||
DIALOG --inputbox "Enter your FTP proxy server, for example:\nhttp://name:port\nhttp://ip:port\nhttp://username:password@ip:port\n\n Leave the field empty if no proxy is needed to install." 13 65 "" 2>${ANSWER} || return 1
|
||||
PROXY_FTP=$(cat ${ANSWER})
|
||||
if [[ "${PROXY_HTTP}" = "" ]]; then
|
||||
unset http_proxy
|
||||
else
|
||||
export http_proxy=${PROXY_HTTP}
|
||||
fi
|
||||
if [[ "${PROXY_FTP}" = "" ]]; then
|
||||
unset ftp_proxy
|
||||
else
|
||||
export ftp_proxy=${PROXY_FTP}
|
||||
fi
|
||||
DIALOG --msgbox "The network is configured." 8 30
|
||||
NEXTITEM="2"
|
||||
S_NET=1
|
||||
}
|
||||
|
||||
mainmenu()
|
||||
{
|
||||
if [ -n "$CURRENT_SELECTION" ]; then
|
||||
DEFAULT="--default-item $CURRENT_SELECTION"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
DIALOG $DEFAULT --title " ${_mainmenulabel} " \
|
||||
--menu "${_mainmenuhelp}" 16 55 8 \
|
||||
"1" "${_stableinstaller}" \
|
||||
"2" "${_testinginstaller}" \
|
||||
"3" "${_quittext}" 2>$ANSWER
|
||||
CURRENT_SELECTION="$(cat $ANSWER)"
|
||||
case $(cat $ANSWER) in
|
||||
"1")
|
||||
DIALOG --infobox "${_loadinginstaller}" 6 40
|
||||
/opt/livecd/setup-0.8
|
||||
exit 0
|
||||
;;
|
||||
"2")
|
||||
DIALOG --infobox "${_loadinginstaller}" 6 40
|
||||
/opt/livecd/setup-0.9
|
||||
exit 0
|
||||
;;
|
||||
"3")
|
||||
if DIALOG --yesno "${_exitwrapper}" 6 40;then
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if DIALOG --yesno "${_cancelwrapper}" 6 40;then
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
#####################
|
||||
## begin execution ##
|
||||
|
||||
# do UID checking here so someone can at least get usage instructions
|
||||
if [ "$EUID" != "0" ]; then
|
||||
echo "error: This script must be run as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# force to use english
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_MESSAGES=en_US.UTF-8
|
||||
|
||||
LOCALE=$(get_country)
|
||||
|
||||
# Translation
|
||||
# English
|
||||
source /opt/livecd/setup-en.lng
|
||||
# Turkish
|
||||
if [ "${LOCALE}" = "tr_TR" ]; then
|
||||
source /opt/livecd/setup-tr.lng
|
||||
fi
|
||||
|
||||
# check for pv
|
||||
if [ ! -e /usr/bin/pv ]; then
|
||||
if [ "${ping_check}" != "" ]; then
|
||||
pacman -Sy pv --noconfirm &> /dev/null
|
||||
else
|
||||
DIALOG --msgbox "Package 'pv' is missing. Connect your PC to the Internet and restart the installer!" 12 65
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
DIALOG --msgbox "${_wrapperwelcomemessage}" 12 65
|
||||
|
||||
while true; do
|
||||
mainmenu
|
||||
done
|
||||
|
||||
exit 0
|
889
livecd/setup-0.8
889
livecd/setup-0.8
|
@ -1,889 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ -r /opt/livecd/util.sh ]] && source /opt/livecd/util.sh
|
||||
|
||||
load_config "/opt/livecd/manjaro-tools.conf"
|
||||
|
||||
# Basis settings
|
||||
TITLE="Manjaro Linux Installation Framework (stable)"
|
||||
PKG_OVERLAY="/opt/livecd/pkgs"
|
||||
#DIALOGRC="./setuprc"
|
||||
|
||||
# Menu Entries
|
||||
_done_entry="DONE"
|
||||
_other_entry="OTHER"
|
||||
_none_entry="NONE"
|
||||
|
||||
ANSWER="/tmp/.setup"
|
||||
# use the first VT not dedicated to a running console
|
||||
LOG="/dev/tty8"
|
||||
# don't use /mnt because it's intended to mount other things there!
|
||||
mkdir -p /install
|
||||
DESTDIR="/install"
|
||||
arch=$(uname -m)
|
||||
EDITOR="nano"
|
||||
|
||||
# abstract the common pacman args
|
||||
PACMAN="pacman --root ${DESTDIR} --config /etc/pacman.conf --noconfirm --noprogressbar"
|
||||
PACMAN_LNG="pacman --root ${DESTDIR} --config /opt/livecd/pacman-lng.conf --noconfirm --noprogressbar"
|
||||
|
||||
# sources
|
||||
SYNC_URL=
|
||||
MIRRORLIST="/etc/pacman.d/mirrorlist"
|
||||
PACKAGES=
|
||||
|
||||
# clock
|
||||
HARDWARECLOCK="localtime"
|
||||
TIMEZONE="America/Montreal"
|
||||
|
||||
# partitions
|
||||
PART_ROOT=
|
||||
|
||||
# default filesystem specs (the + is bootable flag)
|
||||
# <mountpoint>:<partsize>:<fstype>[:+]
|
||||
DEFAULTFS="/boot:512:ext2:+ swap:256:swap /:6400:reiserfs /home:*:reiserfs"
|
||||
|
||||
# install stages
|
||||
S_SRC=0 # choose install medium
|
||||
S_NET=0 # network configuration
|
||||
S_CLOCK=0 # clock and timezone
|
||||
S_PART=0 # partitioning
|
||||
S_MKFS=0 # formatting
|
||||
S_MKFSAUTO=0 # auto fs part/formatting
|
||||
S_SELECT=0 # package selection
|
||||
S_INSTALL=0 # package installation
|
||||
S_CONFIG=0 # configuration editing
|
||||
S_GRUB=0 # TODO: kill this - if using grub
|
||||
S_BOOT="" # bootloader installed (set to loader name instead of 1)
|
||||
S_PRECONFIG=0 # pre configuration editing
|
||||
|
||||
|
||||
# main menu selection tracker
|
||||
NEXTITEM=""
|
||||
|
||||
# source /opt/livecd/functions
|
||||
[[ -r /opt/livecd/util-lng.sh ]] && source /opt/livecd/util-lng.sh
|
||||
[[ -r /opt/livecd/util-mnt.sh ]] && source /opt/livecd/util-mnt.sh
|
||||
[[ -r /opt/livecd/util-inst.sh ]] && source /opt/livecd/util-inst.sh
|
||||
[[ -r /opt/livecd/util-common.sh ]] && source /opt/livecd/util-common.sh
|
||||
|
||||
finddisks() {
|
||||
workdir="$PWD"
|
||||
cd /sys/block
|
||||
# ide devices
|
||||
for dev in $(ls | egrep '^hd'); do
|
||||
if [ "$(cat $dev/device/media)" = "disk" ]; then
|
||||
echo "/dev/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
fi
|
||||
done
|
||||
#scsi/sata devices
|
||||
for dev in $(ls | egrep '^sd'); do
|
||||
# TODO: what is the significance of 5?
|
||||
if ! [ "$(cat $dev/device/type)" = "5" ]; then
|
||||
echo "/dev/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
fi
|
||||
done
|
||||
# SD/MMC controllers
|
||||
for dev in $(ls | egrep '^mmcblk'); do
|
||||
if [ -e /sys/block/$dev ]; then
|
||||
echo "/dev/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
fi
|
||||
done
|
||||
# cciss controllers
|
||||
if [ -d /dev/cciss ] ; then
|
||||
cd /dev/cciss
|
||||
for dev in $(ls | egrep -v 'p'); do
|
||||
echo "/dev/cciss/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
done
|
||||
fi
|
||||
# Smart 2 controllers
|
||||
if [ -d /dev/ida ] ; then
|
||||
cd /dev/ida
|
||||
for dev in $(ls | egrep -v 'p'); do
|
||||
echo "/dev/ida/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
done
|
||||
fi
|
||||
|
||||
cd "$workdir"
|
||||
}
|
||||
|
||||
findpartitions() {
|
||||
workdir="$PWD"
|
||||
for devpath in $(finddisks); do
|
||||
disk=$(echo $devpath | sed 's|.*/||')
|
||||
cd /sys/block/$disk
|
||||
for part in $disk*; do
|
||||
# check if not already assembled to a raid device
|
||||
if ! [ "$(cat /proc/mdstat 2>/dev/null | grep $part)" -o "$(fstype 2>/dev/null </dev/$part | grep "lvm2")" -o "$(sfdisk -c /dev/$disk $(echo $part | sed -e "s#$disk##g") 2>/dev/null | grep "5")" ]; then
|
||||
if [ -d $part ]; then
|
||||
echo "/dev/$part"
|
||||
[ "$1" ] && echo $1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
# include any mapped devices
|
||||
for devpath in $(ls /dev/mapper 2>/dev/null | grep -v control); do
|
||||
echo "/dev/mapper/$devpath"
|
||||
[ "$1" ] && echo $1
|
||||
done
|
||||
# include any raid md devices
|
||||
for devpath in $(ls -d /dev/md* | grep '[0-9]' 2>/dev/null); do
|
||||
if cat /proc/mdstat | grep -qw $(echo $devpath | sed -e 's|/dev/||g'); then
|
||||
echo "$devpath"
|
||||
[ "$1" ] && echo $1
|
||||
fi
|
||||
done
|
||||
# inlcude cciss controllers
|
||||
if [ -d /dev/cciss ] ; then
|
||||
cd /dev/cciss
|
||||
for dev in $(ls | egrep 'p'); do
|
||||
echo "/dev/cciss/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
done
|
||||
fi
|
||||
# inlcude Smart 2 controllers
|
||||
if [ -d /dev/ida ] ; then
|
||||
cd /dev/ida
|
||||
for dev in $(ls | egrep 'p'); do
|
||||
echo "/dev/ida/$dev"
|
||||
[ "$1" ] && echo $1
|
||||
done
|
||||
fi
|
||||
cd "$workdir"
|
||||
}
|
||||
|
||||
# _mkfs()
|
||||
# Create and mount filesystems in our destination system directory.
|
||||
#
|
||||
# args:
|
||||
# domk: Whether to make the filesystem or use what is already there
|
||||
# device: Device filesystem is on
|
||||
# fstype: type of filesystem located at the device (or what to create)
|
||||
# dest: Mounting location for the destination system
|
||||
# mountpoint: Mount point inside the destination system, e.g. '/boot'
|
||||
|
||||
# returns: 1 on failure
|
||||
_mkfs() {
|
||||
local _domk=$1
|
||||
local _device=$2
|
||||
local _fstype=$3
|
||||
local _dest=$4
|
||||
local _mountpoint=$5
|
||||
|
||||
# we have two main cases: "swap" and everything else.
|
||||
if [ "${_fstype}" = "swap" ]; then
|
||||
swapoff ${_device} >/dev/null 2>&1
|
||||
if [ "${_domk}" = "yes" ]; then
|
||||
mkswap ${_device} >$LOG 2>&1
|
||||
if [ $? != 0 ]; then
|
||||
DIALOG --msgbox "${_mkswaperr} mkswap ${_device}" 0 0
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
swapon ${_device} >$LOG 2>&1
|
||||
if [ $? != 0 ]; then
|
||||
DIALOG --msgbox "${_swaponerr} swapon ${_device}" 0 0
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
# make sure the fstype is one we can handle
|
||||
local knownfs=0
|
||||
for fs in xfs jfs reiserfs ext2 ext3 ext4 btrfs; do
|
||||
[ "${_fstype}" = "${fs}" ] && knownfs=1 && break
|
||||
done
|
||||
if [ $knownfs -eq 0 ]; then
|
||||
DIALOG --msgbox "unknown fstype ${_fstype} for ${_device}" 0 0
|
||||
return 1
|
||||
fi
|
||||
# if we were tasked to create the filesystem, do so
|
||||
if [ "${_domk}" = "yes" ]; then
|
||||
local ret
|
||||
case ${_fstype} in
|
||||
xfs) mkfs.xfs -f ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
jfs) yes | mkfs.jfs ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
reiserfs) yes | mkreiserfs ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
ext2) mke2fs -F "${_device}" >$LOG 2>&1; ret=$? ;;
|
||||
ext3) mke2fs -F -j ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
ext4) mke2fs -F -t ext4 ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
nilfs2) mkfs.nilfs2 ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
btrfs) mkfs.btrfs ${_device} >$LOG 2>&1; ret=$? ;;
|
||||
# don't handle anything else here, we will error later
|
||||
esac
|
||||
if [ $ret != 0 ]; then
|
||||
DIALOG --msgbox "${_errorfscreate} ${_fstype} (${_device})" 0 0
|
||||
return 1
|
||||
fi
|
||||
sleep 2
|
||||
fi
|
||||
# create our mount directory
|
||||
mkdir -p ${_dest}${_mountpoint}
|
||||
# mount the bad boy
|
||||
mount -t ${_fstype} ${_device} ${_dest}${_mountpoint} >$LOG 2>&1
|
||||
if [ $? != 0 ]; then
|
||||
DIALOG --msgbox "${_errormounting} ${_dest}${_mountpoint}" 0 0
|
||||
return 1
|
||||
fi
|
||||
# create main system subvolume if we use btrfs for root and mount it
|
||||
if [ "${_fstype}" == "btrfs" ] && [ "${_mountpoint}" == "/" ]; then
|
||||
btrfs subvolume create ${_dest}${_mountpoint}manjaro_$arch >$LOG 2>&1
|
||||
umount ${_dest}${_mountpoint} >$LOG 2>&1
|
||||
mount -t ${_fstype} -o subvol=manjaro_$arch ${_device} ${_dest}${_mountpoint} >$LOG 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
# add to temp fstab
|
||||
local _uuid="$(getuuid ${_device})"
|
||||
if [ -n "${_uuid}" ]; then
|
||||
_device="UUID=${_uuid}"
|
||||
fi
|
||||
echo -n "${_device} ${_mountpoint} ${_fstype} defaults 0 " >>/tmp/.fstab
|
||||
|
||||
if [ "${_fstype}" = "swap" ] || [ "${_fstype}" = "btrfs" ]; then
|
||||
echo "0" >>/tmp/.fstab
|
||||
else
|
||||
echo "1" >>/tmp/.fstab
|
||||
fi
|
||||
}
|
||||
|
||||
autoprepare()
|
||||
{
|
||||
_umounthdds
|
||||
DISCS=$(finddisks)
|
||||
if [ $(echo $DISCS | wc -w) -gt 1 ]; then
|
||||
DIALOG --msgbox "${_presentlyavaildisks}\n\n$(_getavaildisks)\n" 0 0
|
||||
DIALOG --menu "${_selectdisktouse}" 14 55 7 $(finddisks _) 2>${ANSWER} || return 1
|
||||
DISC=$(cat ${ANSWER})
|
||||
else
|
||||
DISC=$DISCS
|
||||
fi
|
||||
SET_DEFAULTFS=""
|
||||
BOOT_PART_SET=""
|
||||
SWAP_PART_SET=""
|
||||
ROOT_PART_SET=""
|
||||
CHOSEN_FS=""
|
||||
# disk size in MiB
|
||||
DISC_SIZE=$(($(_getdisccapacity $DISC) / 2**20))
|
||||
while [ "$SET_DEFAULTFS" = "" ]; do
|
||||
[ "$(which mkreiserfs 2>/dev/null)" ] && FSOPTS="reiserfs Reiser3"
|
||||
[ "$(which mkfs.xfs 2>/dev/null)" ] && FSOPTS="$FSOPTS xfs XFS"
|
||||
[ "$(which mkfs.jfs 2>/dev/null)" ] && FSOPTS="$FSOPTS jfs JFS"
|
||||
[ "$(which mkfs.ext2 2>/dev/null)" ] && FSOPTS="$FSOPTS ext2 ext2 ext3 ext3 ext4 ext4"
|
||||
[ "$(which mkfs.btrfs 2>/dev/null)" ] && FSOPTS="$FSOPTS btrfs BTRFS(experimental)"
|
||||
while [ "$BOOT_PART_SET" = "" ]; do
|
||||
DIALOG --inputbox "${_enterbootpartsize}\n\n${_diskspaceleft} $DISC_SIZE MiB" 10 65 "512" 2>${ANSWER} || return 1
|
||||
BOOT_PART_SIZE="$(cat ${ANSWER})"
|
||||
if [ "$BOOT_PART_SIZE" = "" ]; then
|
||||
DIALOG --msgbox "${_errorincorrectsize}" 0 0
|
||||
else
|
||||
if [ "$BOOT_PART_SIZE" -ge "$DISC_SIZE" -o "$BOOT_PART_SIZE" -lt "150" -o "$SBOOT_PART_SIZE" = "$DISC_SIZE" ]; then
|
||||
DIALOG --msgbox "${_errorsizetoobig}" 0 0
|
||||
else
|
||||
BOOT_PART_SET=1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
DISC_SIZE=$(($DISC_SIZE-$BOOT_PART_SIZE))
|
||||
while [ "$SWAP_PART_SET" = "" ]; do
|
||||
DIALOG --inputbox "${_enterswappartsize}\n\n${_diskspaceleft} $DISC_SIZE MiB" 10 65 "256" 2>${ANSWER} || return 1
|
||||
SWAP_PART_SIZE=$(cat ${ANSWER})
|
||||
if [ "$SWAP_PART_SIZE" = "" -o "$SWAP_PART_SIZE" -le "0" ]; then
|
||||
DIALOG --msgbox "${_errorincorrectsize}" 0 0
|
||||
else
|
||||
if [ "$SWAP_PART_SIZE" -ge "$DISC_SIZE" ]; then
|
||||
DIALOG --msgbox "${_errorsizetoobig}" 0 0
|
||||
else
|
||||
SWAP_PART_SET=1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
DISC_SIZE=$(($DISC_SIZE-$SWAP_PART_SIZE))
|
||||
while [ "$ROOT_PART_SET" = "" ]; do
|
||||
DIALOG --inputbox "${_enterrootpartsize}\n\n${_diskspaceleft} $DISC_SIZE MiB" 10 65 "6400" 2>${ANSWER} || return 1
|
||||
ROOT_PART_SIZE=$(cat ${ANSWER})
|
||||
if [ "$ROOT_PART_SIZE" = "" -o "$ROOT_PART_SIZE" -le "0" ]; then
|
||||
DIALOG --msgbox "${_errorincorrectsize}" 0 0
|
||||
else
|
||||
if [ "$ROOT_PART_SIZE" -ge "$DISC_SIZE" ]; then
|
||||
DIALOG --msgbox "${_errorsizetoobig}" 0 0
|
||||
else
|
||||
DIALOG --yesno "${_homepartsize} $(($DISC_SIZE-$ROOT_PART_SIZE)) MiB. OK ?" 0 0 && ROOT_PART_SET=1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
while [ "$CHOSEN_FS" = "" ]; do
|
||||
DIALOG --menu "${_selecthomerootfs}" 13 45 6 $FSOPTS 2>${ANSWER} || return 1
|
||||
FSTYPE=$(cat ${ANSWER})
|
||||
DIALOG --yesno "$FSTYPE ${_fshomeroottobeused}" 0 0 && CHOSEN_FS=1
|
||||
done
|
||||
SET_DEFAULTFS=1
|
||||
done
|
||||
|
||||
DIALOG --defaultno --yesno "$DISC ${_willbeerased}" 0 0 || return 1
|
||||
|
||||
DEVICE=$DISC
|
||||
FSSPECS=$(echo $DEFAULTFS | sed -e "s|/:6400:reiserfs|/:$ROOT_PART_SIZE:$FSTYPE|g" -e "s|/home:\*:reiserfs|/home:\*:$FSTYPE|g" -e "s|swap:256|swap:$SWAP_PART_SIZE|g" -e "s|/boot:512|/boot:$BOOT_PART_SIZE|g")
|
||||
sfdisk_input=""
|
||||
|
||||
case "${DEVICE}" in
|
||||
*mmcblk*)
|
||||
PART_ROOT="${DEVICE}p3"
|
||||
swap_partition="${DEVICE}p2"
|
||||
;;
|
||||
*)
|
||||
# we assume a /dev/hdX format (or /dev/sdX)
|
||||
PART_ROOT="${DEVICE}3"
|
||||
swap_partition="${DEVICE}2"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$S_MKFS" = "1" ]; then
|
||||
DIALOG --msgbox "${_alreadyprepparts}" 0 0
|
||||
return 0
|
||||
fi
|
||||
|
||||
# validate DEVICE
|
||||
if [ ! -b "$DEVICE" ]; then
|
||||
DIALOG --msgbox "${_invaliddevice} '$DEVICE'" 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
# validate DEST
|
||||
if [ ! -d "$DESTDIR" ]; then
|
||||
DIALOG --msgbox "${_invaliddestdir} '$DESTDIR'" 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
# / required
|
||||
if [ $(echo $FSSPECS | grep '/:' | wc -l) -ne 1 ]; then
|
||||
DIALOG --msgbox "${_onlyonerootpart}" 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
rm -f /tmp/.fstab
|
||||
|
||||
_umountall
|
||||
|
||||
# setup input var for sfdisk
|
||||
for fsspec in $FSSPECS; do
|
||||
fssize=$(echo $fsspec | tr -d ' ' | cut -f2 -d:)
|
||||
if [ "$fssize" = "*" ]; then
|
||||
fssize_spec=';'
|
||||
else
|
||||
fssize_spec=",$fssize"
|
||||
fi
|
||||
fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:)
|
||||
if [ "$fstype" = "swap" ]; then
|
||||
fstype_spec=",S"
|
||||
else
|
||||
fstype_spec=","
|
||||
fi
|
||||
bootflag=$(echo $fsspec | tr -d ' ' | cut -f4 -d:)
|
||||
if [ "$bootflag" = "+" ]; then
|
||||
bootflag_spec=",*"
|
||||
else
|
||||
bootflag_spec=""
|
||||
fi
|
||||
|
||||
sfdisk_input="${sfdisk_input}${fssize_spec}${fstype_spec}${bootflag_spec}\n"
|
||||
done
|
||||
sfdisk_input=$(printf "$sfdisk_input")
|
||||
|
||||
# invoke sfdisk
|
||||
printk off
|
||||
DIALOG --infobox "${_partitioningdev} $DEVICE" 0 0
|
||||
sfdisk $DEVICE -uM -D >$LOG 2>&1 <<EOF
|
||||
$sfdisk_input
|
||||
EOF
|
||||
if [ $? -gt 0 ]; then
|
||||
DIALOG --msgbox "${_errorpartitioningdev} $DEVICE (${_errordetails} $LOG)" 0 0
|
||||
printk on
|
||||
return 1
|
||||
fi
|
||||
printk on
|
||||
|
||||
# need to mount root first, then do it again for the others
|
||||
part=1
|
||||
for fsspec in $FSSPECS; do
|
||||
mountpoint=$(echo $fsspec | tr -d ' ' | cut -f1 -d:)
|
||||
fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:)
|
||||
if echo $mountpoint | tr -d ' ' | grep '^/$' 2>&1 > /dev/null; then
|
||||
_mkfs yes ${DEVICE}${part} "$fstype" "$DESTDIR" "$mountpoint" || return 1
|
||||
fi
|
||||
part=$(($part + 1))
|
||||
done
|
||||
|
||||
# make other filesystems
|
||||
part=1
|
||||
for fsspec in $FSSPECS; do
|
||||
mountpoint=$(echo $fsspec | tr -d ' ' | cut -f1 -d:)
|
||||
fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:)
|
||||
if [ $(echo $mountpoint | tr -d ' ' | grep '^/$' | wc -l) -eq 0 ]; then
|
||||
_mkfs yes ${DEVICE}${part} "$fstype" "$DESTDIR" "$mountpoint" || return 1
|
||||
fi
|
||||
part=$(($part + 1))
|
||||
done
|
||||
|
||||
DIALOG --msgbox "${_preparationfinished}" 0 0
|
||||
S_MKFSAUTO=1
|
||||
}
|
||||
|
||||
partition() {
|
||||
if [ "$S_MKFSAUTO" = "1" ]; then
|
||||
DIALOG --msgbox "${_partsalreadyprepared}" 0 0
|
||||
return 0
|
||||
fi
|
||||
|
||||
_umountall
|
||||
_umounthdds
|
||||
|
||||
# Select disk to partition
|
||||
DISCS=$(finddisks _)
|
||||
DISCS="$DISCS ${_other_entry} - ${_done_entry} +"
|
||||
DIALOG --msgbox "${_presentlyavaildisks}\n\n$(_getavaildisks)\n" 0 0
|
||||
DISC=""
|
||||
while true; do
|
||||
# Prompt the user with a list of known disks
|
||||
DIALOG --menu "${_selectdisktopart1}${_done_entry}${_selectdisktopart2}" 14 55 7 $DISCS 2>${ANSWER} || return 1
|
||||
DISC=$(cat ${ANSWER})
|
||||
if [ "$DISC" = "$_other_entry" ]; then
|
||||
DIALOG --inputbox "${_enterdiskpath}" 8 65 "/dev/sda" 2>${ANSWER} || return 1
|
||||
DISC=$(cat ${ANSWER})
|
||||
fi
|
||||
# Leave our loop if the user is done partitioning
|
||||
[ "$DISC" = "$_done_entry" ] && break
|
||||
# Partition disc
|
||||
DIALOG --msgbox "${_prepartitionmessage}" 18 70
|
||||
cfdisk $DISC
|
||||
done
|
||||
S_PART=1
|
||||
}
|
||||
|
||||
mountpoints() {
|
||||
if [ "$S_MKFSAUTO" = "1" ]; then
|
||||
DIALOG --msgbox "${_alreadyprepparts}" 0 0
|
||||
return 0
|
||||
fi
|
||||
while [ "$PARTFINISH" != "$_done_entry" ]; do
|
||||
: >/tmp/.fstab
|
||||
: >/tmp/.parts
|
||||
|
||||
# Determine which filesystems are available
|
||||
[ "$(which mkreiserfs 2>/dev/null)" ] && FSOPTS="reiserfs Reiser3"
|
||||
[ "$(which mkfs.xfs 2>/dev/null)" ] && FSOPTS="$FSOPTS xfs XFS"
|
||||
[ "$(which mkfs.jfs 2>/dev/null)" ] && FSOPTS="$FSOPTS jfs JFS"
|
||||
[ "$(which mkfs.ext2 2>/dev/null)" ] && FSOPTS="$FSOPTS ext2 ext2 ext3 ext3 ext4 ext4"
|
||||
[ "$(which mkfs.btrfs 2>/dev/null)" ] && FSOPTS="$FSOPTS btrfs BTRFS(experimental)"
|
||||
|
||||
# Select mountpoints
|
||||
DIALOG --msgbox "${_nowchooseparts2use}" 0 0
|
||||
DIALOG --msgbox "${_presentlyavaildisks}\n\n$(_getavaildisks)\n" 0 0
|
||||
PARTS=$(findpartitions _)
|
||||
DIALOG --menu "${_selectswappart}" 21 50 13 ${_none_entry} - $PARTS 2>${ANSWER} || return 1
|
||||
PART=$(cat ${ANSWER})
|
||||
swap_partition="$PART"
|
||||
PARTS="$(echo $PARTS | sed -e "s#${PART}\ _##g")"
|
||||
if [ "$PART" != "${_none_entry}" ]; then
|
||||
DOMKFS="no"
|
||||
DIALOG --yesno "${_formatpart} $PART ?\n\n(${_allcontentswillbelost})" 0 0 && DOMKFS="yes"
|
||||
echo "$PART:swap:swap:$DOMKFS" >>/tmp/.parts
|
||||
fi
|
||||
|
||||
DIALOG --menu "${_selecttherootpart}" 21 50 13 $PARTS 2>${ANSWER} || return 1
|
||||
PART=$(cat ${ANSWER})
|
||||
PARTS="$(echo $PARTS | sed -e "s#${PART}\ _##g")"
|
||||
PART_ROOT=$PART
|
||||
# Select root filesystem type
|
||||
DIALOG --menu "${_selectfsfor} $PART" 15 60 6 $FSOPTS 2>${ANSWER} || return 1
|
||||
FSTYPE=$(cat ${ANSWER})
|
||||
DOMKFS="no"
|
||||
DIALOG --yesno "${_formatpart} $PART ?\n\n(${_allcontentswillbelost})" 0 0 && DOMKFS="yes"
|
||||
echo "$PART:$FSTYPE:/:$DOMKFS" >>/tmp/.parts
|
||||
|
||||
#
|
||||
# Additional partitions
|
||||
#
|
||||
DIALOG --menu "${_wannamountotherparts}" 21 50 13 $PARTS ${_done_entry} _ 2>${ANSWER} || return 1
|
||||
PART=$(cat ${ANSWER})
|
||||
while [ "$PART" != "$_done_entry" ]; do
|
||||
PARTS="$(echo $PARTS | sed -e "s#${PART}\ _##g")"
|
||||
# Select a filesystem type
|
||||
DIALOG --menu "${_selectfsfor} $PART" 15 60 6 $FSOPTS 2>${ANSWER} || return 1
|
||||
FSTYPE=$(cat ${ANSWER})
|
||||
MP=""
|
||||
while [ "${MP}" = "" ]; do
|
||||
DIALOG --inputbox "${_selectmpoint} $PART" 8 65 "/boot" 2>${ANSWER} || return 1
|
||||
MP=$(cat ${ANSWER})
|
||||
if grep ":$MP:" /tmp/.parts; then
|
||||
DIALOG --msgbox "${_twopartsonamp}" 8 65
|
||||
MP=""
|
||||
fi
|
||||
done
|
||||
DOMKFS="no"
|
||||
DIALOG --yesno "${_formatpart} $PART ?\n\n(${_allcontentswillbelost})" 0 0 && DOMKFS="yes"
|
||||
echo "$PART:$FSTYPE:$MP:$DOMKFS" >>/tmp/.parts
|
||||
DIALOG --menu "${_wannamountotherparts}" 21 50 13 $PARTS ${_done_entry} _ 2>${ANSWER} || return 1
|
||||
PART=$(cat ${ANSWER})
|
||||
done
|
||||
DIALOG --yesno "${_formatconfirmmessage}\n\n$(for i in $(cat /tmp/.parts); do echo "$i\n";done)" 18 0 && PARTFINISH="$_done_entry"
|
||||
done
|
||||
|
||||
_umountall
|
||||
|
||||
for line in $(cat /tmp/.parts); do
|
||||
PART=$(echo $line | cut -d: -f 1)
|
||||
FSTYPE=$(echo $line | cut -d: -f 2)
|
||||
MP=$(echo $line | cut -d: -f 3)
|
||||
DOMKFS=$(echo $line | cut -d: -f 4)
|
||||
umount ${DESTDIR}${MP}
|
||||
if [ "$DOMKFS" = "yes" ]; then
|
||||
if [ "$FSTYPE" = "swap" ]; then
|
||||
DIALOG --infobox "${_creatingactswap} $PART" 0 0
|
||||
else
|
||||
DIALOG --infobox "${_formattingpart} $PART ($FSTYPE), ${_mountingparton} ${DESTDIR}${MP}" 0 0
|
||||
fi
|
||||
_mkfs yes $PART $FSTYPE $DESTDIR $MP || return 1
|
||||
else
|
||||
if [ "$FSTYPE" = "swap" ]; then
|
||||
DIALOG --infobox "${_activatingswapon} $PART" 0 0
|
||||
else
|
||||
DIALOG --infobox "${_mountingpart} $PART ⇒ ${DESTDIR}${MP}" 0 0
|
||||
fi
|
||||
_mkfs no $PART $FSTYPE $DESTDIR $MP || return 1
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
|
||||
DIALOG --msgbox "${_partsmountsuccess}" 0 0
|
||||
S_MKFS=1
|
||||
}
|
||||
|
||||
# auto_fstab()
|
||||
# preprocess fstab file
|
||||
# comments out old fields and inserts new ones
|
||||
# according to partitioning/formatting stage
|
||||
#
|
||||
auto_fstab()
|
||||
{
|
||||
if [ "$S_MKFS" = "1" -o "$S_MKFSAUTO" = "1" ]; then
|
||||
if [ -f /tmp/.fstab ]; then
|
||||
# comment out stray /dev entries
|
||||
sed -i 's/^\/dev/#\/dev/g' $DESTDIR/etc/fstab
|
||||
# append entries from new configuration
|
||||
sort /tmp/.fstab >>$DESTDIR/etc/fstab
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
dogrub() {
|
||||
GRUB_SET=""
|
||||
local grubmenu="/boot/grub/grub.cfg"
|
||||
if [ ! -f /usr/bin/grub-install ]; then
|
||||
DIALOG --msgbox "${_isgrubinst} $grubmenu" 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
DEVS=$(finddisks _)
|
||||
DEVS="$DEVS $(findpartitions _)"
|
||||
if [ "$DEVS" = "" ]; then
|
||||
DIALOG --msgbox "${_nohdfound}" 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
# look for a separately-mounted /boot partition
|
||||
bootpart=$(mount | grep $DESTDIR/boot | cut -d' ' -f 1)
|
||||
if [ "$bootpart" = "" ]; then
|
||||
if [ "$PART_ROOT" = "" ]; then
|
||||
DIALOG --inputbox "${_enterrootdevpath}" 8 65 "/dev/sda3" 2>${ANSWER} || return 1
|
||||
bootpart=$(cat ${ANSWER})
|
||||
else
|
||||
bootpart=$PART_ROOT
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$bootpart" = "" ]; then
|
||||
DIALOG --msgbox "${_missingrootpart} $bootpart" 0 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
targetpart=$(echo ${bootpart} | cut -b1-8)
|
||||
|
||||
# freeze xfs filesystems if any, to enable grub installation on xfs filesystems
|
||||
if [ -x /usr/bin/xfs_freeze ]; then
|
||||
if [ "$(blkid -o value -s TYPE -p $(findmnt -o source -n $DESTDIR/boot))" == "xfs" ];then
|
||||
/usr/bin/xfs_freeze -f $DESTDIR/boot > /dev/null 2>&1
|
||||
unfreezeboot=y
|
||||
fi
|
||||
if [ "$(blkid -o value -s TYPE -p $(findmnt -o source -n $DESTDIR))" == "xfs" ];then
|
||||
/usr/bin/xfs_freeze -f $DESTDIR/ > /dev/null 2>&1
|
||||
unfreezeroot=y
|
||||
fi
|
||||
fi
|
||||
|
||||
while [ "$GRUB_SET" = "" ]; do
|
||||
DIALOG --yesno "$_installgrubdl1 ${bootpart}\n$_installgrubdl2 ${targetpart}\n$_installgrubdl3" 10 65 && GRUB_SET=1
|
||||
if [ "$GRUB_SET" = "" ]; then
|
||||
DIALOG --inputbox "${_whereinststage1}" 8 65 "/dev/sda" 2>${ANSWER} || return 1
|
||||
targetpart=$(cat ${ANSWER})
|
||||
fi
|
||||
done
|
||||
|
||||
chroot_mount
|
||||
|
||||
#Install grub2
|
||||
DIALOG --infobox "${_installinggrub}" 6 40
|
||||
echo "grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --boot-directory=/boot --recheck ${targetpart}" > /tmp/grub.log 2>&1
|
||||
chroot ${DESTDIR} grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --boot-directory=/boot --recheck ${targetpart} >> /tmp/grub.log 2>&1
|
||||
chroot_umount
|
||||
|
||||
GRUB_PREFIX_DIR="boot/grub"
|
||||
dogrub_mkconfig
|
||||
|
||||
# unfreeze xfs filesystems if any
|
||||
if [ -x /usr/bin/xfs_freeze ]; then
|
||||
[ -z "$unfreezeboot" ] && /usr/bin/xfs_freeze -u $DESTDIR/boot > /dev/null 2>&1
|
||||
[ -z "$unfreezeroot" ] && /usr/bin/xfs_freeze -u $DESTDIR/ > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
cat /tmp/grub.log >$LOG
|
||||
|
||||
if grep "error:" /tmp/grub.log >/dev/null; then
|
||||
DIALOG --msgbox "${_errorinstgrub} (${_errordetails} $LOG)" 0 0
|
||||
return 1
|
||||
fi
|
||||
DIALOG --msgbox "${_instgrubsuccess}" 6 40
|
||||
S_GRUB=1
|
||||
}
|
||||
|
||||
prepare_harddrive()
|
||||
{
|
||||
S_MKFSAUTO=0
|
||||
S_MKFS=0
|
||||
DONE=0
|
||||
NEXTITEM=""
|
||||
CANCEL="1"
|
||||
while [[ "${DONE}" = "0" ]]; do
|
||||
if [[ -n "${NEXTITEM}" ]]; then
|
||||
DEFAULT="--default-item ${NEXTITEM}"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
DIALOG $DEFAULT --menu "${_diskpreparation}" 12 60 5 \
|
||||
"1" "${_assistprepa}" \
|
||||
"2" "${_manualpartit}" \
|
||||
"3" "${_mainmenulabel}" 2>${ANSWER} || CANCEL="1"
|
||||
NEXTITEM="$(cat ${ANSWER})"
|
||||
case $(cat ${ANSWER}) in
|
||||
"1")
|
||||
autoprepare
|
||||
CANCEL="0"
|
||||
_hd_is_prepared=1
|
||||
NEXTITEM="3";;
|
||||
"2")
|
||||
partition
|
||||
PARTFINISH=""
|
||||
mountpoints
|
||||
CANCEL="0"
|
||||
_hd_is_prepared=1
|
||||
NEXTITEM="3";;
|
||||
*)
|
||||
DONE=1 ;;
|
||||
esac
|
||||
done
|
||||
if [[ "${CANCEL}" = "1" ]]; then
|
||||
NEXTITEM="2"
|
||||
else
|
||||
NEXTITEM="3"
|
||||
fi
|
||||
}
|
||||
|
||||
configure_system()
|
||||
{
|
||||
## PREPROCESSING ##
|
||||
# only done on first invocation of configure_system
|
||||
if [ $S_PRECONFIG -eq 0 ]; then
|
||||
#edit /etc/locale.conf & /etc/environment
|
||||
echo "LANG=${LOCALE}.UTF-8" > ${DESTDIR}/etc/locale.conf
|
||||
echo "LC_COLLATE=C" >> ${DESTDIR}/etc/locale.conf
|
||||
echo "LANG=${LOCALE}.UTF-8" >> ${DESTDIR}/etc/environment
|
||||
|
||||
# add BROWSER var
|
||||
if [ -e "${DESTDIR}/usr/bin/firefox" ] ; then
|
||||
echo "BROWSER=/usr/bin/firefox" >> ${DESTDIR}/etc/environment
|
||||
fi
|
||||
|
||||
#edit /etc/mkinitcpio.conf to have external bootup from pcmcia and resume support
|
||||
HOOKS=`cat /etc/mkinitcpio.conf | grep HOOKS= | grep -v '#' | cut -d'"' -f2 | sed 's/filesystems/pcmcia resume filesystems/g'`
|
||||
if [ -e ${DESTDIR}/etc/plymouth/plymouthd.conf ] ; then
|
||||
sed -i -e "s/^HOOKS=.*/HOOKS=\"${HOOKS} plymouth\"/g" ${DESTDIR}/etc/mkinitcpio.conf
|
||||
fi
|
||||
|
||||
# Determind which language we are using
|
||||
set_locale
|
||||
fi
|
||||
|
||||
S_PRECONFIG=1
|
||||
## END PREPROCESS ##
|
||||
|
||||
DONE=0
|
||||
DONE_CONFIG=""
|
||||
NEXTITEM=""
|
||||
while [[ "${DONE}" = "0" ]]; do
|
||||
if [[ -n "${NEXTITEM}" ]]; then
|
||||
DEFAULT="--default-item ${NEXTITEM}"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
|
||||
DIALOG $DEFAULT --menu "Configuration" 17 78 10 \
|
||||
"Root-Password" "${_definerootpass}" \
|
||||
"Setup-User" "${_defineuser}" \
|
||||
"Setup-Locale" "${_definelocale}" \
|
||||
"Setup-Keymap" "${_definekeymap}" \
|
||||
"Config-System" "${_doeditconfig}" \
|
||||
"${_return_label}" "${_mainmenulabel}" 2>${ANSWER} || NEXTITEM="${_return_label}"
|
||||
NEXTITEM="$(cat ${ANSWER})"
|
||||
|
||||
case $(cat ${ANSWER}) in
|
||||
"Root-Password")
|
||||
PASSWDUSER="root"
|
||||
set_passwd
|
||||
echo "$PASSWDUSER:$PASSWD" | chroot ${DESTDIR} chpasswd
|
||||
DONE_CONFIG="1"
|
||||
NEXTITEM="Setup-User" ;;
|
||||
"Setup-User")
|
||||
_setup_user && NEXTITEM="Setup-User" ;;
|
||||
"Setup-Locale")
|
||||
set_language && NEXTITEM="Setup-Locale" ;;
|
||||
"Setup-Keymap")
|
||||
set_keyboard && NEXTITEM="Setup-Keymap" ;;
|
||||
"Config-System")
|
||||
_config_system && NEXTITEM="${_return_label}" ;;
|
||||
"${_return_label}")
|
||||
DONE="1" ;;
|
||||
*)
|
||||
DONE="1" ;;
|
||||
esac
|
||||
done
|
||||
if [[ "${DONE_CONFIG}" = "1" ]]; then
|
||||
_post_process
|
||||
else
|
||||
NEXTITEM="4"
|
||||
fi
|
||||
}
|
||||
|
||||
install_bootloader()
|
||||
{
|
||||
DIALOG --colors --menu "${_installabootloader}\n\n" \
|
||||
10 65 2 \
|
||||
"GRUB" "${_installgrubbl}" \
|
||||
"${_none_label}" "${_installnobl}" 2>${ANSWER} || CANCEL=1
|
||||
case $(cat ${ANSWER}) in
|
||||
"GRUB") dogrub ;;
|
||||
esac
|
||||
if [[ "${CANCEL}" = "1" ]]; then
|
||||
NEXTITEM="5"
|
||||
else
|
||||
NEXTITEM="6"
|
||||
fi
|
||||
}
|
||||
|
||||
mainmenu()
|
||||
{
|
||||
if [ -n "${NEXTITEM}" ]; then
|
||||
DEFAULT="--default-item ${NEXTITEM}"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
DIALOG $DEFAULT --title " ${_mainmenulabel} " \
|
||||
--menu "${_mainmenuhelp}" 16 55 8 \
|
||||
"1" "${_datetimetext}" \
|
||||
"2" "${_preparediskstext}" \
|
||||
"3" "${_installsystemtext}" \
|
||||
"4" "${_configuresystemtext}" \
|
||||
"5" "${_instbootloadertext}" \
|
||||
"6" "${_quittext}" 2>${ANSWER}
|
||||
NEXTITEM="$(cat ${ANSWER})"
|
||||
case $(cat ${ANSWER}) in
|
||||
"1")
|
||||
set_clock ;;
|
||||
"2")
|
||||
prepare_harddrive
|
||||
;;
|
||||
"3")
|
||||
if [ "$_hd_is_prepared" == "1" ];then
|
||||
installsystem
|
||||
else
|
||||
DIALOG --msgbox "$_forgotpreparehd" 10 40
|
||||
fi
|
||||
;;
|
||||
"4")
|
||||
if [ "$_system_is_installed" == "1" ];then
|
||||
configure_system
|
||||
else
|
||||
DIALOG --msgbox "$_forgotinstalling" 10 40
|
||||
fi
|
||||
;;
|
||||
"5")
|
||||
if [ "$_system_is_configured" == "1" ];then
|
||||
install_bootloader
|
||||
else
|
||||
DIALOG --msgbox "$_forgotsystemconf" 10 40
|
||||
fi
|
||||
;;
|
||||
"6")
|
||||
DIALOG --infobox "${_installationfinished}" 6 40
|
||||
mkdir -p ${DESTDIR}/var/log/${manjaroiso}
|
||||
cp /tmp/*.log ${DESTDIR}/var/log/${manjaroiso} &>/dev/null
|
||||
cp /var/log/pacman.log ${DESTDIR}/var/log/${manjaroiso}/pacman-live.log &>/dev/null
|
||||
_umountall &>/dev/null ; sleep 1 ; exit 0
|
||||
;;
|
||||
*)
|
||||
if DIALOG --yesno "${_cancelinstall}" 6 40;then
|
||||
_umountall &>/dev/null ; exit 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
#####################
|
||||
## begin execution ##
|
||||
|
||||
# do UID checking here so someone can at least get usage instructions
|
||||
if [ "$EUID" != "0" ]; then
|
||||
echo "error: This script must be run as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# force to use english
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_MESSAGES=en_US.UTF-8
|
||||
|
||||
# kernel_cmdline
|
||||
CONSOLEFONT="$(kernel_cmdline vconsole.font)"
|
||||
CONSOLEMAP="$(kernel_cmdline vconsole.font.map)"
|
||||
USENONFREE="$(kernel_cmdline nonfree no)"
|
||||
VIDEO="$(kernel_cmdline xdriver no)"
|
||||
|
||||
# Translation
|
||||
LOCALE=$(get_country)
|
||||
|
||||
# English
|
||||
source /opt/livecd/setup-0.8-en.lng
|
||||
# Turkish
|
||||
if [ "${LOCALE}" = "tr_TR" ]; then
|
||||
source /opt/livecd/setup-0.8-tr.lng
|
||||
fi
|
||||
|
||||
DIALOG --msgbox "${_instwelcomemessage}" 12 65
|
||||
|
||||
while true; do
|
||||
mainmenu
|
||||
done
|
||||
|
||||
exit 0
|
|
@ -1,177 +0,0 @@
|
|||
# Translation
|
||||
_yes="Yes"
|
||||
_no="No"
|
||||
_cancel="Cancel"
|
||||
_continue_label="Continue"
|
||||
_grubdetectdisks="Generating GRUB2 device map...\n\n Please be patient."
|
||||
_errorfscreate="Error creating filesystem"
|
||||
_errormounting="Error mounting"
|
||||
_mkswaperr="Error creating swap:"
|
||||
_swaponerr="Error activating swap:"
|
||||
_umountingall="Disabling swapspace, unmounting already mounted disk devices..."
|
||||
_presentlyavaildisks="Available disks:"
|
||||
_selectdisktouse="Select the hard drive to use"
|
||||
_enterbootpartsize="Enter the size (MiB) of your /boot partition. Minimum is 150."
|
||||
_diskspaceleft="Disk space left:"
|
||||
_errorincorrectsize="ERROR: You entered an invalid size, please enter again."
|
||||
_errorsizetoobig="ERROR: You entered a too small or large size, please enter again."
|
||||
_enterswappartsize="Enter the size (MiB) of your swap partition."
|
||||
_enterrootpartsize="Enter the size (MiB) of your / (root) partition. The /home partition will use the remaining space."
|
||||
_homepartsize="Size of /home partition:"
|
||||
_selecthomerootfs="Select a filesystem for / and /home partitions:"
|
||||
_fshomeroottobeused="will be used for / and /home. OK?"
|
||||
_willbeerased='will be COMPLETELY ERASED! Proceed?'
|
||||
_alreadyprepparts='You have already prepared your partitions!'
|
||||
_invaliddevice="Invalid device:"
|
||||
_invaliddestdir="Destination directory invalid:"
|
||||
_onlyonerootpart="We need exactly one root partition"
|
||||
_partitioningdev="Partitioning"
|
||||
_errorpartitioningdev="Error partitioning"
|
||||
_errordetails="Details displayed on"
|
||||
_preparationfinished='Preparation finished !'
|
||||
_partsalreadyprepared='You have already prepared your filesystems !'
|
||||
_selectdisktopart1="Select the disk to partition (or "
|
||||
_selectdisktopart2=" when you have finished)"
|
||||
_enterdiskpath="Enter the full path to the device you wish to partition"
|
||||
_prepartitionmessage="You will now partition the selected disk with cfdisk.\nIf it asks you to reboot, do it, launch this program again and restart installation."
|
||||
_nowchooseparts2use="You will now select the partitions to use."
|
||||
_selectswappart="Select the partition to use as swap"
|
||||
_formatpart="Format"
|
||||
_allcontentswillbelost='Its contents will be erased!'
|
||||
_selecttherootpart="Select the partition for / (root)"
|
||||
_selectfsfor="Select the filesystem for"
|
||||
_wannamountotherparts="Do you want to mount other static partitions at bootup ? (optional)"
|
||||
_selectmpoint="Select the mountpoint (directory) for"
|
||||
_twopartsonamp='ERROR: two partitions on the same directory!'
|
||||
_formatconfirmmessage="Continue?\n\nSyntax\n------\nDEVICE:TYPE:MOUNTPOINT:FORMAT"
|
||||
_creatingactswap="Creating and activating swap on"
|
||||
_activatingswapon="Activating swap on"
|
||||
_formattingpart="Formatting"
|
||||
_mountingparton="mounting on"
|
||||
_mountingpart="Mounting"
|
||||
_partsmountsuccess="Partitions were successfully mounted."
|
||||
|
||||
_givecorrectname="Please enter a valid username.\n ==> Tip: lowercase, can't start with a figure"
|
||||
_givename="Enter the new username"
|
||||
_givepass="Type the pasword for the new user :"
|
||||
_addsudouserdl1="Should User \""
|
||||
_addsudouserdl2="\" get sudo rights?"
|
||||
|
||||
_installchoice='Do you want to use "unsquashfs" to install your system?\n\nIt is the standard and fastest option to unpack our "sqf-files" to your harddrive. At least 1 GB of memory (RAM) should be installed on your system (additional RAM is recommended).\n\nIf you want to use "cp" instead, answer with "No" and continue your installation.\n\nNext step will start the installation. Please be patient!'
|
||||
_installationwillstart='Installation will now start. Please be patient!'
|
||||
_installationinprogress="Installation in progress..."
|
||||
_installationfail='Installation failed!'
|
||||
_installationsuccess='Installation succeeded!'
|
||||
|
||||
_configuringsystem="Configuration in progress..."
|
||||
_addonsinsttitle=" ==== Addons installation ===="
|
||||
_wichaddonsinstall="Which addons do you want to install?"
|
||||
_whichaddonsinst1='1) Choose among available installable addons'
|
||||
_whichaddonsinst2='2) Install installable addons among currently mounted addons'
|
||||
_whichaddonsinstn="n) Don't install any add-on"
|
||||
_installthisaddon="install? [y/N]"
|
||||
_addoninstalled="installed."
|
||||
_wantcplivehome="Do you want to copy the current personal folder into the installation? [y/n]"
|
||||
_wantcplivechg="Do you want to copy into the installation the changes done in live? [y/n]"
|
||||
_livechg_rwroot="This means the contents of your rwroot folder."
|
||||
_pressentercont="Press enter to continue..."
|
||||
|
||||
_isgrubinst="Is GRUB2 installed? Cannot find"
|
||||
_autodetectrootfail="Root partition autodetection failed. Modify manually"
|
||||
_youwilleditmenulst="You will now edit the GRUB2 configuration file (grub.cfg). You just have to check, everything should be already configured."
|
||||
_nohdfound="No hard disk found"
|
||||
_whereinststage1="Where do you want to install GRUB2's stage1? (most of the time on the MBR, i.e. /dev/sda)."
|
||||
_installinggrub="Installing GRUB2..."
|
||||
_missingrootpart="Error: missing/invalid root device:"
|
||||
_cannotfindgrub="GRUB2 root and setup devices could not be auto-located. You will need to manually run the GRUB2 shell to install a bootloader."
|
||||
_bootsonanydisk="useful if you change your hard disk/mainboard"
|
||||
_chainloadexpl="Optional entry for the system on sda1"
|
||||
_enterrootdevpath="Enter the path of the root partition"
|
||||
_errorinstgrub="Error installing GRUB2."
|
||||
_instgrubsuccess="GRUB2 successfully installed."
|
||||
|
||||
_machinetimezone="Set the machine time to UTC universal time (recommended) or local time (if you have a dual-boot with a system requiring it)?"
|
||||
_selectregion="Please select a region"
|
||||
_selecttimezone="Please select a timezone"
|
||||
_choosedatetime="Set the date.\nUse <TAB> to navigate and arrow keys to change values."
|
||||
_choosehourtime="Set the time.\nUse <TAB> to navigate and up/down to change values."
|
||||
|
||||
_diskpreparation="Hard disk(s) preparation"
|
||||
_assistprepa="Assisted preparation (erases the whole disk)"
|
||||
_manualpartit="Partition by hand and choose the partitions to use"
|
||||
_mainmenulabel="Main menu"
|
||||
_runninginitcpio="Running mkinitcpio..."
|
||||
_runninginitcpiotitle="Building initramfs image..."
|
||||
_mkinitcpiofailerror="ERROR - You will have to run mkinitcpio by hand, either way the system may not boot."
|
||||
|
||||
_localegen="Generating locales..."
|
||||
_syncpacmandb="Synchronising pacman databases..."
|
||||
_updatemirrorlist="Updating pacman mirrorlist..."
|
||||
_setupalsa="Configuring ALSA..."
|
||||
_installvideodriver="MHWD is installing your video driver(s)..."
|
||||
_setupsystemd="Configuring SystemD..."
|
||||
_setupopenrc="Configuring OpenRC..."
|
||||
_setupdisplaymanager="Configuring the display manager..."
|
||||
_fixapps="Fixing some applications..."
|
||||
|
||||
_unsquash_dialog_title="Installing system files..."
|
||||
_unsquash_dialog_info1="Unsquashing archive:"
|
||||
_unsquash_dialog_info2="\nPlease wait..."
|
||||
_unsquasherror_title="Unsquashing failed..."
|
||||
|
||||
_passwdtitle="Password setup..."
|
||||
_passwddl="Enter your password for:"
|
||||
_passwddl1="Enter your password for:"
|
||||
_passwddl2="Re-Enter your password for:"
|
||||
_passwddl3="Password don't match!\nRe-Enter your password for:"
|
||||
|
||||
_definerootpass="Change root password"
|
||||
_defineuser="Setup user account(s)"
|
||||
_defineuserpass="Change user password"
|
||||
_definelocale="Change locale (optional)"
|
||||
_definekeymap="Change vconsole keymap (optional)"
|
||||
_enterusername="Enter user account name..."
|
||||
_doeditconfig="Edit system configuration (optional)"
|
||||
_return_label="Back"
|
||||
_rcconftext="Main system configuration"
|
||||
_fstabtext="Mount points (please check)"
|
||||
_mkinitcpioconftext="Initramfs config (can be lightened)"
|
||||
_rcconfigtext="Configure openrc"
|
||||
_modulesconftext="Configure kernel modules"
|
||||
_hwclockconftext="Configure hwclock"
|
||||
_modprobeconftext="Module options (special cases only)"
|
||||
_resolvconftext="DNS servers (managed by networkmanager)"
|
||||
_hostnametext="Network hostname (Systems hostname)"
|
||||
_hoststext="Network hosts (local DNS)"
|
||||
_hostsdenytext="Blocked network services"
|
||||
_hostsallowtext="Authorized network services"
|
||||
_localegentext="Edit system languages"
|
||||
_localeconftext="Edit default used language"
|
||||
_environmenttext="Edit environment language"
|
||||
_mirrorlisttext="Packages mirror list"
|
||||
_xorgevdevconftext="Xorg keymap"
|
||||
_xorgkblayouttext="Xorg keyboard layout"
|
||||
_vconsoletext="Console keyboard layout"
|
||||
_installabootloader="Install a bootloader?"
|
||||
_installgrubbl='Install GRUB2 (needed to boot)'
|
||||
_installnobl="If you know what you're doing."
|
||||
_installgrubdl1="Grub2 will be installed with followed settings:\n -> Boot partition:"
|
||||
_installgrubdl2=" -> Target partition (MBR):"
|
||||
_installgrubdl3="Is this correct? If not answer with \"No\" to change your target partition, else continue with \"Yes\"."
|
||||
|
||||
_none_label="None"
|
||||
|
||||
_mainmenuhelp="Use ↓ and ↑ to choose an entry, enter to launch it."
|
||||
_datetimetext="Set date and time"
|
||||
_networktext="Set up Network"
|
||||
_preparediskstext="Disk(s) preparation"
|
||||
_installsystemtext="Install system"
|
||||
_configuresystemtext="Configure system"
|
||||
_instbootloadertext="Install bootloader"
|
||||
_quittext="Quit"
|
||||
_installationfinished='Installation finished!'
|
||||
_cancelinstall="Cancel installation?"
|
||||
_instwelcomemessage="Welcome to the STABLE Manjaro Linux CLI installation program. \nThis version is known to work best installing Manjaro to your harddrive. \nSimply follow the steps in order ..."
|
||||
_forgotsystemconf="Information\n\nYou forgot to configurate your system."
|
||||
_forgotinstalling="Information\n\nInstalling before configuring would seem more logical."
|
||||
_forgotpreparehd="Information\n\nPrepare your HDD first."
|
|
@ -1,173 +0,0 @@
|
|||
# Translation
|
||||
_yes="Evet"
|
||||
_no="Hayir"
|
||||
_cancel="Iptal"
|
||||
_continue_label="Devam"
|
||||
_grubdetectdisks="GRUB2 Haritasi hazirlaniyor.. \n\n Lutfen bekleyin."
|
||||
_errorfscreate="Dosya sistemi olusturma hatasi"
|
||||
_errormounting="Baglama hatasi"
|
||||
_mkswaperr="Takas alani olusturma hatasi:"
|
||||
_swaponerr="Takas alani etkinlestirme hatasi:"
|
||||
_umountingall="Takas alani kapatiliyor,bagli diskler ayriliyor..."
|
||||
_presentlyavaildisks="Erisilebilir diskler:"
|
||||
_selectdisktouse="Kullanilacak disk i secin"
|
||||
_enterbootpartsize="/boot bolumu icin deger girin(MiB).En az 50."
|
||||
_diskspaceleft="Kalan disk alani:"
|
||||
_errorincorrectsize="HATA: Gecersiz bir deger girdiniz.Lutfen tekrar girin."
|
||||
_errorsizetoobig="HATA: Gereginden az/fazla deger girdiniz, lutfen tekrar girin."
|
||||
_enterswappartsize="Takas alani icin (MiB) degerini girin."
|
||||
_enterrootpartsize="/ (kok) bolumu icin deger girin. /Ev bolumu, kalan alani kullanacak."
|
||||
_homepartsize="/ Ev bolumu degeri:"
|
||||
_selecthomerootfs="/ ve /home bolumleri icin dosya sistemini girin:"
|
||||
_fshomeroottobeused="/ ve /Ev icin kullanilacak. Onayliyormusunuz?"
|
||||
_willbeerased='TUMUYLE SILINECEK! Devam?'
|
||||
_alreadyprepparts='Bolumleriniz hazir durumda!'
|
||||
_invaliddevice="Gecersiz Aygit:"
|
||||
_invaliddestdir="Hedef dizin gecersiz:"
|
||||
_onlyonerootpart="Bir tane root bolumu gerekiyor"
|
||||
_partitioningdev="Bolumlendiriliyor"
|
||||
_errorpartitioningdev="Bolumlendirme hatasi"
|
||||
_errordetails="Ayrintilar Goruntuleniyor"
|
||||
_preparationfinished='Bolumlendirme bitti !'
|
||||
_partsalreadyprepared='Sisteminizi zaten bolumlendirdiniz !'
|
||||
_selectdisktopart1="Bolumlendirilecek diski secin ya da yapildi ise '"
|
||||
_selectdisktopart2="' tiklayin"
|
||||
_enterdiskpath="Bolumlendirilecek aygit icin tam yolu girin"
|
||||
_prepartitionmessage="Sectiginiz disk bolumunu simdi cfdisk ile bolumlendireceksiniz. Sizden yeniden baslatmanizi isterse baslatin, bu uygulamayi calistirin ve kurulumu yeniden baslatin."
|
||||
_nowchooseparts2use="Kullanacaginiz bolumleri sececeksiniz."
|
||||
_selectswappart="Takas alani icin bolum secin"
|
||||
_formatpart="Bicimlendir"
|
||||
_allcontentswillbelost='Tum icerik silinecek!'
|
||||
_selecttherootpart="/ (kok) icin bolum secin"
|
||||
_selectfsfor="Dosya sistemi secin"
|
||||
_wannamountotherparts="Diger bolumleri naslangicta baglamak istiyormusunuz? (secimli)"
|
||||
_selectmpoint="Baglama noktasi secin"
|
||||
_twopartsonamp='HATA: Ayni dizinde iki bolum !'
|
||||
_formatconfirmmessage="Devam? \n\nSozdizimi\n---------\nAYGIT:TIP:BAGLAMA NOKTASI:BICIM"
|
||||
_creatingactswap="Takas olusturuluyor ve etkinlesitiriliyor"
|
||||
_activatingswapon="Takas alani etkinlestiriliyor"
|
||||
_formattingpart="Bicimlendiriliyor"
|
||||
_mountingparton="Baglaniyor"
|
||||
_mountingpart="Baglaniyor"
|
||||
_partsmountsuccess="Bolumler basari ile baglandi."
|
||||
|
||||
_givecorrectname="Lutfen gecerli bir kull. adi girin.\n ==> Tip: kucuk harfler, sekillerle baslayamaz"
|
||||
_givename="Yeni kull. adini girin"
|
||||
_givepass="Yeni kull. adi icin parola girin :"
|
||||
_addsudouserdl1="Bu kullaniciya \""
|
||||
_addsudouserdl2="\" yetkili kull. haklari verilsin mi?"
|
||||
|
||||
_installchoice='Sisteminizi yuklemek icin "unsquashfs" kullanmak istermisiniz?\n\nBu, "sqf-files" dosyalarini acmak ve HDD ye yuklemek icin standart ve hizli secenektir. Sisteminize en az 1GB (RAM) yuklenecektir (eklenebilir RAM tavsiye edilir).\n\nEger "cp" kullanacaksiniz, 'HAYIR' cevabini verin ve kuruluma devam edin.\n\nSiradaki adim kurulumu baslatacak. Lutfen sabirli olun!'
|
||||
_installationwillstart='Kurulum basliyor. Lutfen bekleyin!'
|
||||
_installationinprogress="Kurulum devam ediyor..."
|
||||
_installationfail='Kurulum basarisiz!'
|
||||
_installationsuccess='Kurulum basarili!'
|
||||
|
||||
_configuringsystem="Yapilandirma yurutuluyor..."
|
||||
_addonsinsttitle=" ==== Eklentilerin Kurulmasi ===="
|
||||
_wichaddonsinstall="Hangi eklenditleri yuklemek istiyorsunuz?"
|
||||
_whichaddonsinst1='1) Erisilebilir kuurulabilir eklentilerden seciniz'
|
||||
_whichaddonsinst2='2) Bagli eklentiler arasindan secin'
|
||||
_whichaddonsinstn="n) Eklenti yukleme"
|
||||
_installthisaddon="Kur? [E/H]"
|
||||
_addoninstalled="kuruldu."
|
||||
_wantcplivehome="Gecerli kisisel dizininizi kuruluma eklemek istiyormusunuz? [E/H]"
|
||||
_wantcplivechg="Canli ortamda, yapilan degisiklikleri kuruluma eklemek istiyormusunuz? [E/H]"
|
||||
_livechg_rwroot="Bu rwroot dizini icerigi demektir."
|
||||
_pressentercont="Devam icin enter..."
|
||||
|
||||
_isgrubinst="Grub2 kurulumu? Bulunamadi"
|
||||
_autodetectrootfail="Kok bolumuaalgilanamadi. El ile baglayin"
|
||||
_youwilleditmenulst="GRUB2 yapilandirma dosyasini olusturacaksiniz (grub.cfg). Herseyin yapilandirildigini kontrol etmelisiniz."
|
||||
_nohdfound="Disk bulunamadi"
|
||||
_whereinststage1="GRUB2 nereye kurulsun? (Genellikle MBR /dev/sda Uzerine kurulur)."
|
||||
_installinggrub="GRUB2 Kuruluyor..."
|
||||
_missingrootpart="HATA:kayip/gecersiz kok root aygiti:"
|
||||
_cannotfindgrub="GRUB2 root ve kurulum aygitlari yerlestirilemedi. GRUB2 kabugunu kullanarak onyukleyiciyi manuel kurmalisiniz."
|
||||
_bootsonanydisk="Ana disk/ anakarti degistirmeniz kullanisli olacak"
|
||||
_chainloadexpl="sda1 deki sistem icin secimli giris"
|
||||
_enterrootdevpath="root bolumu icin yol girin"
|
||||
_errorinstgrub="HATA: GRUB2 kurulamadi."
|
||||
_instgrubsuccess="GRUB2 kuruldu."
|
||||
|
||||
_machinetimezone="Makine zamanini UTC evrensel zamanina ayarlayin (tavsiye edilir) ya da yerel zamana ayarlayin(Ikinci bir isletim sisteminiz var ise)?"
|
||||
_selectregion="Lutfen bolge secin"
|
||||
_selecttimezone="Lutfen zaman dilimini secin"
|
||||
_choosedatetime="Tarihi girin .\ndegerler arasi gecis icin <TAB> kullanin."
|
||||
_choosehourtime="Zamani girin .\ndegerler arasi gecis icin <TAB> kullanin."
|
||||
|
||||
_diskpreparation="Disk(ler) in hazirlanmasi"
|
||||
_assistprepa="Zorlayarak ayarlama (diskteki tum verileri siler)"
|
||||
_manualpartit="El ile bolumlendirme"
|
||||
_mainmenulabel="Ana menu"
|
||||
_runninginitcpio="Yurutuluyor mkinitcpio..."
|
||||
_runninginitcpiotitle="Insa ediliyor initramfs imaj..."
|
||||
_mkinitcpiofailerror="HATA - mkinitcpio yu el ile calistirin, degilse sisteminiz acilmayabilir."
|
||||
|
||||
_localegen="yerellestiriliyor..."
|
||||
_syncpacmandb="pacman veri tabani eslestiriliyor..."
|
||||
_updatemirrorlist="Pacman yansilari guncelleniyor..."
|
||||
_setupalsa="ALSA yapilandiriliyor..."
|
||||
_installvideodriver="MHWD suruculerinizi yukluyor..."
|
||||
_setupsystemd="SystemD yapilandiriliyor..."
|
||||
_setupdisplaymanager="Goruntu yoneticisi yapilandiriliyor..."
|
||||
_fixapps="Bazi uygulamalar cozumleniyor..."
|
||||
|
||||
_unsquash_dialog_title="Sistem dosyalari luruluyor..."
|
||||
_unsquash_dialog_info1="Arsiv aciliyor:"
|
||||
_unsquash_dialog_info2="\nLutfen bekleyin..."
|
||||
_unsquasherror_title="Arsiv acilamadi..."
|
||||
|
||||
_passwdtitle="Parola kurulumu..."
|
||||
_passwddl="Parolanizi girin:"
|
||||
_passwddl1="Parolanizi girin:"
|
||||
_passwddl2="Parolanizi tekrar girin:"
|
||||
_passwddl3="Parolalar uyusmuyor!\nYeniden girin:"
|
||||
|
||||
_definerootpass="Yetkili kullanici parolanizi belirleyin"
|
||||
_defineuser="Kullanici hesaplari kurulumu"
|
||||
_defineuserpass="Kullanici parolasini belirleyin"
|
||||
_definelocale="Yereli degistirin (secimli)"
|
||||
_definekeymap="vconsole tus haritasi (secimli)"
|
||||
_enterusername="Kullanici hesap adini.."
|
||||
_doeditconfig="Sistem yapilandirilmasi (secimli)"
|
||||
_return_label="Geri"
|
||||
_rcconftext="Ana sistem yapilandirilmasi"
|
||||
_fstabtext="Baglama noktalari ( lutfen kontrol edin)"
|
||||
_mkinitcpioconftext="Initramfs ayarlari"
|
||||
_modprobeconftext="Modul secenekleri (sadece ozel durumlar )"
|
||||
_resolvconftext="DNS sunuculari (ag yoneticisince ayarlanir)"
|
||||
_hostnametext="Ag host adi (Sistem host adi)"
|
||||
_hoststext="Ag hosts (yerel DNS)"
|
||||
_hostsdenytext="Engellenmis ag servisleri"
|
||||
_hostsallowtext="Onaylanmis ag servisleri"
|
||||
_localegentext="Sistem dilini duzenleyin"
|
||||
_localeconftext="Kullanilacak varsayilan dili duzenleyin"
|
||||
_environmenttext="Ortam dilini duzenleyin"
|
||||
_mirrorlisttext="Paketlerin yansi listesi"
|
||||
_xorgevdevconftext="Xorg tus haritasi"
|
||||
_xorgkblayouttext="Xorg tus haritasi arayuzu"
|
||||
_vconsoletext="Ucbirim klavye arayuzu"
|
||||
_installabootloader="Onyukleyici kurulsun mu?"
|
||||
_installgrubbl='GRUB2 kur (yeniden baslatma gerekli)'
|
||||
_installnobl="Ne yaptiginiz biliyorsaniz."
|
||||
_installgrubdl1="Grub2 su ayarlarla yuklenecek :\n -> KOK bolumu:"
|
||||
_installgrubdl2=" -> Hedef bolum (MBR):"
|
||||
_installgrubdl3="Bu dogru mu? Degil ise \HAYIR\ ile devam edin ve hedef bolumu secin,dogru ise \"EVET\" ile devam edin."
|
||||
|
||||
_none_label="Hicbiri"
|
||||
|
||||
_mainmenuhelp="Yon tuslari ile giris secin ve enter tusu ile calistirin."
|
||||
_datetimetext="Tarih ve zamani girin"
|
||||
_networktext="Ag ayarini yapin"
|
||||
_preparediskstext="Disk(ler) in hazirlanmasi"
|
||||
_installsystemtext="Sistem kurulumu"
|
||||
_configuresystemtext="Sistem yapilandirilmasi"
|
||||
_instbootloadertext="Onyukleyici kurulumu"
|
||||
_quittext="Cikis"
|
||||
_installationfinished='Kurulum tamamlandi!'
|
||||
_cancelinstall="Kurulumdan cikilsin mi?"
|
||||
_instwelcomemessage="KARARLI Manjaro CLI kurulum programina hos geldiniz.. \nBu surum Manjaro' yu sisteminize yukleyebileceginiz en iyi surumdur. \nBasitce takip eden adimlari uygulayiniz ..."
|
||||
_forgotsystemconf="Bilgi\n\nSistem yapilandirmasini unuttunuz."
|
||||
_forgotinstalling="Bilgi\n\nyapilandirmadan once kurulum yapmaniz daha mantiklidir."
|
||||
_forgotpreparehd="Bilgi\n\nOnce HDD 'nizi hazirlayin."
|
4213
livecd/setup-0.9
4213
livecd/setup-0.9
File diff suppressed because it is too large
Load diff
|
@ -1,346 +0,0 @@
|
|||
# Translation
|
||||
_yes="Yes"
|
||||
_no="No"
|
||||
_cancel="Cancel"
|
||||
_continue_label="Continue"
|
||||
_grubdetectdisks="Generating GRUB2 device map...\n\n Please be patient."
|
||||
_errorfscreate="Error creating filesystem"
|
||||
_errormounting="Error mounting"
|
||||
_mkswaperr="Error creating swap:"
|
||||
_swaponerr="Error activating swap:"
|
||||
_umountingall="Disabling swapspace, unmounting already mounted disk devices..."
|
||||
_presentlyavaildisks="Available disks:"
|
||||
_selectdisktouse="Select the hard drive to use"
|
||||
_enterbootpartsize="Enter the size (MiB) of your /boot partition. Minimum is 50."
|
||||
_diskspaceleft="Disk space left:"
|
||||
_errorincorrectsize="ERROR: You entered an invalid size, please enter again."
|
||||
_errorsizetoobig="ERROR: You entered a too small or large size, please enter again."
|
||||
_enterswappartsize="Enter the size (MiB) of your swap partition."
|
||||
_enterrootpartsize="Enter the size (MiB) of your / (root) partition. The /home partition will use the remaining space."
|
||||
_homepartsize="Size of /home partition:"
|
||||
_selecthomerootfs="Select a filesystem for / and /home partitions:"
|
||||
_fshomeroottobeused="will be used for / and /home. OK?"
|
||||
_willbeerased='will be COMPLETELY ERASED! Proceed?'
|
||||
_alreadyprepparts='You have already prepared your partitions!'
|
||||
_invaliddevice="Invalid device:"
|
||||
_invaliddestdir="Destination directory invalid:"
|
||||
_onlyonerootpart="We need exactly one root partition"
|
||||
_partitioningdev="Partitioning"
|
||||
_errorpartitioningdev="Error partitioning"
|
||||
_errordetails="Details displayed on"
|
||||
_preparationfinished='Preparation finished !'
|
||||
_partsalreadyprepared='You have already prepared your filesystems !'
|
||||
_selectdisktopart1="Select the disk to partition (or "
|
||||
_selectdisktopart2=" when you have finished)"
|
||||
_enterdiskpath="Enter the full path to the device you wish to partition"
|
||||
_prepartitionmessage="You will now partition the selected disk with cfdisk.\nIf it asks you to reboot, do it, launch this program again and restart installation."
|
||||
_nowchooseparts2use="You will now select the partitions to use."
|
||||
_selectswappart="Select the partition to use as swap"
|
||||
_formatpart="Format"
|
||||
_allcontentswillbelost='Its contents will be erased!'
|
||||
_selecttherootpart="Select the partition for / (root)"
|
||||
_selectfsfor="Select the filesystem for"
|
||||
_wannamountotherparts="Do you want to mount other static partitions at bootup ? (optional)"
|
||||
_selectmpoint="Select the mountpoint (directory) for"
|
||||
_twopartsonamp='ERROR: two partitions on the same directory!'
|
||||
_formatconfirmmessage="Continue?\n\nSyntax\n------\nDEVICE:TYPE:MOUNTPOINT:FORMAT"
|
||||
_creatingactswap="Creating and activating swap on"
|
||||
_activatingswapon="Activating swap on"
|
||||
_formattingpart="Formatting"
|
||||
_mountingparton="mounting on"
|
||||
_mountingpart="Mounting"
|
||||
_partsmountsuccess="Partitions were successfully mounted."
|
||||
|
||||
_givecorrectname="Please enter a valid username.\n ==> Tip: lowercase, can't start with a figure"
|
||||
_givename="Enter the new username"
|
||||
_givepass="Type the pasword for the new user :"
|
||||
_addsudouserdl1="Should User \""
|
||||
_addsudouserdl2="\" get sudo rights?"
|
||||
|
||||
_installchoice='Do you want to use "unsquashfs" to install your system?\n\nIt is the standard and fastest option to unpack our "sqf-files" to your harddrive. At least 1 GB of memory (RAM) should be installed on your system (additional RAM is recommended).\n\nIf you want to use "cp" instead, answer with "No" and continue your installation.\n\nNext step will start the installation. Please be patient!'
|
||||
_installationwillstart='Installation will now start. Please be patient!'
|
||||
_installationinprogress="Installation in progress..."
|
||||
_installationfail='Installation failed!'
|
||||
_installationsuccess='Installation succeeded!'
|
||||
|
||||
_configuringsystem="Configuration in progress..."
|
||||
_addonsinsttitle=" ==== Addons installation ===="
|
||||
_wichaddonsinstall="Which addons do you want to install?"
|
||||
_whichaddonsinst1='1) Choose among available installable addons'
|
||||
_whichaddonsinst2='2) Install installable addons among currently mounted addons'
|
||||
_whichaddonsinstn="n) Don't install any add-on"
|
||||
_installthisaddon="install? [y/N]"
|
||||
_addoninstalled="installed."
|
||||
_wantcplivehome="Do you want to copy the current personal folder into the installation? [y/n]"
|
||||
_wantcplivechg="Do you want to copy into the installation the changes done in live? [y/n]"
|
||||
_livechg_rwroot="This means the contents of your rwroot folder."
|
||||
_pressentercont="Press enter to continue..."
|
||||
|
||||
_isgrubinst="Is GRUB2 installed? Cannot find"
|
||||
_autodetectrootfail="Root partition autodetection failed. Modify manually"
|
||||
_youwilleditmenulst="You will now edit the GRUB2 configuration file (grub.cfg). You just have to check, everything should be already configured."
|
||||
_nohdfound="No hard disk found"
|
||||
_whereinststage1="Where do you want to install GRUB2's stage1? (most of the time on the MBR, i.e. /dev/sda)."
|
||||
_installinggrub="Installing GRUB2..."
|
||||
_missingrootpart="Error: missing/invalid root device:"
|
||||
_cannotfindgrub="GRUB2 root and setup devices could not be auto-located. You will need to manually run the GRUB2 shell to install a bootloader."
|
||||
_bootsonanydisk="useful if you change your hard disk/mainboard"
|
||||
_chainloadexpl="Optional entry for the system on sda1"
|
||||
_enterrootdevpath="Enter the path of the root partition"
|
||||
_errorinstgrub="Error installing GRUB2."
|
||||
_instgrubsuccess="GRUB2 successfully installed."
|
||||
|
||||
_machinetimezone="Set the machine time to UTC universal time (recommended) or local time (if you have a dual-boot with a system requiring it)?"
|
||||
_selectregion="Please select a region"
|
||||
_selecttimezone="Please select a timezone"
|
||||
_choosedatetime="Set the date.\nUse <TAB> to navigate and arrow keys to change values."
|
||||
_choosehourtime="Set the time.\nUse <TAB> to navigate and up/down to change values."
|
||||
|
||||
_diskpreparation="Hard disk(s) preparation"
|
||||
_assistprepa="Assisted preparation (erases the whole disk)"
|
||||
_manualpartit="Partition by hand and choose the partitions to use"
|
||||
_mainmenulabel="Main menu"
|
||||
_runninginitcpio="Running mkinitcpio..."
|
||||
_runninginitcpiotitle="Building initramfs image..."
|
||||
_mkinitcpiofailerror="ERROR - You will have to run mkinitcpio by hand, either way the system may not boot."
|
||||
|
||||
_localegen="Generating locales..."
|
||||
_syncpacmandb="Synchronising pacman databases..."
|
||||
_updatemirrorlist="Updating pacman mirrorlist..."
|
||||
_setupalsa="Configuring ALSA..."
|
||||
_installvideodriver="MHWD is installing your video driver(s)..."
|
||||
_setupsystemd="Configuring SystemD..."
|
||||
_setupopenrc="Configuring OpenRC..."
|
||||
_setupdisplaymanager="Configuring the display manager..."
|
||||
_fixapps="Fixing some applications..."
|
||||
|
||||
_unsquash_dialog_title="Installing system files..."
|
||||
_unsquash_dialog_info1="Unsquashing archive:"
|
||||
_unsquash_dialog_info2="\nPlease wait..."
|
||||
_unsquasherror_title="Unsquashing failed..."
|
||||
|
||||
_passwdtitle="Password setup..."
|
||||
_passwddl="Enter your password for:"
|
||||
_passwddl1="Enter your password for:"
|
||||
_passwddl2="Re-Enter your password for:"
|
||||
_passwddl3="Password don't match!\nRe-Enter your password for:"
|
||||
|
||||
_definerootpass="Change root password"
|
||||
_defineuser="Setup user account(s)"
|
||||
_defineuserpass="Change user password"
|
||||
_definelocale="Change locale (optional)"
|
||||
_definekeymap="Change vconsole keymap (optional)"
|
||||
_enterusername="Enter user account name..."
|
||||
_doeditconfig="Edit system configuration (optional)"
|
||||
_return_label="Back"
|
||||
_rcconftext="Main system configuration"
|
||||
_fstabtext="Mount points (please check)"
|
||||
_mkinitcpioconftext="Initramfs config (can be lightened)"
|
||||
_rcconfigtext="Configure openrc"
|
||||
_modulesconftext="Configure kernel modules"
|
||||
_hwclockconftext="Configure hwclock"
|
||||
_modprobeconftext="Module options (special cases only)"
|
||||
_resolvconftext="DNS servers (managed by networkmanager)"
|
||||
_hostnametext="Network hostname (Systems hostname)"
|
||||
_hoststext="Network hosts (local DNS)"
|
||||
_hostsdenytext="Blocked network services"
|
||||
_hostsallowtext="Authorized network services"
|
||||
_localegentext="Edit system languages"
|
||||
_localeconftext="Edit default used language"
|
||||
_environmenttext="Edit environment language"
|
||||
_mirrorlisttext="Packages mirror list"
|
||||
_xorgevdevconftext="Xorg keymap"
|
||||
_xorgkblayouttext="Xorg keyboard layout"
|
||||
_vconsoletext="Console keyboard layout"
|
||||
_installabootloader="Install a bootloader?"
|
||||
_installgrubbl='Install GRUB2 (needed to boot)'
|
||||
_installnobl="If you know what you're doing."
|
||||
_installgrubdl1="Grub2 will be installed with followed settings:\n -> Boot partition:"
|
||||
_installgrubdl2=" -> Target partition (MBR):"
|
||||
_installgrubdl3="Is this correct? If not answer with \"No\" to change your target partition, else continue with \"Yes\"."
|
||||
|
||||
_none_label="None"
|
||||
|
||||
_mainmenuhelp="Use ↓ and ↑ to choose an entry, enter to launch it."
|
||||
_datetimetext="Set date and time"
|
||||
_networktext="Set up Network"
|
||||
_preparediskstext="Disk(s) preparation"
|
||||
_installsystemtext="Install system"
|
||||
_configuresystemtext="Configure system"
|
||||
_instbootloadertext="Install bootloader"
|
||||
_quittext="Quit"
|
||||
_installationfinished='Installation finished!'
|
||||
_cancelinstall="Cancel installation?"
|
||||
_instwelcomemessage="Welcome to the TESTING Manjaro Linux CLI installation program. \nThis version might not work for you installing Manjaro to your harddrive. \nSome features aren't fully tested yet. Good luck!"
|
||||
_forgotsystemconf="Information\n\nYou forgot to configurate your system."
|
||||
_forgotinstalling="Information\n\nInstalling before configuring would seem more logical."
|
||||
_forgotpreparehd="Information\n\nPrepare your HDD first."
|
||||
|
||||
_activate_dmraid="Activating dmraid arrays..."
|
||||
|
||||
_scanning_lvm2="Scanning logical volumes..."
|
||||
_activate_lvm2="Activating logical volumes..."
|
||||
|
||||
_activate_raid="Activating RAID arrays..."
|
||||
|
||||
_scanning_luks="Scanning for luks encrypted devices..."
|
||||
_setup_luks="Setup detected luks encrypted device, do you want to activate"
|
||||
|
||||
_destdir_1="Setup couldn't detect mounted partition(s) in "
|
||||
_destdir_2=", please set mountpoints first."
|
||||
|
||||
_geteditor="Select a Text Editor to Use"
|
||||
_nano="nano (easier)"
|
||||
|
||||
_menu_descg="\nPARTUUID and PARTLABEL are specific to GPT disks.\nIn GPT disks, PARTUUID is recommended.\nIn MBR/msdos disks,"
|
||||
_device_name_scheme_1="Select the device name scheme you want to use in config files. "
|
||||
_device_name_scheme_2=" FSUUID is recommended."
|
||||
|
||||
_gptinfo="Do you want to use GUID Partition Table (GPT)?\n\nIt is a standard for the layout of the partition table on a physical hard disk. Although it forms a part of the Unified Extensible Firmware Interface (UEFI) standard (replacement for the PC BIOS firmware), it is also used on some BIOS systems because of the limitations of MBR aka msdos partition tables, which restrict maximum disk size to 2 TiB.\n\nWindows XP and earlier Windows systems cannot (without hacks) read or write to drives formatted with a GUID partition table, however, Vista and Windows 7 and later versions include the capability to use GPT for non-boot aka data disks (only UEFI systems can boot Windows from GPT disks).\n\nAttention:\n- Please check if your other operating systems have GPT support!\n- Use this option for a GRUB(2) setup, which should support LVM, RAID\n etc., which doesn't fit into the usual 30k MS-DOS post-MBR gap.\n- BIOS-GPT boot may not work in some Lenovo systems (irrespective of the\n
|
||||
bootloader used). "
|
||||
|
||||
_disable_swap="Disabling swapspace, unmounting already mounted disk devices..."
|
||||
|
||||
_stop_md="Setup detected already running raid devices, do you want to disable them completely?"
|
||||
|
||||
_disable_raid="Disabling all software raid devices..."
|
||||
|
||||
_clear_superblock="Cleaning superblocks of all software raid devices..."
|
||||
_setup_superblock="Setup detected superblock of raid devices, do you want to clean the superblock of them?"
|
||||
_clean_superblock="Cleaning superblocks of all software raid devices..."
|
||||
|
||||
_stoplvm="Setup detected lvm volumes, volume groups or physical devices, do you want to remove them completely?"
|
||||
_removelvm="Removing logical volumes ..."
|
||||
_removelvg="Removing logical groups ..."
|
||||
_removepvm="Removing physical volumes ..."
|
||||
|
||||
_stopluks="Setup detected running luks encrypted devices, do you want to remove them completely?"
|
||||
_removeluks="Removing luks encrypted devices ..."
|
||||
_stoprluks="Setup detected not running luks encrypted devices, do you want to remove them completely?"
|
||||
_removerluks="Removing not running luks encrypted devices ..."
|
||||
|
||||
_deactivateraid="Deactivating dmraid devices ..."
|
||||
_setupraid="Setup detected running dmraid devices and/or running lvm2, luks encrypted devices. If you reduced/deleted partitions on your dmraid device a complete reset of devicemapper devices is needed. This will reset also your created lvm2 or encrypted devices. Are you sure you want to do this?"
|
||||
_resetraid="Resetting devicemapper devices ..."
|
||||
_resetdm="Resetting devicemapper devices ..."
|
||||
_reactivatedm="Reactivating dmraid devices ..."
|
||||
|
||||
_help_raid="LINUX SOFTWARE RAID SUMMARY:\n
|
||||
-----------------------------\n\n
|
||||
Linear mode:\n
|
||||
You have two or more partitions which are not necessarily the same size\n
|
||||
(but of course can be), which you want to append to each other.\n
|
||||
Spare-disks are not supported here. If a disk dies, the array dies with\n
|
||||
it.\n\n
|
||||
RAID-0:\n
|
||||
You have two or more devices, of approximately the same size, and you want\n
|
||||
to combine their storage capacity and also combine their performance by\n
|
||||
accessing them in parallel. Like in Linear mode, spare disks are not\n
|
||||
supported here either. RAID-0 has no redundancy, so when a disk dies, the\n
|
||||
array goes with it.\n\n
|
||||
RAID-1:\n
|
||||
You have two devices of approximately same size, and you want the two to\n
|
||||
be mirrors of each other. Eventually you have more devices, which you\n
|
||||
want to keep as stand-by spare-disks, that will automatically become a\n
|
||||
part of the mirror if one of the active devices break.\n\n
|
||||
RAID-4:\n
|
||||
You have three or more devices of roughly the same size and you want\n
|
||||
a way that protects data against loss of any one disk.\n
|
||||
Fault tolerance is achieved by adding an extra disk to the array, which\n
|
||||
is dedicated to storing parity information. The overall capacity of the\n
|
||||
array is reduced by one disk.\n
|
||||
The storage efficiency is 66 percent. With six drives, the storage\n
|
||||
efficiency is 87 percent. The main disadvantage is poor performance for\n
|
||||
multiple,\ simultaneous, and independent read/write operations.\n
|
||||
Thus, if any disk fails, all data stay intact. But if two disks fail,\n
|
||||
all data is lost.\n\n
|
||||
RAID-5:\n
|
||||
You have three or more devices of roughly the same size, you want to\n
|
||||
combine them into a larger device, but still to maintain a degree of\n
|
||||
redundancy fordata safety. Eventually you have a number of devices to use\n
|
||||
as spare-disks, that will not take part in the array before another device\n
|
||||
fails. If you use N devices where the smallest has size S, the size of the\n
|
||||
entire array will be (N-1)*S. This \"missing\" space is used for parity\n
|
||||
(redundancy) information. Thus, if any disk fails, all data stay intact.\n
|
||||
But if two disks fail, all data is lost.\n\n
|
||||
RAID-6:\n
|
||||
You have four or more devices of roughly the same size and you want\n
|
||||
a way that protects data against loss of any two disks.\n
|
||||
Fault tolerance is achieved by adding an two extra disk to the array,\n
|
||||
which is dedicated to storing parity information. The overall capacity\n
|
||||
of the array is reduced by 2 disks.\n
|
||||
Thus, if any two disks fail, all data stay intact. But if 3 disks fail,\n
|
||||
all data is lost.\n\n
|
||||
RAID-10:\n
|
||||
Shorthand for RAID1+0, a mirrored striped array and needs a minimum of\n
|
||||
two disks. It provides superior data security and can survive multiple\n
|
||||
disk failures. The main disadvantage is cost, because 50% of your\n
|
||||
storage is duplication."
|
||||
|
||||
_alldm="All devices in use. No more devices left for new creation."
|
||||
|
||||
_enter_node="Enter the node name for the raiddevice:\n/dev/md[number]\n/dev/md0\n/dev/md1\n\n"
|
||||
_enter_node2="Enter the node name for partitionable raiddevice:\n/dev/md_d[number]\n/dev/md_d0\n/dev/md_d1"
|
||||
_error_node="ERROR: You have defined 2 identical node names! Please enter another name."
|
||||
_raid_level="Select the raid level you want to use"
|
||||
_select_partiy="Select the parity layout you want to use (default is left-symmetric)"
|
||||
_select_dv="Select device"
|
||||
_select_addv="Select additional device"
|
||||
_degraded_raid="Would you like to create a degraded raid on"
|
||||
_question_raid1="Would you like to create"
|
||||
_question_raid2="like this?"
|
||||
_parted_raid="Now you'll be put into the parted program where you can partition your raiddevice to your needs."
|
||||
_no_raid_left="No devices left for physical volume creation."
|
||||
_select_dvnr1="Select additional device number"
|
||||
_select_dvnr2="for physical volume"
|
||||
_create_vm="Would you like to create physical volume on devices below?"
|
||||
_creating_vm="Creating physical volume on"
|
||||
|
||||
_no_vg_left="No devices left for Volume Group creation."
|
||||
_enter_vg="Enter the Volume Group name:"
|
||||
_error_vg="ERROR: You have defined 2 identical Volume Group names! Please enter another name."
|
||||
_info_vg="Physical Volumes that are not shown in next dialog, are already in use!"
|
||||
|
||||
_for="for"
|
||||
|
||||
_select_pvg="Select Physical Volume"
|
||||
_select_ad_pvg="Select additional Physical Volume"
|
||||
_create_vg="Would you like to create Volume Group like this?"
|
||||
_creating_vg="Creating Volume Group"
|
||||
|
||||
_help_lvm="LOGICAL VOLUME SUMMARY:\n
|
||||
-----------------------------\n\n
|
||||
LVM is a Logical Volume Manager for the Linux kernel. With LVM you can\n
|
||||
abstract your storage space and have \"virtual partitions\" which are easier\n
|
||||
to modify.\n\nThe basic building block of LVM are:\n
|
||||
- Physical volume (PV):\n
|
||||
Partition on hard disk (or even hard disk itself or loopback file) on\n
|
||||
which you can have virtual groups. It has a special header and is\n
|
||||
divided into physical extents. Think of physical volumes as big building\n
|
||||
blocks which can be used to build your hard drive.\n
|
||||
- Volume group (VG):\n
|
||||
Group of physical volumes that are used as storage volume (as one disk).\n
|
||||
They contain logical volumes. Think of volume groups as hard drives.\n
|
||||
- Logical volume(LV):\n
|
||||
A \"virtual/logical partition\" that resides in a volume group and is\n
|
||||
composed of physical extents. Think of logical volumes as normal\n
|
||||
partitions."
|
||||
|
||||
_help_luks="LUKS ENCRYPTION SUMMARY:\n
|
||||
-----------------------------\n\n
|
||||
Encryption is useful for two (related) reasons.\n
|
||||
Firstly, it prevents anyone with physical access to your computer,\n
|
||||
and your hard drive in particular, from getting the data from it\n
|
||||
(unless they have your passphrase/key).\n
|
||||
Secondly, it allows you to wipe the data on your hard drive with\n
|
||||
far more confidence in the event of you selling or discarding\n
|
||||
your drive.\n
|
||||
Basically, it supplements the access control mechanisms of the operating\n
|
||||
system (like file permissions) by making it harder to bypass the operating\n
|
||||
system by inserting a boot CD, for example. Encrypting the root partition\n
|
||||
prevents anyone from using this method to insert viruses or trojans onto\n
|
||||
your computer.\n\n
|
||||
ATTENTION:\n
|
||||
Having encrypted partitions does not protect you from all possible\n
|
||||
attacks. The encryption is only as good as your key management, and there\n
|
||||
are other ways to break into computers, while they are running."
|
|
@ -1,341 +0,0 @@
|
|||
# Translation
|
||||
_yes="Evet"
|
||||
_no="Hayir"
|
||||
_cancel="Iptal"
|
||||
_continue_label="Devam"
|
||||
_grubdetectdisks="GRUB2 Haritasi hazirlaniyor.. \n\n Lutfen bekleyin."
|
||||
_errorfscreate="Dosya sistemi olusturma hatasi"
|
||||
_errormounting="Baglama hatasi"
|
||||
_mkswaperr="Takas alani olusturma hatasi:"
|
||||
_swaponerr="Takas alani etkinlestirme hatasi:"
|
||||
_umountingall="Takas alani kapatiliyor,bagli diskler ayriliyor..."
|
||||
_presentlyavaildisks="Erisilebilir diskler:"
|
||||
_selectdisktouse="Kullanilacak disk i secin"
|
||||
_enterbootpartsize="/boot bolumu icin deger girin(MiB).En az 50."
|
||||
_diskspaceleft="Kalan disk alani:"
|
||||
_errorincorrectsize="HATA: Gecersiz bir deger girdiniz.Lutfen tekrar girin."
|
||||
_errorsizetoobig="HATA: Gereginden az/fazla deger girdiniz, lutfen tekrar girin."
|
||||
_enterswappartsize="Takas alani icin (MiB) degerini girin."
|
||||
_enterrootpartsize="/ (kok) bolumu icin deger girin. /Ev bolumu, kalan alani kullanacak."
|
||||
_homepartsize="/ Ev bolumu degeri:"
|
||||
_selecthomerootfs="/ ve /home bolumleri icin dosya sistemini girin:"
|
||||
_fshomeroottobeused="/ ve /Ev icin kullanilacak. Onayliyormusunuz?"
|
||||
_willbeerased='TUMUYLE SILINECEK! Devam?'
|
||||
_alreadyprepparts='Bolumleriniz hazir durumda!'
|
||||
_invaliddevice="Gecersiz Aygit:"
|
||||
_invaliddestdir="Hedef dizin gecersiz:"
|
||||
_onlyonerootpart="Bir tane root bolumu gerekiyor"
|
||||
_partitioningdev="Bolumlendiriliyor"
|
||||
_errorpartitioningdev="Bolumlendirme hatasi"
|
||||
_errordetails="Ayrintilar Goruntuleniyor"
|
||||
_preparationfinished='Bolumlendirme bitti !'
|
||||
_partsalreadyprepared='Sisteminizi zaten bolumlendirdiniz !'
|
||||
_selectdisktopart1="Bolumlendirilecek diski secin ya da yapildi ise '"
|
||||
_selectdisktopart2="' tiklayin"
|
||||
_enterdiskpath="Bolumlendirilecek aygit icin tam yolu girin"
|
||||
_prepartitionmessage="Sectiginiz disk cfdisk ile bolumlendirilecek. Sizden yeniden baslatmanizi isterse baslatin, bu uygulamayi calistirin ve kurulumu yeniden baslatin."
|
||||
_nowchooseparts2use="Kullanacaginiz bolumleri secin."
|
||||
_selectswappart="Takas alani icin bolum secin"
|
||||
_formatpart="Bicimlendir"
|
||||
_allcontentswillbelost='Tum icerik silinecek!'
|
||||
_selecttherootpart="/ (kok) icin bolum secin"
|
||||
_selectfsfor="Dosya sistemi secin"
|
||||
_wannamountotherparts="Diger bolumleri naslangicta baglamak istiyormusunuz? (secimli)"
|
||||
_selectmpoint="Baglama noktasi secin"
|
||||
_twopartsonamp='HATA: Ayni dizinde iki bolum !'
|
||||
_formatconfirmmessage="Devam? \n\nSozdizimi\n---------\nAYGIT:TIP:BAGLAMA NOKTASI:BICIM"
|
||||
_creatingactswap="Takas olusturuluyor ve etkinlesitiriliyor"
|
||||
_activatingswapon="Takas alani etkinlestiriliyor"
|
||||
_formattingpart="Bicimlendiriliyor"
|
||||
_mountingparton="Baglaniyor"
|
||||
_mountingpart="Baglaniyor"
|
||||
_partsmountsuccess="Bolumler basari ile baglandi."
|
||||
|
||||
_givecorrectname="Lutfen gecerli bir kull. adi girin.\n ==> Tip: kucuk harfler olmali, sekillerle baslayamaz"
|
||||
_givename="Yeni kull. adini girin"
|
||||
_givepass="Yeni kull. adi icin parola girin :"
|
||||
_addsudouserdl1="Bu kullaniciya \""
|
||||
_addsudouserdl2="\" yetkili kull. haklari verilsin mi?"
|
||||
|
||||
_installchoice='Sisteminizi yuklemek icin "unsquashfs" kullanmak istermisiniz?\n\nBu, "sqf-files" dosyalarini acmak ve HDD ye yuklemek icin standart ve hizli secenektir. Sisteminize en az 1GB (RAM) yuklenecektir (eklenebilir RAM tavsiye edilir).\n\nEger "cp" kullanacaksiniz, 'HAYIR' cevabini verin ve kuruluma devam edin.\n\nSiradaki adim kurulumu baslatacak. Lutfen sabirli olun!'
|
||||
_installationwillstart='Kurulum basliyor. Lutfen bekleyin!'
|
||||
_installationinprogress="Kuruluyor..."
|
||||
_installationfail='KURULAMADI!'
|
||||
_installationsuccess='KURULDU!'
|
||||
|
||||
_configuringsystem="Yapilandiriliyor..."
|
||||
_addonsinsttitle=" ==== Eklentilerin Kurulmasi ===="
|
||||
_wichaddonsinstall="Hangi eklenditleri yuklemek istiyorsunuz?"
|
||||
_whichaddonsinst1='1) Erisilebilir kuurulabilir eklentilerden seciniz'
|
||||
_whichaddonsinst2='2) Bagli eklentiler arasindan secin'
|
||||
_whichaddonsinstn="n) Eklenti yukleme"
|
||||
_installthisaddon="Kur? [E/H]"
|
||||
_addoninstalled="kuruldu."
|
||||
_wantcplivehome="Gecerli kisisel dizininizi kuruluma eklemek istiyormusunuz? [E/H]"
|
||||
_wantcplivechg="Canli ortamda, yapilan degisiklikleri kuruluma eklemek istiyormusunuz? [E/H]"
|
||||
_livechg_rwroot="Bu rwroot dizini icerigi demektir."
|
||||
_pressentercont="Devam icin enter..."
|
||||
|
||||
_isgrubinst="Grub2 kurulumu? Bulunamadi"
|
||||
_autodetectrootfail="Kok bolumu algilanamadi. El ile baglayin"
|
||||
_youwilleditmenulst="GRUB2 yapilandirma dosyasini olusturacaksiniz (grub.cfg). Herseyin yapilandirildigini kontrol etmelisiniz."
|
||||
_nohdfound="Disk bulunamadi"
|
||||
_whereinststage1="GRUB2 nereye kurulsun? (Genellikle MBR /dev/sda uzerine kurulur)."
|
||||
_installinggrub="GRUB2 Kuruluyor..."
|
||||
_missingrootpart="HATA:kayip/gecersiz kok root aygiti:"
|
||||
_cannotfindgrub="GRUB2 root ve kurulum aygitlari yerlestirilemedi. GRUB2 kabugu kullanarak onyukleyiciyi manuel kurmalisiniz."
|
||||
_bootsonanydisk="Ana disk/anakarti degistirmeniz kullanisli olacak"
|
||||
_chainloadexpl="sda1 deki sistem icin secimli giris"
|
||||
_enterrootdevpath="root bolumu icin yol girin"
|
||||
_errorinstgrub="HATA: GRUB2 kurulamadi."
|
||||
_instgrubsuccess="GRUB2 kurulumu basarili."
|
||||
|
||||
_machinetimezone="Makine zamanini UTC evrensel zamanina ayarlayin (tavsiye edilir) ya da yerel zamana ayarlayin(Ikinci bir isletim sisteminiz var ise)?"
|
||||
_selectregion="Lutfen bolge secin"
|
||||
_selecttimezone="Lutfen zaman dilimini secin"
|
||||
_choosedatetime="Tarihi girin .\ndegerler arasi gecis icin <TAB> kullanin."
|
||||
_choosehourtime="Zamani girin .\ndegerler arasi gecis icin <TAB> kullanin."
|
||||
|
||||
_diskpreparation="Disk(ler) in hazirlanmasi"
|
||||
_assistprepa="Zorlayarak ayarlama (diskteki tum verileri siler)"
|
||||
_manualpartit="El ile bolumlendirme"
|
||||
_mainmenulabel="Ana menu"
|
||||
_runninginitcpio="mkinitcpio yurutuluyor..."
|
||||
_runninginitcpiotitle="initramfs imaji olusturuluyor..."
|
||||
_mkinitcpiofailerror="HATA - mkinitcpio yu el ile calistirin, degilse sisteminiz acilmayabilir."
|
||||
|
||||
_localegen="yerellestiriliyor..."
|
||||
_syncpacmandb="pacman veri tabani eslestiriliyor..."
|
||||
_updatemirrorlist="Pacman yansilari guncelleniyor..."
|
||||
_setupalsa="ALSA yapilandiriliyor..."
|
||||
_installvideodriver="MHWD suruculerinizi yukluyor..."
|
||||
_setupsystemd="SystemD yapilandiriliyor..."
|
||||
_setupdisplaymanager="Goruntu yoneticisi yapilandiriliyor..."
|
||||
_fixapps="Bazi uygulamalar cozumleniyor..."
|
||||
|
||||
_unsquash_dialog_title="Sistem dosyalari kuruluyor..."
|
||||
_unsquash_dialog_info1="Arsiv aciliyor:"
|
||||
_unsquash_dialog_info2="\nLutfen bekleyin..."
|
||||
_unsquasherror_title="Arsiv acilamadi!..."
|
||||
|
||||
_passwdtitle="Parola kurulumu..."
|
||||
_passwddl="Parolanizi girin:"
|
||||
_passwddl1="Parolanizi girin:"
|
||||
_passwddl2="Parolanizi tekrar girin:"
|
||||
_passwddl3="Parolalar uyusmuyor!\nYeniden girin:"
|
||||
|
||||
_definerootpass="Yetkili kullanici parolanizi belirleyin"
|
||||
_defineuser="Kullanici hesaplari"
|
||||
_defineuserpass="Kullanici parolasini belirleyin"
|
||||
_definelocale="Yereli degistirin (secimli)"
|
||||
_definekeymap="vconsole tus haritasini belirleyin (secimli)"
|
||||
_enterusername="Kullanici hesap adini degistirin.."
|
||||
_doeditconfig="Sisteminizi yapilandirin (secimli)"
|
||||
_return_label="Geri"
|
||||
_rcconftext="Ana sistem yapilandirilmasi"
|
||||
_fstabtext="Baglama noktalari ( lutfen kontrol edin)"
|
||||
_mkinitcpioconftext="Initramfs ayarlari"
|
||||
_modprobeconftext="Modul secenekleri ( sadece ozel durumlar )"
|
||||
_resolvconftext="DNS sunuculari (ag yoneticisince ayarlanir)"
|
||||
_hostnametext="Ag host adi (Sistem host adi)"
|
||||
_hoststext="Ag hosts (yerel DNS)"
|
||||
_hostsdenytext="Engellenmis ag servisleri"
|
||||
_hostsallowtext="Onaylanmis ag servisleri"
|
||||
_localegentext="Sistem dilini duzenleyin"
|
||||
_localeconftext="Kullanilacak varsayilan dili belirleyin"
|
||||
_environmenttext="Ortam dilini belirleyin"
|
||||
_mirrorlisttext="Paketlerin yansi listesi"
|
||||
_xorgevdevconftext="Xorg tus haritasi"
|
||||
_xorgkblayouttext="Xorg tus haritasi arayuzu"
|
||||
_vconsoletext="Ucbirim klavye arayuzu"
|
||||
_installabootloader="Onyukleyici kurulsun mu?"
|
||||
_installgrubbl='GRUB2 kur (yeniden baslatma gerekli)'
|
||||
_installnobl="Ne yaptiginizi biliyorsaniz."
|
||||
_installgrubdl1="Grub2 su ayarlarla yuklenecek :\n -> KOK bolumu:"
|
||||
_installgrubdl2=" -> Hedef bolum (MBR):"
|
||||
_installgrubdl3="Bu dogru mu? Degil ise \HAYIR\ ile devam edin ve hedef bolumu secin,dogru ise \"EVET\" ile devam edin."
|
||||
|
||||
_none_label="Hicbiri"
|
||||
|
||||
_mainmenuhelp="Yon tuslari ile secin ve enter tusu ile calistirin."
|
||||
_datetimetext="Tarih ve zamani girin"
|
||||
_networktext="Ag ayarini yapin"
|
||||
_preparediskstext="Disk(ler) in hazirlanmasi"
|
||||
_installsystemtext="Sistem kurulumu"
|
||||
_configuresystemtext="Sistem yapilandirilmasi"
|
||||
_instbootloadertext="Onyukleyici kurulumu"
|
||||
_quittext="Cikis"
|
||||
_installationfinished='Kurulum tamamlandi!'
|
||||
_cancelinstall="Kurulumdan cikilsin mi?"
|
||||
_instwelcomemessage="Manjaro Linux CLI Kurulum aracinin test surumune hosgeldiniz. \nBu surum, Manjaro' yu diskinize kurmanizda calismayabilir. \nBazi ozellikler henuz tumuyle test edilmemistir. Iyi sanslar!"
|
||||
_forgotsystemconf="Bilgi\n\nSistem yapilandirmasini unuttunuz."
|
||||
_forgotinstalling="Bilgi\n\nyapilandirmadan once kurulum yapmaniz daha mantiklidir."
|
||||
_forgotpreparehd="Bilgi\n\nOnce HDD 'nizi hazirlayin."
|
||||
|
||||
_activate_dmraid="dmraid dizilisi etkinlestiriliyor..."
|
||||
|
||||
_scanning_lvm2="Mantiksal birimler taraniyor..."
|
||||
_activate_lvm2="Mantiksal birimler etkinlestiriliyor..."
|
||||
|
||||
_activate_raid="RAID duzeni etkinlestiriliyor..."
|
||||
|
||||
_scanning_luks="Seckin sifreli aygitlar taraniyor..."
|
||||
_setup_luks="Kurulum, seckin sifreli aygitlar algiladi, etkinlestirilsin mi?"
|
||||
|
||||
_destdir_1="Icinde kurulum bagli bolumleri algilayamadi "
|
||||
_destdir_2=", Lutfen once baglama noktalarini belirleyin."
|
||||
|
||||
_geteditor="Yazi Yonetinizi belirleyin"
|
||||
_nano="nano (kolaydir)"
|
||||
|
||||
_menu_descg="\nPARTUUID ve PARTLABEL, GPT disklerine ozgudur.\nGPT disklerinde, PARTUUID onerilir.\nMBR/msdos diskleri,"
|
||||
_device_name_scheme_1="Ayar dosyalarinda kullanacaginiz aygit semasi adini secin. "
|
||||
_device_name_scheme_2="FSUUID onerilir."
|
||||
|
||||
_gptinfo="GUID Bolumleme Tablosu mu kullanacaksiniz(GPT)?\n\nFiziksel diskler arayuzu icin bir standarttir.UEFI nin bir parcasi olmasina ragmen(BIOS PC lerde degistirilebilir),bazi bios sistemlerde, en fazla 2 TiB disk alanini destekleyen.\n\nWindows XP ve daha eski Windows sistemler, kirilmadigi surece GUID bolumlendirme kullanilmis diskleri okuyamazlar yazamazlar,ancak, Vista, Windows 7 ve yeni Windows sistemler,GPT disklere erisebilen UEFI sistem icerirler.(Sadece UEFI sistemler Windows' u <gpt disklerde baslatabilir).\n\nDikkat:\n- Lutfen, diger sisteminizin GPT destegini kontrol edin!\n- LVM, RAID destekli GRUB2 icin bu secenegi secin\n vs.., her zamanki 30 k MS-DOS eski MBR bosluguna sigmaz.\n- BIOS-GPT boot bazi Lenovo sistemlerde calismaz (Onyukleyici \n varligindan bagimsiz). "
|
||||
|
||||
_disable_swap="Takas alani devre disi birakiliyor,bagli aygitlar ayriliyor..."
|
||||
|
||||
_stop_md="Kurulum, isler durumda raid aygitlari algiladi, devre disi birakmak istiyor musunuz?"
|
||||
|
||||
_disable_raid="Tum raid aygitlari devre disi birakiliyor..."
|
||||
|
||||
_clear_superblock="Tum yazilimsal raid suruculerinin superbloklari temizleniyor..."
|
||||
_setup_superblock="Kurulum raid suruculere ait superbloklar tespit etti, bu superbloklari temizlemek ister misiniz ?"
|
||||
_clean_superblock="Raid aygit yazilimlarindan superbloklar temizleniyor..."
|
||||
|
||||
_stoplvm="Kurulum lvm birimleri algiladi, kaldirmak istiyor musunuz?"
|
||||
_removelvm="Mantiksal birimler kaldiriliyor ..."
|
||||
_removelvg="Mantiksal gruplar kaldiriliyor ..."
|
||||
_removepvm="Fiziksel birimler kaldiriliyor ..."
|
||||
|
||||
_stopluks="Setup detected running luks encrypted devices, do you want to remove them completely?"
|
||||
_removeluks="Removing luks encrypted devices ..."
|
||||
_stoprluks="Setup detected not running luks encrypted devices, do you want to remove them completely?"
|
||||
_removerluks="Removing not running luks encrypted devices ..."
|
||||
|
||||
_deactivateraid="Deactivating dmraid devices ..."
|
||||
_setupraid="Setup detected running dmraid devices and/or running lvm2, luks encrypted devices. If you reduced/deleted partitions on your dmraid device a complete reset of devicemapper devices is needed. This will reset also your created lvm2 or encrypted devices. Are you sure you want to do this?"
|
||||
_resetraid="Resetting devicemapper devices ..."
|
||||
_resetdm="Resetting devicemapper devices ..."
|
||||
_reactivatedm="Reactivating dmraid devices ..."
|
||||
|
||||
_help_raid="LINUX YAZILIMI RAID OZETI:\n
|
||||
-----------------------------\n\n
|
||||
Linear mode:\n
|
||||
You have two or more partitions which are not necessarily the same size\n
|
||||
(but of course can be), which you want to append to each other.\n
|
||||
Spare-disks are not supported here. If a disk dies, the array dies with\n
|
||||
it.\n\n
|
||||
RAID-0:\n
|
||||
You have two or more devices, of approximately the same size, and you want\n
|
||||
to combine their storage capacity and also combine their performance by\n
|
||||
accessing them in parallel. Like in Linear mode, spare disks are not\n
|
||||
supported here either. RAID-0 has no redundancy, so when a disk dies, the\n
|
||||
array goes with it.\n\n
|
||||
RAID-1:\n
|
||||
You have two devices of approximately same size, and you want the two to\n
|
||||
be mirrors of each other. Eventually you have more devices, which you\n
|
||||
want to keep as stand-by spare-disks, that will automatically become a\n
|
||||
part of the mirror if one of the active devices break.\n\n
|
||||
RAID-4:\n
|
||||
You have three or more devices of roughly the same size and you want\n
|
||||
a way that protects data against loss of any one disk.\n
|
||||
Fault tolerance is achieved by adding an extra disk to the array, which\n
|
||||
is dedicated to storing parity information. The overall capacity of the\n
|
||||
array is reduced by one disk.\n
|
||||
The storage efficiency is 66 percent. With six drives, the storage\n
|
||||
efficiency is 87 percent. The main disadvantage is poor performance for\n
|
||||
multiple,\ simultaneous, and independent read/write operations.\n
|
||||
Thus, if any disk fails, all data stay intact. But if two disks fail,\n
|
||||
all data is lost.\n\n
|
||||
RAID-5:\n
|
||||
You have three or more devices of roughly the same size, you want to\n
|
||||
combine them into a larger device, but still to maintain a degree of\n
|
||||
redundancy fordata safety. Eventually you have a number of devices to use\n
|
||||
as spare-disks, that will not take part in the array before another device\n
|
||||
fails. If you use N devices where the smallest has size S, the size of the\n
|
||||
entire array will be (N-1)*S. This \"missing\" space is used for parity\n
|
||||
(redundancy) information. Thus, if any disk fails, all data stay intact.\n
|
||||
But if two disks fail, all data is lost.\n\n
|
||||
RAID-6:\n
|
||||
You have four or more devices of roughly the same size and you want\n
|
||||
a way that protects data against loss of any two disks.\n
|
||||
Fault tolerance is achieved by adding an two extra disk to the array,\n
|
||||
which is dedicated to storing parity information. The overall capacity\n
|
||||
of the array is reduced by 2 disks.\n
|
||||
Thus, if any two disks fail, all data stay intact. But if 3 disks fail,\n
|
||||
all data is lost.\n\n
|
||||
RAID-10:\n
|
||||
Shorthand for RAID1+0, a mirrored striped array and needs a minimum of\n
|
||||
two disks. It provides superior data security and can survive multiple\n
|
||||
disk failures. The main disadvantage is cost, because 50% of your\n
|
||||
storage is duplication."
|
||||
|
||||
_alldm="All devices in use. No more devices left for new creation."
|
||||
|
||||
_enter_node="Enter the node name for the raiddevice:\n/dev/md[number]\n/dev/md0\n/dev/md1\n\n"
|
||||
_enter_node2="Enter the node name for partitionable raiddevice:\n/dev/md_d[number]\n/dev/md_d0\n/dev/md_d1"
|
||||
_error_node="ERROR: You have defined 2 identical node names! Please enter another name."
|
||||
_raid_level="Select the raid level you want to use"
|
||||
_select_partiy="Select the parity layout you want to use (default is left-symmetric)"
|
||||
_select_dv="Select device"
|
||||
_select_addv="Select additional device"
|
||||
_degraded_raid="Would you like to create a degraded raid on"
|
||||
_question_raid1="Would you like to create"
|
||||
_question_raid2="like this?"
|
||||
_parted_raid="Now you'll be put into the parted program where you can partition your raiddevice to your needs."
|
||||
_no_raid_left="No devices left for physical volume creation."
|
||||
_select_dvnr1="Select additional device number"
|
||||
_select_dvnr2="for physical volume"
|
||||
_create_vm="Would you like to create physical volume on devices below?"
|
||||
_creating_vm="Creating physical volume on"
|
||||
|
||||
_no_vg_left="No devices left for Volume Group creation."
|
||||
_enter_vg="Enter the Volume Group name:"
|
||||
_error_vg="ERROR: You have defined 2 identical Volume Group names! Please enter another name."
|
||||
_info_vg="Physical Volumes that are not shown in next dialog, are already in use!"
|
||||
|
||||
_for="for"
|
||||
|
||||
_select_pvg="Select Physical Volume"
|
||||
_select_ad_pvg="Select additional Physical Volume"
|
||||
_create_vg="Would you like to create Volume Group like this?"
|
||||
_creating_vg="Creating Volume Group"
|
||||
|
||||
_help_lvm="LOGICAL VOLUME SUMMARY:\n
|
||||
-----------------------------\n\n
|
||||
LVM is a Logical Volume Manager for the Linux kernel. With LVM you can\n
|
||||
abstract your storage space and have \"virtual partitions\" which are easier\n
|
||||
to modify.\n\nThe basic building block of LVM are:\n
|
||||
- Physical volume (PV):\n
|
||||
Partition on hard disk (or even hard disk itself or loopback file) on\n
|
||||
which you can have virtual groups. It has a special header and is\n
|
||||
divided into physical extents. Think of physical volumes as big building\n
|
||||
blocks which can be used to build your hard drive.\n
|
||||
- Volume group (VG):\n
|
||||
Group of physical volumes that are used as storage volume (as one disk).\n
|
||||
They contain logical volumes. Think of volume groups as hard drives.\n
|
||||
- Logical volume(LV):\n
|
||||
A \"virtual/logical partition\" that resides in a volume group and is\n
|
||||
composed of physical extents. Think of logical volumes as normal\n
|
||||
partitions."
|
||||
|
||||
_help_luks="LUKS ENCRYPTION SUMMARY:\n
|
||||
-----------------------------\n\n
|
||||
Encryption is useful for two (related) reasons.\n
|
||||
Firstly, it prevents anyone with physical access to your computer,\n
|
||||
and your hard drive in particular, from getting the data from it\n
|
||||
(unless they have your passphrase/key).\n
|
||||
Secondly, it allows you to wipe the data on your hard drive with\n
|
||||
far more confidence in the event of you selling or discarding\n
|
||||
your drive.\n
|
||||
Basically, it supplements the access control mechanisms of the operating\n
|
||||
system (like file permissions) by making it harder to bypass the operating\n
|
||||
system by inserting a boot CD, for example. Encrypting the root partition\n
|
||||
prevents anyone from using this method to insert viruses or trojans onto\n
|
||||
your computer.\n\n
|
||||
ATTENTION:\n
|
||||
Having encrypted partitions does not protect you from all possible\n
|
||||
attacks. The encryption is only as good as your key management, and there\n
|
||||
are other ways to break into computers, while they are running."
|
|
@ -1,11 +0,0 @@
|
|||
# Translation
|
||||
_mainmenuhelp="Use ↓ and ↑ to choose an entry, enter to launch it."
|
||||
_mainmenulabel="Wrapper menu"
|
||||
_stableinstaller="Use stable installer"
|
||||
_testinginstaller="Use testing installer (EFI support)"
|
||||
_loadinginstaller="Loading installer. Please wait ..."
|
||||
_quittext="Quit"
|
||||
_exitwrapper="Quit Installer Wrapper?"
|
||||
_cancelwrapper="Cancel installation?"
|
||||
_wrapperwelcomemessage="Welcome to the Manjaro Linux Installation Framework. \nWe offer two versions of our CLI installer. \nOur 'stable installer' is known to work but don't get new features added. \nWith our 'testing installer' you have new features like EFI, btrfs and software raid support. \n\nChoose the installer which fit's best for you."
|
||||
_networktext="Set up Network (optional)"
|
|
@ -1,11 +0,0 @@
|
|||
# Translation
|
||||
_mainmenuhelp="↓ ve ↑ tuslari ile seciminizi yapin ve enter tusu ile calistirin."
|
||||
_mainmenulabel="Kalip menusu"
|
||||
_stableinstaller="Kararli Kurulum Aracini Kullan"
|
||||
_testinginstaller="Test Kurulum Aracini Kullan (EFI destekli)"
|
||||
_loadinginstaller="Kurulum Araci Aciliyor. Lutfen bekleyin..."
|
||||
_quittext="Cikis"
|
||||
_exitwrapper="Kurulum Kabugundan Cikilsinmi?"
|
||||
_cancelwrapper="Kurulum Iptal edilsin mi?"
|
||||
_wrapperwelcomemessage="Manjaro Linux Kurulum Kabugu' na hos geldiniz. \nSize iki CLI kurulum secenegi sunuyoruz.\nKararli Kurulum Araci yeni eklenen ozellikleri desteklemeksizin calisir. \n'Deneme Surumu Kurulum Araci' miz ise, EFI, btrfs ve raid yazilimlarini desteklemektedir.\n\nSize en iyi hitap eden Kurulum Aracini seciniz."
|
||||
_networktext="Ag ayarini yapin (secimli)"
|
|
@ -1,38 +0,0 @@
|
|||
#! /usr/bin/python3
|
||||
# -*-coding:utf-8 -*
|
||||
|
||||
from gi.repository import Gtk, Gdk
|
||||
|
||||
window = Gtk.Window()
|
||||
window.set_default_size(300, 150)
|
||||
window.connect("delete-event", Gtk.main_quit)
|
||||
window.set_title("Welcome to Manjaro")
|
||||
window.set_icon_from_file("/usr/share/icons/manjaro.png")
|
||||
|
||||
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
|
||||
label1 = Gtk.Label()
|
||||
label1.set_markup("\n<big><big><b><u>Welcome to Manjaro</u></b></big></big>\n\n"
|
||||
"<big>Thank you for using Manjaro</big>\n")
|
||||
label1.set_justify(Gtk.Justification.CENTER)
|
||||
box.pack_start(label1, True, True, 0)
|
||||
|
||||
label2 = Gtk.Label()
|
||||
label2.set_markup("<big>manjaro user password is: <i>manjaro</i></big>\n"
|
||||
"<big>root password is: <i>manjaro</i></big>\n")
|
||||
label2.set_justify(Gtk.Justification.CENTER)
|
||||
box.pack_start(label2, True, True, 0)
|
||||
|
||||
label3 = Gtk.Label()
|
||||
label3.set_markup("<big>For news and more information</big>\n"
|
||||
"<big>please visit <a href=\"http://manjaro.org\""
|
||||
"title=\"Click for more infos\">manjaro.org</a></big>.\n")
|
||||
label3.set_justify(Gtk.Justification.CENTER)
|
||||
box.pack_start(label3, True, True, 0)
|
||||
|
||||
window.add(box)
|
||||
window.show_all()
|
||||
|
||||
|
||||
|
||||
Gtk.main()
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/bash
|
||||
# update setup
|
||||
|
||||
# do UID checking here so someone can at least get usage instructions
|
||||
if [ "$EUID" != "0" ]; then
|
||||
echo "error: This script must be run as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# force to use english
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_MESSAGES=en_US.UTF-8
|
||||
|
||||
if [ ! -e "/opt/livecd" ] ; then
|
||||
echo "error: This script must be run on livecd."
|
||||
fi
|
||||
|
||||
wget http://git.manjaro.org/core/manjaroiso/blobs/raw/master/configs/shared/overlay-livecd/opt/livecd/update-setup-files -O /opt/livecd/update-setup-files
|
||||
|
||||
echo "Cleaning framework..."
|
||||
for file in $(cat /opt/livecd/update-setup-files); do
|
||||
rm /opt/livecd/$file
|
||||
|
||||
echo "Downloading new framework..."
|
||||
wget http://git.manjaro.org/core/manjaroiso/blobs/raw/master/configs/shared/overlay-livecd/opt/livecd/$file -O /opt/livecd/$file
|
||||
chmod a+x /opt/livecd/km
|
||||
chmod a+x /opt/livecd/lg
|
||||
chmod a+x /opt/livecd/livecd
|
||||
chmod a+x /opt/livecd/setup
|
||||
chmod a+x /opt/livecd/setup-0.8
|
||||
chmod a+x /opt/livecd/setup-0.9
|
||||
done
|
||||
|
||||
clear
|
||||
echo "Update done. Start with 'sudo setup'"
|
|
@ -1,18 +0,0 @@
|
|||
functions
|
||||
km
|
||||
km-en.lng
|
||||
km-tr.lng
|
||||
livecd
|
||||
lg
|
||||
lg-en.lng
|
||||
lg-tr.lng
|
||||
setup
|
||||
setup-en.lng
|
||||
setup-tr.lng
|
||||
setup-0.8
|
||||
setup-0.8-en.lng
|
||||
setup-0.8-tr.lng
|
||||
setup-0.9
|
||||
setup-0.9-en.lng
|
||||
setup-0.9-tr.lng
|
||||
|
|
@ -1,416 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# check if we have a internet connection
|
||||
ping_check=$(LC_ALL=C ping -c 1 www.manjaro.org | grep "1 received")
|
||||
|
||||
set_alsa ()
|
||||
{
|
||||
#set_alsa
|
||||
# amixer binary
|
||||
local alsa_amixer="chroot ${DESTDIR} /usr/bin/amixer"
|
||||
|
||||
# enable all known (tm) outputs
|
||||
$alsa_amixer -c 0 sset "Master" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Front" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Side" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Surround" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Center" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "LFE" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Headphone" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Speaker" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "PCM" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Line" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "External" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "FM" 50% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Master Mono" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Master Digital" 70% unmute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Analog Mix" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Aux" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Aux2" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "PCM Center" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "PCM Front" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "PCM LFE" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "PCM Side" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "PCM Surround" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Playback" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "PCM,1" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "DAC" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "DAC,0" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "DAC,0" -12dB &> /dev/null
|
||||
$alsa_amixer -c 0 sset "DAC,1" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "DAC,1" -12dB &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Synth" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "CD" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Wave" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Music" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "AC97" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "Analog Front" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "VIA DXS,0" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "VIA DXS,1" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "VIA DXS,2" 70% unmute &> /dev/null
|
||||
$alsa_amixer -c 0 sset "VIA DXS,3" 70% unmute &> /dev/null
|
||||
|
||||
# set input levels
|
||||
$alsa_amixer -c 0 sset "Mic" 70% mute &>/dev/null
|
||||
$alsa_amixer -c 0 sset "IEC958" 70% mute &>/dev/null
|
||||
|
||||
# special stuff
|
||||
$alsa_amixer -c 0 sset "Master Playback Switch" on &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Master Surround" on &>/dev/null
|
||||
$alsa_amixer -c 0 sset "SB Live Analog/Digital Output Jack" off &>/dev/null
|
||||
$alsa_amixer -c 0 sset "Audigy Analog/Digital Output Jack" off &>/dev/null
|
||||
}
|
||||
|
||||
# set_dm(){
|
||||
# local _dm
|
||||
#
|
||||
# # do_setuplightdm
|
||||
# if [ -e "/usr/bin/lightdm" ] ; then
|
||||
# mkdir -p /run/lightdm > /dev/null
|
||||
# getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm
|
||||
# getent passwd lightdm > /dev/null 2>&1 || useradd -c 'LightDM Display Manager' -u 620 -g lightdm -d /var/run/lightdm -s /usr/bin/nologin lightdm
|
||||
# passwd -l lightdm > /dev/null
|
||||
# chown -R lightdm:lightdm /var/run/lightdm > /dev/null
|
||||
# if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=cinnamon/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/mate-session" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=mate/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=enlightenment/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=openbox/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/startlxde" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=LXDE/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=lxqt/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/pekwm" ] ; then
|
||||
# sed -i -e 's/^.*user-session=.*/user-session=pekwm/' /etc/lightdm/lightdm.conf
|
||||
# fi
|
||||
# sed -i -e "s/^.*autologin-user=.*/autologin-user=${username}/" /etc/lightdm/lightdm.conf
|
||||
# sed -i -e 's/^.*autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
|
||||
# # sed -i -e 's/^.*autologin-in-background=.*/autologin-in-background=true/' /etc/lightdm/lightdm.conf
|
||||
# groupadd autologin
|
||||
# gpasswd -a ${username} autologin
|
||||
# chmod +r /etc/lightdm/lightdm.conf
|
||||
# # livecd fix
|
||||
# mkdir -p /var/lib/lightdm-data
|
||||
#
|
||||
# if [[ -e /run/systemd ]]; then
|
||||
# systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
|
||||
# systemd-tmpfiles --create --remove
|
||||
# fi
|
||||
# _dm='lightdm'
|
||||
# fi
|
||||
#
|
||||
# # do_setupkdm
|
||||
# if [ -e "/usr/share/config/kdm/kdmrc" ] ; then
|
||||
# getent group kdm >/dev/null 2>&1 || groupadd -g 135 kdm &>/dev/null
|
||||
# getent passwd kdm >/dev/null 2>&1 || useradd -u 135 -g kdm -d /var/lib/kdm -s /bin/false -r -M kdm &>/dev/null
|
||||
# chown -R 135:135 var/lib/kdm &>/dev/null
|
||||
# xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
# if [ -e "/usr/bin/update-desktop-database" ] ; then
|
||||
# update-desktop-database -q
|
||||
# fi
|
||||
# sed -i -e "s/^.*AutoLoginUser=.*/AutoLoginUser=${username}/" /usr/share/config/kdm/kdmrc
|
||||
# sed -i -e "s/^.*AutoLoginPass=.*/AutoLoginPass=${username}/" /usr/share/config/kdm/kdmrc
|
||||
#
|
||||
# _dm='kdm'
|
||||
# fi
|
||||
#
|
||||
# # do_setupgdm
|
||||
# if [ -e "/usr/bin/gdm" ] ; then
|
||||
# getent group gdm >/dev/null 2>&1 || groupadd -g 120 gdm
|
||||
# getent passwd gdm > /dev/null 2>&1 || usr/bin/useradd -c 'Gnome Display Manager' -u 120 -g gdm -d /var/lib/gdm -s /usr/bin/nologin gdm
|
||||
# passwd -l gdm > /dev/null
|
||||
# chown -R gdm:gdm /var/lib/gdm &> /dev/null
|
||||
# if [ -d "/var/lib/AccountsService/users" ] ; then
|
||||
# echo "[User]" > /var/lib/AccountsService/users/gdm
|
||||
# if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
# echo "XSession=xfce" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
# echo "XSession=cinnamon" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# if [ -e "/usr/bin/mate-session" ] ; then
|
||||
# echo "XSession=mate" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
# echo "XSession=enlightenment" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
# echo "XSession=openbox" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# if [ -e "/usr/bin/startlxde" ] ; then
|
||||
# echo "XSession=LXDE" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
# echo "XSession=LXQt" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# echo "Icon=" >> /var/lib/AccountsService/users/gdm
|
||||
# fi
|
||||
# _dm='gdm'
|
||||
# fi
|
||||
#
|
||||
# # do_setupmdm
|
||||
# if [ -e "/usr/bin/mdm" ] ; then
|
||||
# getent group mdm >/dev/null 2>&1 || groupadd -g 128 mdm
|
||||
# getent passwd mdm >/dev/null 2>&1 || usr/bin/useradd -c 'Linux Mint Display Manager' -u 128 -g mdm -d /var/lib/mdm -s /usr/bin/nologin mdm
|
||||
# passwd -l mdm > /dev/null
|
||||
# chown root:mdm /var/lib/mdm > /dev/null
|
||||
# chmod 1770 /var/lib/mdm > /dev/null
|
||||
# if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
# sed -i 's|default.desktop|xfce.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
# sed -i 's|default.desktop|cinnamon.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
# sed -i 's|default.desktop|openbox.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/mate-session" ] ; then
|
||||
# sed -i 's|default.desktop|mate.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/startlxde" ] ; then
|
||||
# sed -i 's|default.desktop|LXDE.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
# sed -i 's|default.desktop|lxqt.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
# sed -i 's|default.desktop|enlightenment.desktop|g' /etc/mdm/custom.conf
|
||||
# fi
|
||||
# _dm='mdm'
|
||||
# fi
|
||||
#
|
||||
# # do_setupsddm
|
||||
# if [ -e "/usr/bin/sddm" ] ; then
|
||||
# getent group sddm > /dev/null 2>&1 || groupadd --system sddm
|
||||
# getent passwd sddm > /dev/null 2>&1 || usr/bin/useradd -c "Simple Desktop Display Manager" --system -d /var/lib/sddm -s /usr/bin/nologin -g sddm sddm
|
||||
# passwd -l sddm > /dev/null
|
||||
# mkdir -p /var/lib/sddm
|
||||
# chown -R sddm:sddm /var/lib/sddm > /dev/null
|
||||
# sed -i -e "s|^User=.*|User=${username}|" /etc/sddm.conf
|
||||
# if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=xfce.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=cinnamon.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=openbox.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/mate-session" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=mate.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/lxsession" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=LXDE.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=lxqt.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=enlightenment.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/startkde" ] ; then
|
||||
# sed -i -e 's|^Session=.*|Session=plasma.desktop|' /etc/sddm.conf
|
||||
# fi
|
||||
# _dm='sddm'
|
||||
# fi
|
||||
#
|
||||
# # do_setuplxdm
|
||||
# if [ -e "/usr/bin/lxdm" ] ; then
|
||||
# if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then
|
||||
# groupadd --system lxdm > /dev/null
|
||||
# fi
|
||||
# sed -i -e "s/^.*autologin=.*/autologin=${username}/" /etc/lxdm/lxdm.conf
|
||||
# if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/startxfce4|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/cinnamon-session|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/mate-session" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/mate-session|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/enlightenment_start|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/openbox-session|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/startlxde" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/lxsession|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/lxqt-session|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# if [ -e "/usr/bin/pekwm" ] ; then
|
||||
# sed -i -e 's|^.*session=.*|session=/usr/bin/pekwm|' /etc/lxdm/lxdm.conf
|
||||
# fi
|
||||
# chgrp -R lxdm /var/lib/lxdm > /dev/null
|
||||
# chgrp lxdm /etc/lxdm/lxdm.conf > /dev/null
|
||||
# chmod +r /etc/lxdm/lxdm.conf > /dev/null
|
||||
# _dm='lxdm'
|
||||
# fi
|
||||
#
|
||||
# if [[ -e /run/openrc ]];then
|
||||
# local _conf_xdm='DISPLAYMANAGER="'${_dm}'"'
|
||||
# echo "set ${_conf_xdm}" >> /tmp/livecd.log
|
||||
# sed -i -e "s|^.*DISPLAYMANAGER=.*|${_conf_xdm}|" /etc/conf.d/xdm
|
||||
# fi
|
||||
# }
|
||||
|
||||
_configure_translation_pkgs()
|
||||
{
|
||||
# Determind which language we are using
|
||||
local LNG_INST=$(cat ${DESTDIR}/etc/locale.conf | grep LANG= | cut -d= -f2 | cut -d. -f1)
|
||||
|
||||
[ -n "$LNG_INST" ] || LNG_INST="en"
|
||||
case "$LNG_INST" in
|
||||
be_BY)
|
||||
#Belarusian
|
||||
FIREFOX_LNG_INST="firefox-i18n-be"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-be"
|
||||
LIBRE_LNG_INST="libreoffice-be"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST=""
|
||||
;;
|
||||
bg_BG)
|
||||
#Bulgarian
|
||||
FIREFOX_LNG_INST="firefox-i18n-bg"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-bg"
|
||||
LIBRE_LNG_INST="libreoffice-bg"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-bg"
|
||||
;;
|
||||
de*)
|
||||
#German
|
||||
FIREFOX_LNG_INST="firefox-i18n-de"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-de"
|
||||
LIBRE_LNG_INST="libreoffice-de"
|
||||
HUNSPELL_LNG_INST="hunspell-de"
|
||||
KDE_LNG_INST="kde-l10n-de"
|
||||
;;
|
||||
en*)
|
||||
#English (disabled libreoffice-en-US)
|
||||
FIREFOX_LNG_INST=""
|
||||
THUNDER_LNG_INST=""
|
||||
LIBRE_LNG_INST=""
|
||||
HUNSPELL_LNG_INST="hunspell-en"
|
||||
KDE_LNG_INST=""
|
||||
;;
|
||||
en_GB)
|
||||
#British English
|
||||
FIREFOX_LNG_INST="firefox-i18n-en-gb"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-en-gb"
|
||||
LIBRE_LNG_INST="libreoffice-en-GB"
|
||||
HUNSPELL_LNG_INST="hunspell-en"
|
||||
KDE_LNG_INST=""
|
||||
;;
|
||||
es*)
|
||||
#Espanol
|
||||
FIREFOX_LNG_INST="firefox-i18n-es-es"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-es-es"
|
||||
LIBRE_LNG_INST="libreoffice-es"
|
||||
HUNSPELL_LNG_INST="hunspell-es"
|
||||
KDE_LNG_INST="kde-l10n-es"
|
||||
;;
|
||||
es_AR)
|
||||
#Espanol (Argentina)
|
||||
FIREFOX_LNG_INST="firefox-i18n-es-ar"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-es-ar"
|
||||
LIBRE_LNG_INST="libreoffice-es"
|
||||
HUNSPELL_LNG_INST="hunspell-es"
|
||||
KDE_LNG_INST="kde-l10n-es"
|
||||
;;
|
||||
fr*)
|
||||
#Francais
|
||||
FIREFOX_LNG_INST="firefox-i18n-fr"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-fr"
|
||||
LIBRE_LNG_INST="libreoffice-fr"
|
||||
HUNSPELL_LNG_INST="hunspell-fr"
|
||||
KDE_LNG_INST="kde-l10n-fr"
|
||||
;;
|
||||
it*)
|
||||
#Italian
|
||||
FIREFOX_LNG_INST="firefox-i18n-it"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-it"
|
||||
LIBRE_LNG_INST="libreoffice-it"
|
||||
HUNSPELL_LNG_INST="hunspell-it"
|
||||
KDE_LNG_INST="kde-l10n-it"
|
||||
;;
|
||||
pl_PL)
|
||||
#Polish
|
||||
FIREFOX_LNG_INST="firefox-i18n-pl"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-pl"
|
||||
LIBRE_LNG_INST="libreoffice-pl"
|
||||
HUNSPELL_LNG_INST="hunspell-pl"
|
||||
KDE_LNG_INST="kde-l10n-pl"
|
||||
;;
|
||||
pt_BR)
|
||||
#Brazilian Portuguese
|
||||
FIREFOX_LNG_INST="firefox-i18n-pt-br"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-pt-br"
|
||||
LIBRE_LNG_INST="libreoffice-pt-BR"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-pt_br"
|
||||
;;
|
||||
pt_PT)
|
||||
#Portuguese
|
||||
FIREFOX_LNG_INST="firefox-i18n-pt-pt"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-pt-pt"
|
||||
LIBRE_LNG_INST="libreoffice-pt"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-pt"
|
||||
;;
|
||||
ro_RO)
|
||||
#Romanian
|
||||
FIREFOX_LNG_INST="firefox-i18n-ro"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-ro"
|
||||
LIBRE_LNG_INST="libreoffice-ro"
|
||||
HUNSPELL_LNG_INST="hunspell-ro"
|
||||
KDE_LNG_INST="kde-l10n-ro"
|
||||
;;
|
||||
ru*)
|
||||
#Russian
|
||||
FIREFOX_LNG_INST="firefox-i18n-ru"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-ru"
|
||||
LIBRE_LNG_INST="libreoffice-ru"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-ru"
|
||||
;;
|
||||
sv*)
|
||||
#Swedish
|
||||
FIREFOX_LNG_INST="firefox-i18n-sv-se"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-sv-se"
|
||||
LIBRE_LNG_INST="libreoffice-sv"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-sv"
|
||||
;;
|
||||
tr*)
|
||||
#Turkish
|
||||
FIREFOX_LNG_INST="firefox-i18n-tr"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-tr"
|
||||
LIBRE_LNG_INST="libreoffice-tr"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-tr"
|
||||
;;
|
||||
uk_UA)
|
||||
#Ukrainian
|
||||
FIREFOX_LNG_INST="firefox-i18n-uk"
|
||||
THUNDER_LNG_INST="thunderbird-i18n-uk"
|
||||
LIBRE_LNG_INST="libreoffice-uk"
|
||||
HUNSPELL_LNG_INST=""
|
||||
KDE_LNG_INST="kde-l10n-uk"
|
||||
;;
|
||||
esac
|
||||
}
|
|
@ -1,987 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Configure Desktop image
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/xfce-image.sqfs" ] ; then
|
||||
DESKTOP="XFCE"
|
||||
DESKTOP_IMG="xfce-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/openbox-image.sqfs" ] ; then
|
||||
DESKTOP="OPENBOX"
|
||||
DESKTOP_IMG="openbox-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/net-image.sqfs" ] ; then
|
||||
DESKTOP="NET"
|
||||
DESKTOP_IMG="net-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/gnome-image.sqfs" ] ; then
|
||||
DESKTOP="GNOME"
|
||||
DESKTOP_IMG="gnome-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/cinnamon-image.sqfs" ] ; then
|
||||
DESKTOP="CINNAMON"
|
||||
DESKTOP_IMG="cinnamon-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/mate-image.sqfs" ] ; then
|
||||
DESKTOP="MATE"
|
||||
DESKTOP_IMG="mate-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/kde-image.sqfs" ] ; then
|
||||
DESKTOP="KDE"
|
||||
DESKTOP_IMG="kde-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lxde-image.sqfs" ] ; then
|
||||
DESKTOP="LXDE"
|
||||
DESKTOP_IMG="lxde-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lxqt-image.sqfs" ] ; then
|
||||
DESKTOP="LXQt"
|
||||
DESKTOP_IMG="lxqt-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/enlightenment-image.sqfs" ] ; then
|
||||
DESKTOP="ENLIGHTENMENT"
|
||||
DESKTOP_IMG="enlightenment-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/pekwm-image.sqfs" ] ; then
|
||||
DESKTOP="PekWM"
|
||||
DESKTOP_IMG="pekwm-image"
|
||||
fi
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/custom-image.sqfs" ] ; then
|
||||
DESKTOP="CUSTOM"
|
||||
DESKTOP_IMG="custom-image"
|
||||
fi
|
||||
|
||||
DIALOG() {
|
||||
# parameters: see dialog(1)
|
||||
# returns: whatever dialog did
|
||||
dialog --backtitle "$TITLE" --aspect 15 --yes-label "$_yes" --no-label "$_no" --cancel-label "$_cancel" "$@"
|
||||
return $?
|
||||
}
|
||||
|
||||
set_dm_chroot(){
|
||||
local _dm
|
||||
# setup lightdm
|
||||
if [ -e "/usr/bin/lightdm" ] ; then
|
||||
mkdir -p ${DESTDIR}/run/lightdm &>/dev/null
|
||||
chroot ${DESTDIR} getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm
|
||||
chroot ${DESTDIR} getent passwd lightdm > /dev/null 2>&1 || useradd -c 'LightDM Display Manager' -u 620 -g lightdm -d /var/run/lightdm -s /usr/bin/nologin lightdm
|
||||
chroot ${DESTDIR} passwd -l lightdm > /dev/null
|
||||
chown -R lightdm:lightdm ${DESTDIR}/run/lightdm &>/dev/null
|
||||
if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
sed -i -e 's/^.*user-session=.*/user-session=xfce/' ${DESTDIR}/etc/lightdm/lightdm.conf
|
||||
ln -s /usr/lib/lightdm/lightdm/gdmflexiserver ${DESTDIR}/usr/bin/gdmflexiserver
|
||||
fi
|
||||
chmod +r ${DESTDIR}/etc/lightdm/lightdm.conf &>/dev/null
|
||||
_dm="lightdm"
|
||||
fi
|
||||
|
||||
# setup gdm
|
||||
if [ -e "/usr/bin/gdm" ] ; then
|
||||
chroot ${DESTDIR} getent group gdm >/dev/null 2>&1 || groupadd -g 120 gdm
|
||||
chroot ${DESTDIR} getent passwd gdm > /dev/null 2>&1 || usr/bin/useradd -c 'Gnome Display Manager' -u 120 -g gdm -d /var/lib/gdm -s /usr/bin/nologin gdm
|
||||
chroot ${DESTDIR} passwd -l gdm > /dev/null
|
||||
chroot ${DESTDIR} chown -R gdm:gdm /var/lib/gdm &>/dev/null
|
||||
if [ -d "${DESTDIR}/var/lib/AccountsService/users" ] ; then
|
||||
echo "[User]" > ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
echo "XSession=xfce" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
echo "XSession=cinnamon" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
echo "XSession=mate" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
echo "XSession=enlightenment" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
echo "XSession=openbox" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
if [ -e "/usr/bin/startlxde" ] ; then
|
||||
echo "XSession=LXDE" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
echo "XSession=LXQt" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
echo "Icon=" >> ${DESTDIR}/var/lib/AccountsService/users/gdm
|
||||
fi
|
||||
_dm="gdm"
|
||||
fi
|
||||
|
||||
# setup mdm
|
||||
if [ -e "/usr/bin/mdm" ] ; then
|
||||
chroot ${DESTDIR} getent group mdm >/dev/null 2>&1 || groupadd -g 128 mdm
|
||||
chroot ${DESTDIR} getent passwd mdm >/dev/null 2>&1 || usr/bin/useradd -c 'Linux Mint Display Manager' -u 128 -g mdm -d /var/lib/mdm -s /usr/bin/nologin mdm
|
||||
chroot ${DESTDIR} passwd -l mdm > /dev/null
|
||||
chroot ${DESTDIR} chown root:mdm /var/lib/mdm > /dev/null
|
||||
chroot ${DESTDIR} chmod 1770 /var/lib/mdm > /dev/null
|
||||
if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
sed -i 's|default.desktop|xfce.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
sed -i 's|default.desktop|cinnamon.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
sed -i 's|default.desktop|openbox.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
sed -i 's|default.desktop|mate.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/startlxde" ] ; then
|
||||
sed -i 's|default.desktop|LXDE.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
sed -i 's|default.desktop|lxqt.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
sed -i 's|default.desktop|enlightenment.desktop|g' ${DESTDIR}/etc/mdm/custom.conf
|
||||
fi
|
||||
_dm="mdm"
|
||||
fi
|
||||
|
||||
# setup lxdm
|
||||
if [ -e "/usr/bin/lxdm" ] ; then
|
||||
if [ -z "`chroot ${DESTDIR} getent group "lxdm" 2> /dev/null`" ]; then
|
||||
chroot ${DESTDIR} groupadd --system lxdm &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/startxfce4|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/cinnamon-session|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/mate-session|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/enlightenment_start|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/openbox-session|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/startlxde" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/lxsession|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/lxqt-session|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/pekwm" ] ; then
|
||||
sed -i -e 's|^.*session=.*|session=/usr/bin/pekwm|' ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
fi
|
||||
chgrp -R lxdm ${DESTDIR}/var/lib/lxdm &>/dev/null
|
||||
chgrp lxdm ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
chmod +r ${DESTDIR}/etc/lxdm/lxdm.conf &>/dev/null
|
||||
_dm="lxdm"
|
||||
fi
|
||||
|
||||
# setup kdm
|
||||
if [ -e "/usr/bin/kdm" ] ; then
|
||||
chroot ${DESTDIR} getent group kdm >/dev/null 2>&1 || groupadd -g 135 kdm &>/dev/null
|
||||
chroot ${DESTDIR} getent passwd kdm >/dev/null 2>&1 || useradd -u 135 -g kdm -d /var/lib/kdm -s /bin/false -r -M kdm &>/dev/null
|
||||
chroot ${DESTDIR} chown -R 135:135 var/lib/kdm &>/dev/null
|
||||
chroot ${DESTDIR} xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
chroot ${DESTDIR} update-desktop-database -q
|
||||
_dm="kdm"
|
||||
fi
|
||||
|
||||
# setup sddm
|
||||
if [ -e "/usr/bin/sddm" ] ; then
|
||||
chroot ${DESTDIR} getent group sddm > /dev/null 2>&1 || groupadd --system sddm
|
||||
chroot ${DESTDIR} getent passwd sddm > /dev/null 2>&1 || usr/bin/useradd -c "Simple Desktop Display Manager" --system -d /var/lib/sddm -s /usr/bin/nologin -g sddm sddm
|
||||
chroot ${DESTDIR} passwd -l sddm > /dev/null
|
||||
chroot ${DESTDIR} mkdir -p /var/lib/sddm
|
||||
chroot ${DESTDIR} chown -R sddm:sddm /var/lib/sddm > /dev/null
|
||||
sed -i -e "s|^User=.*|User=${username}|" /etc/sddm.conf
|
||||
if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=xfce.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=cinnamon.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=openbox.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=mate.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/lxsession" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=LXDE.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=lxqt.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=enlightenment.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
if [ -e "/usr/bin/startkde" ] ; then
|
||||
sed -i -e 's|^Session=.*|Session=plasma.desktop|' ${DESTDIR}/etc/sddm.conf
|
||||
fi
|
||||
_dm="sddm"
|
||||
fi
|
||||
|
||||
if [[ -e /run/openrc ]];then
|
||||
local _conf_xdm='DISPLAYMANAGER="'${_dm}'"'
|
||||
echo "set ${_conf_xdm}" >> /tmp/livecd.log
|
||||
sed -i -e "s|^.*DISPLAYMANAGER=.*|${_conf_xdm}|" ${DESTDIR}/etc/conf.d/xdm
|
||||
fi
|
||||
}
|
||||
|
||||
hd_config()
|
||||
{
|
||||
# initialize special directories
|
||||
rm -v -rf ${DESTDIR}/sys ${DESTDIR}/proc ${DESTDIR}/dev &>/dev/null
|
||||
mkdir -p -v -m 1777 ${DESTDIR}/tmp &>/dev/null
|
||||
mkdir -p -v -m 1777 ${DESTDIR}/var/tmp &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/var/log/old &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/var/lock/sane &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/var/cache/pacman/pkg &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/boot/grub &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/usr/lib/locale &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/usr/share/icons/default &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/media &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/mnt &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/sys &>/dev/null
|
||||
mkdir -p -v ${DESTDIR}/proc &>/dev/null
|
||||
|
||||
# create the basic devices (/dev/{console,null,zero}) on the target
|
||||
mkdir -p -v ${DESTDIR}/dev &>/dev/null &>/dev/null
|
||||
mknod ${DESTDIR}/dev/console c 5 1 &>/dev/null
|
||||
mknod ${DESTDIR}/dev/null c 1 3 &>/dev/null
|
||||
mknod ${DESTDIR}/dev/zero c 1 5 &>/dev/null
|
||||
|
||||
# adjust permissions on /tmp and /var/tmp
|
||||
chmod -v 777 ${DESTDIR}/var/tmp &>/dev/null
|
||||
chmod -v o+t ${DESTDIR}/var/tmp &>/dev/null
|
||||
chmod -v 777 ${DESTDIR}/tmp &>/dev/null
|
||||
chmod -v o+t ${DESTDIR}/tmp &>/dev/null
|
||||
|
||||
# install /etc/resolv.conf
|
||||
cp -vf /etc/resolv.conf ${DESTDIR}/etc/resolv.conf &>/dev/null
|
||||
|
||||
echo "install configs for root" &>/dev/null
|
||||
cp -a ${DESTDIR}/etc/skel/. ${DESTDIR}/root/ &>/dev/null
|
||||
|
||||
sed -i 's/^#\(en_US.*\)/\1/' ${DESTDIR}/etc/locale.gen &>/dev/null
|
||||
|
||||
chroot_mount
|
||||
|
||||
# copy generated xorg.xonf to target
|
||||
if [ -e "/etc/X11/xorg.conf" ] ; then
|
||||
echo "copying generated xorg.conf to target"
|
||||
cp /etc/X11/xorg.conf ${DESTDIR}/etc/X11/xorg.conf &>/dev/null
|
||||
fi
|
||||
|
||||
#set_alsa
|
||||
|
||||
DIALOG --infobox "${_setupalsa}" 6 40
|
||||
sleep 3
|
||||
# configure alsa
|
||||
set_alsa
|
||||
# configure pulse
|
||||
chroot ${DESTDIR} pulseaudio-ctl normal
|
||||
# save settings
|
||||
chroot ${DESTDIR} alsactl -f /etc/asound.state store &>/dev/null
|
||||
|
||||
DIALOG --infobox "${_syncpacmandb}" 0 0
|
||||
# enable default mirror
|
||||
cp -f ${DESTDIR}/etc/pacman.d/mirrorlist ${DESTDIR}/etc/pacman.d/mirrorlist.backup
|
||||
if [ ! -z "$ping_check" ] ; then
|
||||
chroot ${DESTDIR} pacman-mirrors -g &>/dev/null
|
||||
fi
|
||||
|
||||
# copy random generated keys by pacman-init to target
|
||||
if [ -e "${DESTDIR}/etc/pacman.d/gnupg" ] ; then
|
||||
rm -rf ${DESTDIR}/etc/pacman.d/gnupg &>/dev/null
|
||||
fi
|
||||
cp -a /etc/pacman.d/gnupg ${DESTDIR}/etc/pacman.d/
|
||||
pacman-key --populate archlinux manjaro &>/dev/null
|
||||
|
||||
# sync pacman databases
|
||||
sleep 3
|
||||
chroot ${DESTDIR} pacman -Syy &> /dev/null
|
||||
|
||||
# Install drivers
|
||||
|
||||
if [ -e "/opt/livecd/pacman-gfx.conf" ] ; then
|
||||
DIALOG --infobox "${_installvideodriver}" 6 40
|
||||
|
||||
mkdir -p ${DESTDIR}/opt/livecd
|
||||
mount -o bind /opt/livecd ${DESTDIR}/opt/livecd > /tmp/mount.pkgs.log
|
||||
ls ${DESTDIR}/opt/livecd >> /tmp/mount.pkgs.log
|
||||
|
||||
# Install xf86-video driver
|
||||
if [ "${USENONFREE}" == "yes" ] || [ "${USENONFREE}" == "true" ]; then
|
||||
if [ "${VIDEO}" == "vesa" ]; then
|
||||
chroot ${DESTDIR} mhwd --install pci video-vesa --pmconfig "/opt/livecd/pacman-gfx.conf" &>/dev/null
|
||||
else
|
||||
chroot ${DESTDIR} mhwd --auto pci nonfree 0300 --pmconfig "/opt/livecd/pacman-gfx.conf" &>/dev/null
|
||||
fi
|
||||
else
|
||||
if [ "${VIDEO}" == "vesa" ]; then
|
||||
chroot ${DESTDIR} mhwd --install pci video-vesa --pmconfig "/opt/livecd/pacman-gfx.conf" &>/dev/null
|
||||
else
|
||||
chroot ${DESTDIR} mhwd --auto pci free 0300 --pmconfig "/opt/livecd/pacman-gfx.conf" &>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install network drivers
|
||||
chroot ${DESTDIR} mhwd --auto pci free 0200 --pmconfig "/opt/livecd/pacman-gfx.conf" &>/dev/null
|
||||
chroot ${DESTDIR} mhwd --auto pci free 0280 --pmconfig "/opt/livecd/pacman-gfx.conf" &>/dev/null
|
||||
|
||||
umount ${DESTDIR}/opt/livecd
|
||||
rmdir ${DESTDIR}/opt/livecd
|
||||
fi
|
||||
|
||||
# setup system services
|
||||
if [[ -e /run/systemd ]]; then
|
||||
DIALOG --infobox "${_setupsystemd}" 6 40
|
||||
sleep 3
|
||||
|
||||
chroot ${DESTDIR} systemctl enable org.cups.cupsd.service &>/dev/null
|
||||
chroot ${DESTDIR} systemctl enable dcron.service &>/dev/null
|
||||
chroot ${DESTDIR} systemctl enable NetworkManager.service &>/dev/null
|
||||
chroot ${DESTDIR} systemctl enable remote-fs.target &>/dev/null
|
||||
else
|
||||
DIALOG --infobox "${_setupopenrc}" 6 40
|
||||
sleep 3
|
||||
|
||||
chroot ${DESTDIR} rc-update add cups default &>/dev/null
|
||||
chroot ${DESTDIR} rc-update add cronie default &>/dev/null
|
||||
chroot ${DESTDIR} rc-update add metalog default &>/dev/null
|
||||
fi
|
||||
# for openrc
|
||||
if [ -e /run/openrc ]; then
|
||||
# Setup /tmp as tmpfs in fstab
|
||||
echo "tmpfs /tmp tmpfs nodev,nosuid 0 0" >> ${DESTDIR}/etc/fstab
|
||||
fi
|
||||
|
||||
DIALOG --infobox "${_setupdisplaymanager}" 6 40
|
||||
sleep 3
|
||||
|
||||
set_dm_chroot
|
||||
|
||||
# fix some apps
|
||||
|
||||
DIALOG --infobox "${_fixapps}" 6 40
|
||||
sleep 3
|
||||
|
||||
# add BROWSER var
|
||||
echo "BROWSER=/usr/bin/xdg-open" >> ${DESTDIR}/etc/environment
|
||||
echo "BROWSER=/usr/bin/xdg-open" >> ${DESTDIR}/etc/skel/.bashrc
|
||||
echo "BROWSER=/usr/bin/xdg-open" >> ${DESTDIR}/etc/profile
|
||||
# add TERM var
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/mate-image.sqfs" ] ; then
|
||||
echo "TERM=mate-terminal" >> ${DESTDIR}/etc/environment
|
||||
echo "TERM=mate-terminal" >> ${DESTDIR}/etc/profile
|
||||
fi
|
||||
|
||||
# Adjust Steam-Native when libudev.so.0 is available
|
||||
if [ -e "/usr/lib/libudev.so.0" ] || [ -e "/usr/lib32/libudev.so.0" ] ; then
|
||||
echo -e "STEAM_RUNTIME=0\nSTEAM_FRAME_FORCE_CLOSE=1" >> ${DESTDIR}/etc/environment
|
||||
fi
|
||||
|
||||
# fix_gnome_apps
|
||||
chroot ${DESTDIR} glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
chroot ${DESTDIR} gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
|
||||
chroot ${DESTDIR} dconf update
|
||||
|
||||
if [ -e "/usr/bin/gnome-keyring-daemon" ] ; then
|
||||
chroot ${DESTDIR} setcap cap_ipc_lock=ep /usr/bin/gnome-keyring-daemon &>/dev/null
|
||||
fi
|
||||
|
||||
# fix_ping_installation
|
||||
chroot ${DESTDIR} setcap cap_net_raw=ep /usr/bin/ping &>/dev/null
|
||||
chroot ${DESTDIR} setcap cap_net_raw=ep /usr/bin/ping6 &>/dev/null
|
||||
|
||||
# remove .manjaro-chroot
|
||||
chroot ${DESTDIR} rm /.manjaro-tools &>/dev/null
|
||||
|
||||
if [ -e "/usr/bin/live-installer" ] ; then
|
||||
chroot ${DESTDIR} pacman -R --noconfirm live-installer &>/dev/null
|
||||
fi
|
||||
|
||||
if [ -e "/usr/bin/thus" ] ; then
|
||||
chroot ${DESTDIR} pacman -R --noconfirm thus &>/dev/null
|
||||
fi
|
||||
|
||||
# remove virtualbox driver on real hardware
|
||||
if [ -z "$(mhwd | grep 0300:80ee:beef)" ] ; then
|
||||
chroot ${DESTDIR} pacman -Rsc --noconfirm $(pacman -Qq | grep virtualbox-guest-modules) &>/dev/null
|
||||
fi
|
||||
|
||||
# set unique machine-id
|
||||
chroot ${DESTDIR} dbus-uuidgen --ensure=/etc/machine-id
|
||||
chroot ${DESTDIR} dbus-uuidgen --ensure=/var/lib/dbus/machine-id
|
||||
|
||||
chroot_umount
|
||||
}
|
||||
|
||||
set_passwd()
|
||||
{
|
||||
# trap tmp-file for passwd
|
||||
trap "rm -f ${ANSWER}" 0 1 2 5 15
|
||||
|
||||
# get password
|
||||
DIALOG --title "$_passwdtitle" \
|
||||
--clear \
|
||||
--insecure \
|
||||
--passwordbox "$_passwddl $PASSWDUSER" 10 30 2> ${ANSWER}
|
||||
PASSWD="$(cat ${ANSWER})"
|
||||
DIALOG --title "$_passwdtitle" \
|
||||
--clear \
|
||||
--insecure \
|
||||
--passwordbox "$_passwddl2 $PASSWDUSER" 10 30 2> ${ANSWER}
|
||||
PASSWD2="$(cat ${ANSWER})"
|
||||
if [ "$PASSWD" == "$PASSWD2" ]; then
|
||||
PASSWD=$PASSWD
|
||||
_passwddl=$_passwddl1
|
||||
else
|
||||
_passwddl=$_passwddl3
|
||||
set_passwd
|
||||
fi
|
||||
}
|
||||
|
||||
# run_unsquashfs()
|
||||
# runs unsquashfs on the target system, displays output
|
||||
#
|
||||
run_unsquashfs()
|
||||
{
|
||||
# all unsquashfs output goes to /tmp/unsquashfs.log, which we tail
|
||||
# into a dialog
|
||||
( \
|
||||
touch /tmp/setup-unsquashfs-running
|
||||
echo "unsquashing $SQF_FILE..." > /tmp/unsquashfs.log; \
|
||||
echo >> /tmp/unsquashfs.log; \
|
||||
unsquashfs -f -da 32 -fr 32 -d $UNSQUASH_TARGET /bootmnt/${install_dir}/${arch}/$SQF_FILE >> /tmp/unsquashfs.log 2>&1
|
||||
rm -f /tmp/setup-unsquashfs-running
|
||||
) &
|
||||
|
||||
(
|
||||
c="0"
|
||||
while [ $c -ne 100 ]
|
||||
do
|
||||
sleep 2
|
||||
value=`cat /tmp/unsquashfs.log | grep -Eo " [0-9]*%" | sed -e "s|[^0-9]||g" | tail -1`
|
||||
sleep 2
|
||||
c=$value
|
||||
echo $c
|
||||
echo "###"
|
||||
echo "$c %"
|
||||
echo "###"
|
||||
done
|
||||
) | DIALOG --title "$_unsquash_dialog_title" --gauge "$_unsquash_dialog_info1 $SQF_FILE $_unsquash_dialog_info2" 10 60 0
|
||||
|
||||
# save unsquashfs.log
|
||||
mv "/tmp/unsquashfs.log" "/tmp/unsquashfs-$SQF_FILE.log"
|
||||
}
|
||||
|
||||
# run_mount_sqf()
|
||||
# runs mount on SQF_FILE
|
||||
run_mount_sqf()
|
||||
{
|
||||
# mount SQF_FILE to CP_SOURCE
|
||||
mount /bootmnt/${install_dir}/${arch}/${SQF_FILE} ${CP_SOURCE} -t squashfs -o loop
|
||||
}
|
||||
|
||||
# run_umount_sqf()
|
||||
# runs umount on SQF_FILE
|
||||
run_umount_sqf()
|
||||
{
|
||||
# umount SQF_FILE from CP_SOURCE
|
||||
umount ${CP_SOURCE}
|
||||
}
|
||||
|
||||
# run_cp()
|
||||
# runs cp on the target system, displays output
|
||||
#
|
||||
run_cp()
|
||||
{
|
||||
# all cp output goes to /tmp/cp.log, which we tail
|
||||
FILES_TOSYNC=$(unsquashfs -l /bootmnt/${install_dir}/${arch}/${SQF_FILE} | wc -l)
|
||||
(cp -av ${CP_SOURCE}/* ${CP_TARGET} | \
|
||||
pv -nls ${FILES_TOSYNC} | \
|
||||
grep -v ">" | grep "[0-9]*") 2>&1 | \
|
||||
DIALOG --title "$_unsquash_dialog_title" --gauge "$_unsquash_dialog_info1 $SQF_FILE $_unsquash_dialog_info2" 10 60 0
|
||||
|
||||
# save cp.log
|
||||
#mv "/tmp/cp.log" "/tmp/cp-$SQF_FILE.log"
|
||||
}
|
||||
|
||||
# run_mkinitcpio()
|
||||
# runs mkinitcpio on the target system, displays output
|
||||
#
|
||||
run_mkinitcpio() {
|
||||
chroot_mount
|
||||
# fix fsck.btrfs issue
|
||||
chroot "$DESTDIR" ln -sf /bin/true /usr/bin/fsck.btrfs &> /dev/null
|
||||
|
||||
# fix fsck.nilfs2 issue
|
||||
chroot "$DESTDIR" ln -sf /bin/true /usr/bin/fsck.nilfs2 &> /dev/null
|
||||
|
||||
# all mkinitcpio output goes to /tmp/mkinitcpio.log, which we tail
|
||||
# into a dialog
|
||||
( \
|
||||
touch /tmp/setup-mkinitcpio-running
|
||||
echo "${_runninginitcpio}" >> /tmp/mkinitcpio.log; \
|
||||
chroot "$DESTDIR" /usr/bin/mkinitcpio -p "$manjaro_kernel" >>/tmp/mkinitcpio.log 2>&1
|
||||
echo >> /tmp/mkinitcpio.log
|
||||
rm -f /tmp/setup-mkinitcpio-running
|
||||
) &
|
||||
|
||||
sleep 2
|
||||
|
||||
DIALOG --title "${_runninginitcpiotitle}" --no-kill --tailboxbg "/tmp/mkinitcpio.log" 18 70
|
||||
while [ -f /tmp/setup-mkinitcpio-running ]; do
|
||||
/bin/true
|
||||
done
|
||||
|
||||
chroot_umount
|
||||
}
|
||||
|
||||
# installsystem_unsquash()
|
||||
# installs to the target folder
|
||||
installsystem_unsquash() {
|
||||
#DIALOG --msgbox "${_installationwillstart}" 0 0
|
||||
#clear
|
||||
mkdir -p ${DESTDIR}
|
||||
#unsquashfs -f -d ${DESTDIR} /bootmnt/${install_dir}/${arch}/root-image.sqfs
|
||||
UNSQUASH_TARGET=${DESTDIR}
|
||||
SQF_FILE=root-image.sqfs
|
||||
run_unsquashfs
|
||||
echo $? > /tmp/.install-retcode
|
||||
if [ $(cat /tmp/.install-retcode) -ne 0 ]; then echo -e "\n${_installationfail}" >>/tmp/unsquasherror.log
|
||||
else echo -e "\n => Root-Image: ${_installationsuccess}" >>/tmp/unsquasherror.log
|
||||
fi
|
||||
sed -i '/dir_scan: failed to open directory [^ ]*, because File exists/d' /tmp/unsquasherror.log
|
||||
|
||||
#unsquashfs -f -d ${DESTDIR} /bootmnt/${install_dir}/${arch}/de-image.sqfs
|
||||
UNSQUASH_TARGET=${DESTDIR}
|
||||
SQF_FILE=${DESKTOP_IMG}.sqfs
|
||||
run_unsquashfs
|
||||
echo $? > /tmp/.install-retcode
|
||||
if [ $(cat /tmp/.install-retcode) -ne 0 ]; then echo -e "\n${_installationfail}" >>/tmp/unsquasherror.log
|
||||
else echo -e "\n => ${DESKTOP}-Image: ${_installationsuccess}" >>/tmp/unsquasherror.log
|
||||
fi
|
||||
sed -i '/dir_scan: failed to open directory [^ ]*, because File exists/d' /tmp/unsquasherror.log
|
||||
|
||||
# finished, display scrollable output
|
||||
local _result=''
|
||||
if [ $(cat /tmp/.install-retcode) -ne 0 ]; then
|
||||
_result="${_installationfail}"
|
||||
BREAK="break"
|
||||
else
|
||||
_result="${_installationsuccess}"
|
||||
fi
|
||||
rm /tmp/.install-retcode
|
||||
|
||||
DIALOG --title "$_result" --exit-label "${_continue_label}" \
|
||||
--textbox "/tmp/unsquasherror.log" 18 60 || return 1
|
||||
|
||||
# ensure the disk is synced
|
||||
sync
|
||||
|
||||
if [ "${BREAK}" = "break" ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
S_INSTALL=1
|
||||
NEXTITEM=4
|
||||
|
||||
# automagic time!
|
||||
# any automatic configuration should go here
|
||||
DIALOG --infobox "${_configuringsystem}" 6 40
|
||||
sleep 3
|
||||
|
||||
hd_config
|
||||
auto_fstab
|
||||
_system_is_installed=1
|
||||
}
|
||||
|
||||
# installsystem_cp()
|
||||
# installs to the target folder
|
||||
installsystem_cp() {
|
||||
#DIALOG --msgbox "${_installationwillstart}" 0 0
|
||||
#clear
|
||||
mkdir -p ${DESTDIR}
|
||||
#rsync -av --progress /source/root-image ${DESTDIR}
|
||||
CP_SOURCE=/source/root-image
|
||||
mkdir -p ${CP_SOURCE}
|
||||
CP_TARGET=${DESTDIR}
|
||||
SQF_FILE=root-image.sqfs
|
||||
run_mount_sqf
|
||||
run_cp
|
||||
run_umount_sqf
|
||||
echo $? > /tmp/.install-retcode
|
||||
if [ $(cat /tmp/.install-retcode) -ne 0 ]; then echo -e "\n${_installationfail}" >>/tmp/rsyncerror.log
|
||||
else echo -e "\n => Root-Image: ${_installationsuccess}" >>/tmp/rsyncerror.log
|
||||
fi
|
||||
|
||||
#rsync -av --progress /source/de-image ${DESTDIR}
|
||||
CP_SOURCE=/source/${DESKTOP_IMG}
|
||||
mkdir -p ${CP_SOURCE}
|
||||
CP_TARGET=${DESTDIR}
|
||||
SQF_FILE=${DESKTOP_IMG}.sqfs
|
||||
run_mount_sqf
|
||||
run_cp
|
||||
run_umount_sqf
|
||||
echo $? > /tmp/.install-retcode
|
||||
if [ $(cat /tmp/.install-retcode) -ne 0 ]; then echo -e "\n${_installationfail}" >>/tmp/rsyncerror.log
|
||||
else echo -e "\n => ${DESKTOP}-Image: ${_installationsuccess}" >>/tmp/rsyncerror.log
|
||||
fi
|
||||
|
||||
# finished, display scrollable output
|
||||
local _result=''
|
||||
if [ $(cat /tmp/.install-retcode) -ne 0 ]; then
|
||||
_result="${_installationfail}"
|
||||
BREAK="break"
|
||||
else
|
||||
_result="${_installationsuccess}"
|
||||
fi
|
||||
rm /tmp/.install-retcode
|
||||
|
||||
DIALOG --title "$_result" --exit-label "${_continue_label}" \
|
||||
--textbox "/tmp/rsyncerror.log" 18 60 || return 1
|
||||
|
||||
# ensure the disk is synced
|
||||
sync
|
||||
|
||||
if [ "${BREAK}" = "break" ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
S_INSTALL=1
|
||||
NEXTITEM=4
|
||||
|
||||
# automagic time!
|
||||
# any automatic configuration should go here
|
||||
DIALOG --infobox "${_configuringsystem}" 6 40
|
||||
sleep 3
|
||||
|
||||
hd_config
|
||||
auto_fstab
|
||||
_system_is_installed=1
|
||||
}
|
||||
|
||||
installsystem() {
|
||||
SQFPARAMETER=""
|
||||
# DIALOG --defaultno --yesno "${_installchoice}" 0 0 && SQFPARAMETER="yes"
|
||||
# if [[ "${SQFPARAMETER}" == "yes" ]]; then
|
||||
# installsystem_unsquash
|
||||
# else
|
||||
installsystem_cp
|
||||
# fi
|
||||
}
|
||||
|
||||
set_clock()
|
||||
{
|
||||
# utc or local?
|
||||
DIALOG --menu "${_machinetimezone}" 10 72 2 \
|
||||
"UTC" " " \
|
||||
"localtime" " " \
|
||||
2>${ANSWER} || return 1
|
||||
HARDWARECLOCK=$(cat ${ANSWER})
|
||||
|
||||
# timezone?
|
||||
REGIONS=""
|
||||
for i in $(grep '^[A-Z]' /usr/share/zoneinfo/zone.tab | cut -f 3 | sed -e 's#/.*##g'| sort -u); do
|
||||
REGIONS="$REGIONS $i -"
|
||||
done
|
||||
region=""
|
||||
zone=""
|
||||
while [ -z "$zone" ];do
|
||||
region=""
|
||||
while [ -z "$region" ];do
|
||||
:>${ANSWER}
|
||||
DIALOG --menu "${_selectregion}" 0 0 0 $REGIONS 2>${ANSWER}
|
||||
region=$(cat ${ANSWER})
|
||||
done
|
||||
ZONES=""
|
||||
for i in $(grep '^[A-Z]' /usr/share/zoneinfo/zone.tab | grep $region/ | cut -f 3 | sed -e "s#$region/##g"| sort -u); do
|
||||
ZONES="$ZONES $i -"
|
||||
done
|
||||
:>${ANSWER}
|
||||
DIALOG --menu "${_selecttimezone}" 0 0 0 $ZONES 2>${ANSWER}
|
||||
zone=$(cat ${ANSWER})
|
||||
done
|
||||
TIMEZONE="$region/$zone"
|
||||
|
||||
# set system clock from hwclock - stolen from rc.sysinit
|
||||
local HWCLOCK_PARAMS=""
|
||||
|
||||
|
||||
if [[ -e /run/openrc ]];then
|
||||
local _conf_clock='clock="'${HARDWARECLOCK}'"'
|
||||
sed -i -e "s|^.*clcok=.*|${_conf_clock}|" /etc/conf.d/hwclock
|
||||
fi
|
||||
if [ "$HARDWARECLOCK" = "UTC" ]; then
|
||||
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
|
||||
else
|
||||
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
|
||||
if [[ -e /run/systemd ]];then
|
||||
echo "0.0 0.0 0.0" > /etc/adjtime &> /dev/null
|
||||
echo "0" >> /etc/adjtime &> /dev/null
|
||||
echo "LOCAL" >> /etc/adjtime &> /dev/null
|
||||
fi
|
||||
fi
|
||||
if [ "$TIMEZONE" != "" -a -e "/usr/share/zoneinfo/$TIMEZONE" ]; then
|
||||
/bin/rm -f /etc/localtime
|
||||
#/bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
|
||||
ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
|
||||
fi
|
||||
/usr/bin/hwclock --hctosys $HWCLOCK_PARAMS --noadjfile
|
||||
|
||||
if [[ -e /run/openrc ]];then
|
||||
echo "${TIMEZONE}" > /etc/timezone
|
||||
fi
|
||||
|
||||
# display and ask to set date/time
|
||||
DIALOG --calendar "${_choosedatetime}" 0 0 0 0 0 2> ${ANSWER} || return 1
|
||||
local _date="$(cat ${ANSWER})"
|
||||
DIALOG --timebox "${_choosehourtime}" 0 0 2> ${ANSWER} || return 1
|
||||
local _time="$(cat ${ANSWER})"
|
||||
echo "date: $_date time: $_time" >$LOG
|
||||
|
||||
# save the time
|
||||
# DD/MM/YYYY hh:mm:ss -> YYYY-MM-DD hh:mm:ss
|
||||
local _datetime="$(echo "$_date" "$_time" | sed 's#\(..\)/\(..\)/\(....\) \(..\):\(..\):\(..\)#\3-\2-\1 \4:\5:\6#g')"
|
||||
echo "setting date to: $_datetime" >$LOG
|
||||
date -s "$_datetime" 2>&1 >$LOG
|
||||
/usr/bin/hwclock --systohc $HWCLOCK_PARAMS --noadjfile
|
||||
|
||||
S_CLOCK=1
|
||||
NEXTITEM="2"
|
||||
}
|
||||
|
||||
dogrub_mkconfig() {
|
||||
chroot_mount
|
||||
|
||||
# prepare grub.cfg
|
||||
chroot ${DESTDIR} mkdir -p /boot/grub/locale
|
||||
chroot ${DESTDIR} cp /usr/share/locale/en@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
|
||||
|
||||
# remove splash if no plymouth was found
|
||||
if [ ! -e ${DESTDIR}/etc/plymouth/plymouthd.conf ] ; then
|
||||
sed -i -e "s,GRUB_CMDLINE_LINUX_DEFAULT=.*,GRUB_CMDLINE_LINUX_DEFAULT=\"`cat $DESTDIR/etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT | cut -d'"' -f2 | sed s'/splash//'g | sed s'/quiet//'g`\",g" $DESTDIR/etc/default/grub
|
||||
fi
|
||||
|
||||
# generate resume string for suspend to disk
|
||||
[ -z "${swap_partition}" -o "${swap_partition}" = "NONE" ] || sed -i -e "s,GRUB_CMDLINE_LINUX_DEFAULT=.*,GRUB_CMDLINE_LINUX_DEFAULT=\"`cat $DESTDIR/etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT | cut -d'"' -f2` resume=/dev/disk/by-uuid/`blkid -s UUID -o value -p ${swap_partition}`\",g" $DESTDIR/etc/default/grub
|
||||
|
||||
# create grub.cfg
|
||||
chroot ${DESTDIR} grub-mkconfig -o "/${GRUB_PREFIX_DIR}/grub.cfg" >> /tmp/grub.log 2>&1
|
||||
|
||||
chroot_umount
|
||||
}
|
||||
|
||||
_setup_user()
|
||||
{
|
||||
addgroups="video,audio,power,disk,storage,optical,network,lp,scanner"
|
||||
DIALOG --inputbox "${_enterusername}" 10 65 "${username}" 2>${ANSWER} || return 1
|
||||
REPLY="$(cat ${ANSWER})"
|
||||
while [ -z "$(echo $REPLY |grep -E '^[a-z_][a-z0-9_-]*[$]?$')" ];do
|
||||
DIALOG --inputbox "${_givecorrectname}" 10 65 "${username}" 2>${ANSWER} || return 1
|
||||
REPLY="$(cat ${ANSWER})"
|
||||
done
|
||||
|
||||
chroot ${DESTDIR} useradd -m -p "" -g users -G $addgroups $REPLY
|
||||
|
||||
PASSWDUSER="$REPLY"
|
||||
|
||||
if [ -d "${DESTDIR}/var/lib/AccountsService/users" ] ; then
|
||||
echo "[User]" > ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
if [ -e "/usr/bin/startxfce4" ] ; then
|
||||
echo "XSession=xfce" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
if [ -e "/usr/bin/cinnamon-session" ] ; then
|
||||
echo "XSession=cinnamon" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
if [ -e "/usr/bin/mate-session" ] ; then
|
||||
echo "XSession=mate" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
if [ -e "/usr/bin/enlightenment_start" ] ; then
|
||||
echo "XSession=enlightenment" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
if [ -e "/usr/bin/openbox-session" ] ; then
|
||||
echo "XSession=openbox" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
if [ -e "/usr/bin/startlxde" ] ; then
|
||||
echo "XSession=LXDE" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
if [ -e "/usr/bin/lxqt-session" ] ; then
|
||||
echo "XSession=LXQt" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
echo "Icon=" >> ${DESTDIR}/var/lib/AccountsService/users/$PASSWDUSER
|
||||
fi
|
||||
|
||||
if DIALOG --yesno "${_addsudouserdl1}${REPLY}${_addsudouserdl2}" 6 40;then
|
||||
echo "${PASSWDUSER} ALL=(ALL) ALL" >> ${DESTDIR}/etc/sudoers
|
||||
fi
|
||||
sed -i -e 's|# %wheel ALL=(ALL) ALL|%wheel ALL=(ALL) ALL|g' ${DESTDIR}/etc/sudoers
|
||||
chmod 0440 ${DESTDIR}/etc/sudoers
|
||||
set_passwd
|
||||
echo "$PASSWDUSER:$PASSWD" | chroot ${DESTDIR} chpasswd
|
||||
NEXTITEM="Setup-User"
|
||||
DONE_CONFIG=1
|
||||
}
|
||||
|
||||
_config_system()
|
||||
{
|
||||
DONE=0
|
||||
NEXTITEM=""
|
||||
while [[ "${DONE}" = "0" ]]; do
|
||||
if [[ -n "${NEXTITEM}" ]]; then
|
||||
DEFAULT="--default-item ${NEXTITEM}"
|
||||
else
|
||||
DEFAULT=""
|
||||
fi
|
||||
if [[ -e /run/systemd ]]; then
|
||||
DIALOG $DEFAULT --menu "Configuration" 17 78 10 \
|
||||
"/etc/fstab" "${_fstabtext}" \
|
||||
"/etc/mkinitcpio.conf" "${_mkinitcpioconftext}" \
|
||||
"/etc/resolv.conf" "${_resolvconftext}" \
|
||||
"/etc/hostname" "${_hostnametext}" \
|
||||
"/etc/hosts" "${_hoststext}" \
|
||||
"/etc/hosts.deny" "${_hostsdenytext}" \
|
||||
"/etc/hosts.allow" "${_hostsallowtext}" \
|
||||
"/etc/locale.gen" "${_localegentext}" \
|
||||
"/etc/locale.conf" "${_localeconftext}" \
|
||||
"/etc/environment" "${_environmenttext}" \
|
||||
"/etc/pacman.d/mirrorlist" "${_mirrorlisttext}" \
|
||||
"/etc/X11/xorg.conf.d/10-evdev.conf" "${_xorgevdevconftext}" \
|
||||
"/etc/keyboard.conf" "${_vconsoletext}" \
|
||||
"${_return_label}" "${_return_label}" 2>${ANSWER} || NEXTITEM="${_return_label}"
|
||||
NEXTITEM="$(cat ${ANSWER})"
|
||||
else
|
||||
DIALOG $DEFAULT --menu "Configuration" 17 78 10 \
|
||||
"/etc/fstab" "${_fstabtext}" \
|
||||
"/etc/mkinitcpio.conf" "${_mkinitcpioconftext}" \
|
||||
"/etc/resolv.conf" "${_resolvconftext}" \
|
||||
"/etc/rc.conf" "${_rcconfigtext}" \
|
||||
"/etc/conf.d/hostname" "${_hostnametext}" \
|
||||
"/etc/conf.d/keymaps" "${_localeconftext}" \
|
||||
"/etc/conf.d/modules" "${_modulesconftext}" \
|
||||
"/etc/conf.d/hwclock" "${_hwclockconftext}" \
|
||||
"/etc/hosts" "${_hoststext}" \
|
||||
"/etc/hosts.deny" "${_hostsdenytext}" \
|
||||
"/etc/hosts.allow" "${_hostsallowtext}" \
|
||||
"/etc/locale.gen" "${_localegentext}" \
|
||||
"/etc/environment" "${_environmenttext}" \
|
||||
"/etc/pacman.d/mirrorlist" "${_mirrorlisttext}" \
|
||||
"/etc/X11/xorg.conf.d/10-evdev.conf" "${_xorgevdevconftext}" \
|
||||
"${_return_label}" "${_return_label}" 2>${ANSWER} || NEXTITEM="${_return_label}"
|
||||
NEXTITEM="$(cat ${ANSWER})"
|
||||
fi
|
||||
|
||||
if [ "${NEXTITEM}" = "${_return_label}" -o -z "${NEXTITEM}" ]; then # exit
|
||||
DONE=1
|
||||
else
|
||||
$EDITOR ${DESTDIR}${NEXTITEM}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
_rm_kalu() {
|
||||
local base_check_virtualbox=`dmidecode | grep innotek`
|
||||
local base_check_vmware=`dmidecode | grep VMware`
|
||||
local base_check_qemu=`dmidecode | grep QEMU`
|
||||
local base_check_vpc=`dmidecode | grep Microsoft`
|
||||
|
||||
if [ -n "$base_check_virtualbox" ]; then
|
||||
pacman -R kalu --noconfirm --noprogressbar --root ${DESTDIR} &> /dev/null
|
||||
elif [ -n "$base_check_vmware" ]; then
|
||||
pacman -R kalu --noconfirm --noprogressbar --root ${DESTDIR} &> /dev/null
|
||||
elif [ -n "$base_check_qemu" ]; then
|
||||
pacman -R kalu --noconfirm --noprogressbar --root ${DESTDIR} &> /dev/null
|
||||
elif [ -n "$base_check_vpc" ]; then
|
||||
pacman -R kalu --noconfirm --noprogressbar --root ${DESTDIR} &> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
_post_process()
|
||||
{
|
||||
## POSTPROCESSING ##
|
||||
# /etc/locale.gen
|
||||
#
|
||||
DIALOG --infobox "${_localegen}" 0 0
|
||||
chroot ${DESTDIR} locale-gen &> /dev/null
|
||||
|
||||
# installing localization packages
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/lng-image.sqfs" ] ; then
|
||||
_configure_translation_pkgs
|
||||
${PACMAN_LNG} -Sy
|
||||
if [ -e "/bootmnt/${install_dir}/${arch}/kde-image.sqfs" ] ; then
|
||||
${PACMAN_LNG} -S ${KDE_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/firefox" ] ; then
|
||||
${PACMAN_LNG} -S ${FIREFOX_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/thunderbird" ] ; then
|
||||
${PACMAN_LNG} -S ${THUNDER_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/libreoffice" ] ; then
|
||||
${PACMAN_LNG} -S ${LIBRE_LNG_INST} &> /dev/null
|
||||
fi
|
||||
if [ -e "/usr/bin/hunspell" ] ; then
|
||||
${PACMAN_LNG} -S ${HUNSPELL_LNG_INST} &> /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# check if we are running inside a virtual machine and unistall kalu
|
||||
if [ -e "${DESTDIR}/usr/bin/kalu" ] ; then
|
||||
_rm_kalu
|
||||
fi
|
||||
|
||||
# /etc/localtime
|
||||
cp /etc/localtime ${DESTDIR}/etc/localtime &> /dev/null
|
||||
if [ -e "/etc/adjtime" ] ; then
|
||||
cp /etc/adjtime ${DESTDIR}/etc/adjtime &> /dev/null
|
||||
fi
|
||||
|
||||
sleep 3
|
||||
# add resume hook for suspend to disk
|
||||
[ -z "${swap_partition}" -o "${swap_partition}" = "NONE" ] || if [ "x$(cat $DESTDIR/etc/mkinitcpio.conf | grep '^HOOKS=' | grep -v '^#' | grep resume)" == "x" ]; then
|
||||
hooks=""
|
||||
for hook in $(cat $DESTDIR/etc/mkinitcpio.conf | grep '^HOOKS=' | grep -v '^#' | cut -d'"' -f2) ; do
|
||||
if [ "$hook" == "filesystems" ] && [ "$replaced" == "" ]; then
|
||||
hook="resume filesystems"
|
||||
replaced="1"
|
||||
fi
|
||||
hooks="${hooks} ${hook}"
|
||||
done
|
||||
hooks=$(echo "${hooks}" | sed 's/^ *//;s/ *$//;s/ \{1,\}/ /g')
|
||||
if [ "x$(echo \"${hooks}\" | grep resume)" == "x" ]; then
|
||||
hooks="${hooks} resume"
|
||||
fi
|
||||
sed -i -e "s/^HOOKS=.*/HOOKS=\"${hooks}\"/g" $DESTDIR/etc/mkinitcpio.conf
|
||||
fi
|
||||
|
||||
# create kernel images
|
||||
run_mkinitcpio
|
||||
sleep 3
|
||||
|
||||
## END POSTPROCESSING ##
|
||||
# TODO add end cleaning
|
||||
|
||||
S_CONFIG=1
|
||||
NEXTITEM=5
|
||||
_system_is_configured=1
|
||||
}
|
||||
|
||||
|
||||
# Disable swap and all mounted partitions for the destination system. Unmount
|
||||
# the destination root partition last!
|
||||
_umountall()
|
||||
{
|
||||
DIALOG --infobox "$_umountingall" 0 0
|
||||
swapoff -a >/dev/null 2>&1
|
||||
umount $(mount | grep -v "${DESTDIR} " | grep "${DESTDIR}" | sed 's|\ .*||g') >/dev/null 2>&1
|
||||
umount $(mount | grep "${DESTDIR} " | sed 's|\ .*||g') >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# Umount all mounted partitions
|
||||
_umounthdds()
|
||||
{
|
||||
for UPART in $(findpartitions); do
|
||||
umount $(mount | grep ${UPART} | grep -v /bootmnt | sed 's|\ .*||g') >/dev/null 2>&1
|
||||
done
|
||||
}
|
|
@ -1,140 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
kernel_cmdline ()
|
||||
{
|
||||
for param in $(/bin/cat /proc/cmdline); do
|
||||
case "${param}" in
|
||||
$1=*) echo "${param##*=}"; return 0 ;;
|
||||
$1) return 0 ;;
|
||||
*) continue ;;
|
||||
esac
|
||||
done
|
||||
[ -n "${2}" ] && echo "${2}"
|
||||
return 1
|
||||
}
|
||||
|
||||
get_country() {
|
||||
local COUNTRY=$(kernel_cmdline lang)
|
||||
echo $COUNTRY
|
||||
}
|
||||
|
||||
get_keyboard() {
|
||||
local KEYBOARD=$(kernel_cmdline keytable)
|
||||
echo $KEYBOARD
|
||||
}
|
||||
|
||||
get_layout() {
|
||||
local LAYOUT=$(kernel_cmdline layout)
|
||||
echo $LAYOUT
|
||||
}
|
||||
|
||||
_find_legacy_keymap() {
|
||||
file="/opt/livecd/kbd-model-map"
|
||||
while read -r line || [[ -n $line ]]; do
|
||||
if [[ -z $line ]] || [[ $line == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
mapping=( $line ); # parses columns
|
||||
if [[ ${#mapping[@]} != 5 ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ "$KEYMAP" != "${mapping[0]}" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ "${mapping[3]}" = "-" ]]; then
|
||||
mapping[3]=""
|
||||
fi
|
||||
|
||||
X11_LAYOUT=${mapping[1]}
|
||||
X11_MODEL=${mapping[2]}
|
||||
X11_VARIANT=${mapping[3]}
|
||||
x11_OPTIONS=${mapping[4]}
|
||||
done < $file
|
||||
}
|
||||
|
||||
_write_x11_config_file() {
|
||||
# find a x11 layout that matches the keymap
|
||||
# in isolinux if you select a keyboard layout and a language that doesnt match this layout,
|
||||
# it will provide the correct keymap, but not kblayout value
|
||||
local X11_LAYOUT=
|
||||
local X11_MODEL="pc105"
|
||||
local X11_VARIANT=""
|
||||
local X11_OPTIONS="terminate:ctrl_alt_bksp"
|
||||
_find_legacy_keymap
|
||||
|
||||
# layout not found, use KBLAYOUT
|
||||
if [[ -z "$X11_LAYOUT" ]]; then
|
||||
X11_LAYOUT="$KBLAYOUT"
|
||||
fi
|
||||
|
||||
# create X11 keyboard layout config
|
||||
mkdir -p "${DESTDIR}/etc/X11/xorg.conf.d"
|
||||
if [ -e /run/openrc ]; then
|
||||
local XORGKBLAYOUT="${DESTDIR}/etc/X11/xorg.conf.d/20-keyboard.conf"
|
||||
else
|
||||
local XORGKBLAYOUT="${DESTDIR}/etc/X11/xorg.conf.d/00-keyboard.conf"
|
||||
fi
|
||||
|
||||
echo "" >> "$XORGKBLAYOUT"
|
||||
echo "Section \"InputClass\"" > "$XORGKBLAYOUT"
|
||||
echo " Identifier \"system-keyboard\"" >> "$XORGKBLAYOUT"
|
||||
echo " MatchIsKeyboard \"on\"" >> "$XORGKBLAYOUT"
|
||||
echo " Option \"XkbLayout\" \"$X11_LAYOUT\"" >> "$XORGKBLAYOUT"
|
||||
echo " Option \"XkbModel\" \"$X11_MODEL\"" >> "$XORGKBLAYOUT"
|
||||
echo " Option \"XkbVariant\" \"$X11_VARIANT\"" >> "$XORGKBLAYOUT"
|
||||
echo " Option \"XkbOptions\" \"$X11_OPTIONS\"" >> "$XORGKBLAYOUT"
|
||||
echo "EndSection" >> "$XORGKBLAYOUT"
|
||||
|
||||
# fix por keyboardctl
|
||||
if [ -f "${DESTDIR}/etc/keyboard.conf" ]; then
|
||||
sed -i -e "s/^XKBLAYOUT=.*/XKBLAYOUT=\"${X11_LAYOUT}\"/g" ${DESTDIR}/etc/keyboard.conf
|
||||
fi
|
||||
}
|
||||
|
||||
set_locale() {
|
||||
# hack to be able to set the locale on bootup
|
||||
local LOCALE=$(get_country)
|
||||
local KEYMAP=$(get_keyboard)
|
||||
local KBLAYOUT=$(get_layout)
|
||||
|
||||
# set a default value, in case something goes wrong, or a language doesn't have
|
||||
# good defult settings
|
||||
[ -n "$LOCALE" ] || LOCALE="en_US"
|
||||
[ -n "$KEYMAP" ] || KEYMAP="us"
|
||||
[ -n "$KBLAYOUT" ] || KBLAYOUT="us"
|
||||
|
||||
# set keymap
|
||||
if [ -e /run/openrc ]; then
|
||||
sed -i "s/keymap=.*/keymap=\"${KEYMAP}\"/" ${DESTDIR}/etc/conf.d/keymaps
|
||||
else
|
||||
echo "KEYMAP=us" > ${DESTDIR}/etc/vconsole.conf
|
||||
sed -i "s/^KEYMAP=.*/KEYMAP=\"${KEYMAP}\"/" ${DESTDIR}/etc/vconsole.conf
|
||||
fi
|
||||
|
||||
# load keymaps
|
||||
loadkeys "$KEYMAP"
|
||||
|
||||
_write_x11_config_file
|
||||
|
||||
# set systemwide language
|
||||
echo "LANG=${LOCALE}.UTF-8" > ${DESTDIR}/etc/locale.conf
|
||||
echo "LC_MESSAGES=${LOCALE}.UTF-8" >> ${DESTDIR}/etc/locale.conf
|
||||
echo "LANG=${LOCALE}.UTF-8" >> ${DESTDIR}/etc/environment
|
||||
|
||||
# generate LOCALE
|
||||
local TLANG=${LOCALE%.*} # remove everything after the ., including the dot from LOCALE
|
||||
sed -i -r "s/#(${TLANG}.*UTF-8)/\1/g" ${DESTDIR}/etc/locale.gen
|
||||
# add also American English as safe default
|
||||
sed -i -r "s/#(en_US.*UTF-8)/\1/g" ${DESTDIR}/etc/locale.gen
|
||||
}
|
||||
|
||||
printk()
|
||||
{
|
||||
case ${1} in
|
||||
"on") echo 4 >/proc/sys/kernel/printk ;;
|
||||
"off") echo 0 >/proc/sys/kernel/printk ;;
|
||||
esac
|
||||
}
|
|
@ -1,97 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# chroot_mount()
|
||||
# prepares target system as a chroot
|
||||
#
|
||||
chroot_mount()
|
||||
{
|
||||
[[ -e "${DESTDIR}/sys" ]] || mkdir -m 555 "${DESTDIR}/sys"
|
||||
[[ -e "${DESTDIR}/proc" ]] || mkdir -m 555 "${DESTDIR}/proc"
|
||||
[[ -e "${DESTDIR}/dev" ]] || mkdir "${DESTDIR}/dev"
|
||||
mount -t sysfs sysfs "${DESTDIR}/sys"
|
||||
mount -t proc proc "${DESTDIR}/proc"
|
||||
mount -o bind /dev "${DESTDIR}/dev"
|
||||
chmod 555 "${DESTDIR}/sys"
|
||||
chmod 555 "${DESTDIR}/proc"
|
||||
}
|
||||
|
||||
# chroot_umount()
|
||||
# tears down chroot in target system
|
||||
#
|
||||
chroot_umount()
|
||||
{
|
||||
umount "${DESTDIR}/proc"
|
||||
umount "${DESTDIR}/sys"
|
||||
umount "${DESTDIR}/dev"
|
||||
}
|
||||
|
||||
# _getdisccapacity()
|
||||
#
|
||||
# parameters: device file
|
||||
# outputs: disc capacity in bytes
|
||||
_getdisccapacity()
|
||||
{
|
||||
echo $(fdisk -l $1 | grep $1: | cut -d" " -f5)
|
||||
}
|
||||
|
||||
# Get a list of available disks for use in the "Available disks" dialogs. This
|
||||
# will print the disks as follows, getting size info from _getdisccapacity():
|
||||
# /dev/sda: 625000 MiB (610 GiB)
|
||||
# /dev/sdb: 476940 MiB (465 GiB)
|
||||
_getavaildisks()
|
||||
{
|
||||
for DISC in $(finddisks); do
|
||||
DISC_SIZE=$(_getdisccapacity $DISC)
|
||||
echo "$DISC: $((DISC_SIZE / 2**20)) MiB ($((DISC_SIZE / 2**30)) GiB)\n"
|
||||
done
|
||||
}
|
||||
|
||||
getfstype()
|
||||
{
|
||||
echo "$(${_BLKID} -p -i -s TYPE -o value ${1})"
|
||||
}
|
||||
|
||||
# getfsuuid()
|
||||
# converts /dev devices to FSUUIDs
|
||||
#
|
||||
# parameters: device file
|
||||
# outputs: FSUUID on success
|
||||
# nothing on failure
|
||||
# returns: nothing
|
||||
getfsuuid()
|
||||
{
|
||||
echo "$(${_BLKID} -p -i -s UUID -o value ${1})"
|
||||
}
|
||||
|
||||
# getuuid()
|
||||
# converts /dev/[hs]d?[0-9] devices to UUIDs
|
||||
#
|
||||
# parameters: device file
|
||||
# outputs: UUID on success
|
||||
# nothing on failure
|
||||
# returns: nothing
|
||||
getuuid()
|
||||
{
|
||||
if [ -n "$(echo ${1} |grep -E '[shv]d[a-z]+[0-9]+$|mmcblk[0-9]+p[0-9]+$')" ]; then
|
||||
echo "$(blkid -s UUID -o value ${1})"
|
||||
fi
|
||||
}
|
||||
|
||||
# parameters: device file
|
||||
# outputs: LABEL on success
|
||||
# nothing on failure
|
||||
# returns: nothing
|
||||
getfslabel()
|
||||
{
|
||||
echo "$(${_BLKID} -p -i -s LABEL -o value ${1})"
|
||||
}
|
||||
|
||||
getpartuuid()
|
||||
{
|
||||
echo "$(${_BLKID} -p -i -s PART_ENTRY_UUID -o value ${1})"
|
||||
}
|
||||
|
||||
getpartlabel()
|
||||
{
|
||||
echo "$(${_BLKID} -p -i -s PART_ENTRY_NAME -o value ${1})"
|
||||
}
|
Loading…
Reference in a new issue