Skip to content
Snippets Groups Projects
Commit f23c0400 authored by OSAK Buildhauer's avatar OSAK Buildhauer
Browse files

Merge branch 'tardis' of https://git.fsmpi.rwth-aachen.de/osak/lipstick into tardis

parents c0f6503c cdd6c428
Branches
No related tags found
No related merge requests found
...@@ -102,3 +102,8 @@ kde_menu ...@@ -102,3 +102,8 @@ kde_menu
set xfce_release="Xubuntu 18.04" set xfce_release="Xubuntu 18.04"
set xfce_isoname="xubuntu.iso" set xfce_isoname="xubuntu.iso"
xfce_menu xfce_menu
menuentry "Show bootflags" {
cat "/bootflags.txt"
read
}
\ No newline at end of file
...@@ -2,10 +2,18 @@ ...@@ -2,10 +2,18 @@
mkdir -p /target/isodevice mkdir -p /target/isodevice
mount --bind /isodevice /target/isodevice mount --bind /isodevice /target/isodevice
mount --bind /dev /target/dev
mount --bind /proc /target/proc
mount --bind /sys /target/sys
# Make sure X11 is accessible from chroot # Make sure X11 is accessible from chroot
mount --bind /tmp /target/tmp mount --bind /tmp /target/tmp
xhost + local: xhost + local:
MPOINT=/isodevice chroot /target /isodevice/scripts/linuxparty.sh MPOINT=/isodevice ASKTOSKIP=yes x-terminal-emulator -e chroot /target /isodevice/scripts/linuxparty.sh
umount /target/tmp
umount /target/dev
umount /target/proc
umount /target/sys
umount /target/isodevice && rmdir /target/isodevice umount /target/isodevice && rmdir /target/isodevice
...@@ -2,3 +2,5 @@ d-i preseed/early_command string sh /root/isodevice/preseed/lip-early.sh ...@@ -2,3 +2,5 @@ d-i preseed/early_command string sh /root/isodevice/preseed/lip-early.sh
d-i ubiquity/success_command string sh /isodevice/preseed/lip-success.sh d-i ubiquity/success_command string sh /isodevice/preseed/lip-success.sh
d-i clock-setup/utc boolean false d-i clock-setup/utc boolean false
d-i time/zone string Europe/Berlin d-i time/zone string Europe/Berlin
ubiquity ubiquity/use_nonfree boolean true
ubiquity ubiquity/partman-skip-unmount boolean true
...@@ -175,19 +175,19 @@ case "$GUI" in ...@@ -175,19 +175,19 @@ case "$GUI" in
;; ;;
zenity) zenity)
askyesno() { askyesno() {
zenity --question --text "$@" 2> /dev/null zenity --width 300 --question --text "$@" 2> /dev/null
} }
err() { err() {
zenity --error --text "$@" 2> /dev/null zenity --width 300 --error --text "$@" 2> /dev/null
} }
pressenter() { pressenter() {
zenity --info --text "$@" 2> /dev/null zenity --width 300 --info --text "$@" 2> /dev/null
} }
install_pkgs() { install_pkgs() {
local pkglist=$3[@] local pkglist=$3[@]
INSTALL=$(zenity --list --title "$1" --text "$2" --checklist --separator=" " --width=786 --height=400 --column "Installieren?" --column "Paket" --column "Beschreibung" "${!pkglist}" 2> /dev/null || true) INSTALL=$(zenity --list --hide-column=2 --title "$1" --text "$2" --checklist --separator=" " --width=786 --height=400 --column "Installieren?" --column "Paket" --column "Beschreibung" "${!pkglist}" 2> /dev/null || true)
if [ -n "$INSTALL" ]; then if [ -n "$INSTALL" ]; then
INSTALLED_PKGS="$INSTALLED_PKGS $4" #register pseudo package INSTALLED_PKGS="$INSTALLED_PKGS $4" #register pseudo package
...@@ -248,7 +248,7 @@ case "$GUI" in ...@@ -248,7 +248,7 @@ case "$GUI" in
text="$e" text="$e"
kdlist[$i]="$tag" kdlist[$i]="$tag"
i=$((i+1)) i=$((i+1))
kdlist[$i]="$tag: $text" kdlist[$i]="$text"
i=$((i+1)) i=$((i+1))
kdlist[$i]="$use" kdlist[$i]="$use"
i=$((i+1)) i=$((i+1))
...@@ -459,11 +459,16 @@ else ...@@ -459,11 +459,16 @@ else
apt-get update apt-get update
fi fi
if [ -n "$ASKTOSKIP" ]; then
askyesno "Möchtest du an dieser Stelle Aktualisierungen und spezielle Software für dein Studium installieren (empfohlen)?" || exit 0
fi
pressenter "Im folgenden werden Aktualisierungen installiert. Dies wird einige Minuten dauern."
echo "Installiere updates (hoffentlich vom USB-Repo)" echo "Installiere updates (hoffentlich vom USB-Repo)"
apt-get upgrade apt-get upgrade --quiet -y --force-yes
echo "Installiere Standard-Programme" echo "Installiere Standard-Programme"
apt-get -y install $(grep '^[^|#]*P[^|]*|' "$MY_DIR/../packages" | cut -d'|' -f 2) apt-get install --quiet -y --force-yes $(grep '^[^|#]*D[^|]*|' "$MY_DIR/../packages" | cut -d'|' -f 2)
# System absichern # System absichern
if askyesno "Netzwerk: Soll die Ubuntu Firewall (ufw/gufw) aktiviert werden ?" if askyesno "Netzwerk: Soll die Ubuntu Firewall (ufw/gufw) aktiviert werden ?"
...@@ -471,13 +476,6 @@ then ...@@ -471,13 +476,6 @@ then
$DEBUG ufw enable $DEBUG ufw enable
fi fi
# set hw clock to non-utc (because of windows)
if askyesno "System: Soll die Harware-Uhr lokale Zeit statt UTC verwenden ?"
then
$DEBUG timedatectl set-local-rtc 1
fi
echo "Installation:" echo "Installation:"
echo "Programme, die für alle Fachrichtungen interressant sind (7zip, gimp, git, ... )" echo "Programme, die für alle Fachrichtungen interressant sind (7zip, gimp, git, ... )"
if [ -z "$NOGUI" ] || (askyesno "Sollen diese Programme installiert werden ?"); then if [ -z "$NOGUI" ] || (askyesno "Sollen diese Programme installiert werden ?"); then
......
#!/bin/bash #!/bin/bash
BRANCH="ss15" BRANCH="tardis"
if [ ! -d ".git" ]; then if [ ! -d ".git" ]; then
>&2 echo "Fatal error: expected .git directory in the working directory." >&2 echo "Fatal error: expected .git directory in the working directory."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment