Created
June 29, 2014 11:05
-
-
Save SpComb/60c1f26dec4e988d125c to your computer and use it in GitHub Desktop.
/etc/ltsp/update-kernels.conf hack hack for localboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default boot options | |
# Use a menu for booting | |
PXELINUX_DEFAULT=menu | |
# Set default timeout to 5 seconds (hundreths of a second) | |
TIMEOUT="50 | |
label localboot | |
menu label Local disk (Windows) | |
localboot 0" | |
# Set default boot item on timeout | |
ONTIMEOUT=localboot | |
# Use pxelinux/syslinux's IPAPPEND parameter to add useful networking and | |
# other system information to the boot commandline: | |
# 1: Add networking: ip=<client-ip>:<boot-server-ip>:<gw-ip>:<netmask> | |
# 2: Add BOOTIF=<hardware-address-of-boot-interface> | |
# 3: both 1 & 2 | |
# 4: Add SYSUUID=<system uuid> | |
IPAPPEND="2 | |
menu default" | |
# Use ifcpu64.c32 to detect 64-bit, PAE or 32-bit machines. | |
#PXELINUX_DEFAULT=ltsp-ifcpu64-NFS | |
#IFCPU64=true | |
# Supported booth methods | |
BOOT_METHODS="NBD" | |
# Default commandline arguments common to all boot methods | |
CMDLINE_LINUX_DEFAULT="init=/sbin/init-ltsp quiet splash" | |
# Commandline used with NFS root | |
CMDLINE_NFS="root=/dev/nfs ip=dhcp boot=nfs" | |
# Commandline used with NBD root | |
CMDLINE_NBD="root=/dev/nbd0 nbdroot=/opt/ltsp/kivitalo-atk" | |
# Commandline used with AOE root | |
CMDLINE_AOE="root=/dev/etherd/e0.0" | |
# A sed expression that matches all kernels and returns $FILE $NAME $VERSION $FLAVOR | |
# Example: ls /boot | sed -n "$KERNEL_NAMES" | sort -V -k 4,4 | sort -r -k 3,3 | |
KERNEL_NAMES='s/\(vmlinu[xz]-\)\([^-]*-[^-]*-\)\(.*\)/& \1 \2 \3/p' | |
# A sed expression that maps from a kernel name to an initrd name | |
# Example: initrd=$(echo "$FILE" | sed -n "$INITRD_NAME") | |
INITRD_NAME='s/vmlinu[xz]/initrd.img/p' | |
# Kernel variants | |
KERNEL_PREFIX="vmlinu[z|x]-*" | |
KERNEL_SUFFIX="" | |
# Kernel variants that are supported by 64-bit CPUs | |
LIST_KERNELS_64="" | |
# Variants that are supported by PAE capable CPUs | |
LIST_KERNELS_PAE="lowlatency-pae virtual-pae generic-pae" | |
# Variants that are widely supported (i.e. 32-bit CPUs) | |
LIST_KERNELS_32="lowlatency virtual generic" | |
# Preferred default kernel order | |
#LIST_KERNELS_DEFAULT="generic-custom generic-pae-custom" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment