Skip to content
Snippets Groups Projects
Commit 7dd5b9bc authored by Martin Suefke's avatar Martin Suefke
Browse files

Reorganized Ubuntu Customization Kit stuff into UbuntuCustomizationKit

Also: split 32/64 bit Ubuntu customization kit in order to have iso_description separate.
Warning: Symlinking files in th customization-scripts-folder will stop UCK from working
parent 55cc4f59
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 22 deletions
...@@ -5,16 +5,17 @@ Plattenplatz ...@@ -5,16 +5,17 @@ Plattenplatz
Wie benutzt man das neue UCK custom script: Wie benutzt man das neue UCK custom script:
0. UCK aus dem System deinstallieren ! 0. UCK aus dem System deinstallieren !
1. Im UCK Ordner mit patch -p1 <path_to_compression_patch> die Kompression 1. Im UCK Ordner mit patch -p1 <path/to/uck-increase-squashfs-compression.patch> die Kompression
des SquashFS Images erhöhen des SquashFS Images erhöhen (nicht nötig, wenn Dateien dedupliziert werden)
1a Im UCK-Ordner libraries/remaster-iso....sh patchen, damit die temp-dateien erhalten bleiben. 1a Im UCK-Ordner mit patch -p1 <path/to/uck-no-remove-rootfs.patch patchen, damit die temp-dateien nach dem Erstellen des .iso erhalten bleiben.
2. Ein ggf. alten customize-scripts Ordner in ~/tmp löschen 2. Ein ggf. alten customize-scripts Ordner in ~/tmp oder /path/to/temp/ löschen
3. In customize-lip/iso_description ggf. das Semester und die Bit-Zahl 3. In customize-lip/iso_description ggf. das Semester und die Bit-Zahl
anpassen. anpassen.
4. uck-remaster <path_to_iso> <path_to_customize-lip> <path-to-temp> ausfüren 4. uck-remaster <path_to_iso> <path_to_customize-lip> <path-to-temp> ausfüren
5. Warten bis das Script fertig ist 5. Warten bis das Script fertig ist
6. Wiederhole 1-5 für die "andere" Bitzahl (32/64 bit) 6. Wiederhole 1-5 für die "andere" Bitzahl (32/64 bit)
7. Dedupliziere Dateien gemaess README.ImageDeduplizieren 7. Dedupliziere Dateien gemaess README.ImageDeduplizieren
7a Before squashfs'ing lipcommon.squashfs, ensure remaster-both/remaster-root/usr/share/applications/ubiquity-gtkui-no-bootloader.desktop exists.
8. Installer-USB-STick zusammenstellen 8. Installer-USB-STick zusammenstellen
8a Kernel, Squashfs, Initrd nach Stick/casper kopieren 8a Kernel, Squashfs, Initrd nach Stick/casper kopieren
8b Grub+EFI einrichten 8b Grub+EFI einrichten
......
...@@ -59,7 +59,7 @@ deb-src http://extras.ubuntu.com/ubuntu precise main ...@@ -59,7 +59,7 @@ deb-src http://extras.ubuntu.com/ubuntu precise main
" > /etc/apt/sources.list " > /etc/apt/sources.list
echo "# offline repository of the linux install party echo "# offline repository of the linux install party
deb [ trusted=yes ] file:/isodevice/archives precise lip" > /etc/apt/sources.list.d/lipoffline.list deb [ trusted=yes ] file:/cdrom/archives precise lip" > /etc/apt/sources.list.d/lipoffline.list
add-apt-repository -y ppa:texlive-backports/ppa add-apt-repository -y ppa:texlive-backports/ppa
...@@ -71,6 +71,9 @@ function install_packages() ...@@ -71,6 +71,9 @@ function install_packages()
apt-get upgrade --assume-yes --force-yes apt-get upgrade --assume-yes --force-yes
apt-get install aptitude -y apt-get install aptitude -y
# Some daily images do not have a kernel ?!?
aptitude install linux-image-generic-lts-quantal
aptitude full-upgrade -y # make sure we have the newest versions aptitude full-upgrade -y # make sure we have the newest versions
aptitude install automake cmake aspell-de build-essential ffmpeg htop hunspell lvm2 mencoder screen tofrodos efibootmgr gdisk linux-headers vlc moreutils network-manager-vpnc-gnome vim -y # install general packages aptitude install automake cmake aspell-de build-essential ffmpeg htop hunspell lvm2 mencoder screen tofrodos efibootmgr gdisk linux-headers vlc moreutils network-manager-vpnc-gnome vim -y # install general packages
aptitude install --without-recommends mdadm -y # install mdadm without mailserver aptitude install --without-recommends mdadm -y # install mdadm without mailserver
......
...@@ -43,19 +43,13 @@ function add_no_bootloader_icon() ...@@ -43,19 +43,13 @@ function add_no_bootloader_icon()
chmod +x "$IRD/scripts/casper-bottom/25adduser" chmod +x "$IRD/scripts/casper-bottom/25adduser"
} }
function add_unionstack_option() function initrd_patches()
{ {
#cp "$SCRIPT_DIR/unionstack-option/casper" "$IRD/scripts/" for p in "$SCRIPT_DIR/initrd-patches/"*
patch -p1 < "$SCRIPT_DIR/unionstack-option/initrd-add-unionstack-option.patch" do
chmod +x "$IRD/scripts/casper" cat "$p" | patch -d "$IRD" -p1
done
} }
function fix_ubiquity_squashfs()
{
patch -p1 < "$SCRIPT_DIR/fix-ubiquity-squashfs-behaviour/casper.patch"
}
install_nmtelekinese install_nmtelekinese
add_no_bootloader_icon add_no_bootloader_icon
add_unionstack_option initrd_patches
fix_ubiquity_squashfs
--- a/scripts/casper 2013-04-04 19:09:09.349995163 +0200 --- a/scripts/casper 2013-04-04 19:09:09.349995163 +0200
+++ b/scripts/casper 2013-04-04 16:25:34.000000000 +0200 +++ b/scripts/casper 2013-04-04 16:25:34.000000000 +0200
@@ -450,7 +450,11 @@ @@ -450,6 +450,10 @@
fi fi
mount -t ${cow_fstype} -o ${cow_mountopt} ${cowdevice} /cow || panic "Can not mount $cowdevice on /cow" mount -t ${cow_fstype} -o ${cow_mountopt} ${cowdevice} /cow || panic "Can not mount $cowdevice on /cow"
-
+ +
+ overlay_mount_dir=/overlay + overlay_mount_dir=/overlay
+ mkdir -p "$overlay_mount_dir" + mkdir -p "$overlay_mount_dir"
+ +
case ${UNIONFS} in case ${UNIONFS} in
unionfs-fuse) unionfs-fuse)
(ulimit -n 16384; unionfs-fuse -o cow -o noinitgroups -o default_permissions -o allow_other -o use_ino -o suid /cow=RW:$rofsstring "$rootmnt" || panic "${UNIONFS} mount failed") @@ -463,8 +463,10 @@
@@ -463,8 +467,10 @@
overlayfs) overlayfs)
# Mount the layers pairwise from the bottom onto rootmnt, # Mount the layers pairwise from the bottom onto rootmnt,
# for the second and later layers rootmnt forms the lower layer. # for the second and later layers rootmnt forms the lower layer.
......
LIP SS2013 32bit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment