diff options
-rw-r--r-- | initramfs/preboot/boot.mconf | 19 | ||||
-rw-r--r-- | initramfs/preboot/mconf_examples | 144 | ||||
-rw-r--r-- | initramfs/preboot/preboot.sh | 52 |
3 files changed, 215 insertions, 0 deletions
diff --git a/initramfs/preboot/boot.mconf b/initramfs/preboot/boot.mconf new file mode 100644 index 00000000..0f0acc17 --- /dev/null +++ b/initramfs/preboot/boot.mconf @@ -0,0 +1,19 @@ +mainmenu "OpenSLX Selection of Bootable Systems" +choice + prompt "Bootable Systems" + +config system1 + bool "scilin-4.7-default nfs" + +config system2 + bool "suse-10.2-main nfs" + +config system3 + bool "suse-11.0-vmtest nfs" + +config system4 + bool "ubuntu-8.04-default nfs" + +config system5 + bool "ubuntu-8.04-vmtest nfs" +endchoice diff --git a/initramfs/preboot/mconf_examples b/initramfs/preboot/mconf_examples new file mode 100644 index 00000000..2a391b49 --- /dev/null +++ b/initramfs/preboot/mconf_examples @@ -0,0 +1,144 @@ + +# drivers/Kconfig +# + +mainmenu "OpenSLX Client Configuration" + +# keine Ahnung was das kann +#config DEFCONFIG_LIST +# string +# depends on !UML +# option defconfig_list +# default "/lib/modules/$UNAME_RELEASE/.config" +# default "/etc/kernel-config" +# default "/boot/config-$UNAME_RELEASE" +# default "arch/$ARCH/defconfig" + +menu "User Configuration" + +config ucfg_root_enabled + bool "Enable administrator account (root) for login." + default y + help + Allow to login as system administrator to your OpenSLX client. You should + set a password then. + + If unsure, say N. + +config ucfg_root_password + string "root password" + depends on ucfg_root_enabled + default "OpEnSlX" + help + Define a password for the system administrator (root) of your OpenSLX + client. + +comment "First Standard User" + +config ucfg_standard_user + default y + bool "Define a standard user with normal priviledges." + help + This allows you to define a normal user to be configured on your OpenSLX + client. Logging on using this user gives you standard experience with in + the several environments. + + If you are unsure about this, Say Y here. + +config ucfg_stduser_name + string "name of standard user" + depends on ucfg_standard_user + default "openslx" + help + Define an account name for the first standard user of your system. + +config ucfg_stduser_password + string "password of standard user" + depends on ucfg_standard_user + default "change_it" + help + Please change the predefined password! + +comment "Further Standard Users" + +config ucfg_second_user + default n + bool "Define a second user with normal priviledges if you like." + help + This allows you to define an additional user to be configured on your + OpenSLX client. Same priviledges like the standard user. + + If you are unsure about this, Say N here. + +config ucfg_secuser_name + string "name of standard user" + depends on ucfg_second_user + default "second" + help + Define an account name for the second standard user of your system. + +config ucfg_secuser_password + string "password of second user" + depends on ucfg_second_user + default "change_it_too" + help + Please change the predefined password! + +config ucfg_third_user + default n + bool "Define a third user with normal priviledges if you like." + help + This allows you to define an additional user to be configured on your + OpenSLX client. Same priviledges like the standard user. + + If you are unsure about this, Say N here. + +config ucfg_thduser_name + string "name of standard user" + depends on ucfg_third_user + default "third" + help + Define an account name for the second standard user of your system. + +config ucfg_thduser_password + string "password of second user" + depends on ucfg_third_user + default "change_it_too" + help + Please change the predefined password! + +config RT_MUTEXES + boolean + select PLIST + +endmenu + +choice + prompt "Subarchitecture Type" + default X86_PC + +config X86_PC + bool "PC-compatible" + help + Choose this option if your computer is a standard PC or compatible. + +config X86_XEN + bool "Xen-compatible" + depends on X86_32 + select SYS_HYPERVISOR + help + Choose this option if you plan to run this kernel on top of the + Xen Hypervisor. + +config X86_ELAN + bool "AMD Elan" + depends on X86_32 + help + Select this for an AMD Elan processor. + + Do not use this option for K6/Athlon/Opteron processors! + + If unsure, choose "PC-compatible" instead. + +endchoice + diff --git a/initramfs/preboot/preboot.sh b/initramfs/preboot/preboot.sh new file mode 100644 index 00000000..d7a12113 --- /dev/null +++ b/initramfs/preboot/preboot.sh @@ -0,0 +1,52 @@ + +echo "Fetching pxeboot for menu" +#rm pxeboot +#wget ftp://planets:pp2006-10@archive.ruf.uni-freiburg.de/internal/pxeboot + + +# create the mconf configuration for the system to boot selection +echo -e 'mainmenu "OpenSLX Selection of Bootable Systems\nchoice\n\ + prompt "Bootable Systems"\n' > boot.mconf + +count=0 +while read line; do + #echo $line + case "$line" in + LABEL\ *) + count=$(expr 1 + $count) + file=${line#LABEL } + echo "label=$file" > ${count}${file}.system + echo -e "config boot_system${count}\n" >> boot.mconf + ;; + *MENU\ LABEL*) + echo "menuentry=\"${line#* ^}\"" >> ${count}${file}.system + echo " bool \"${line#* ^}\"" >> boot.mconf + ;; + *KERNEL\ *) + echo "kernel=${line#*::}" >> ${count}${file}.system + ;; + *IPAPPEND*) + : + ;; + *APPEND\ *) + echo $line|sed "s/.*APPEND /append=\"/;s,initrd=.*/init,initrd=init,;s/$/\"/" >> ${coun +t}${file}.system + echo $line|sed "s,.*APPEND.*initrd=.*/init,initramfs=init,;s, .*,,;" >> ${count}${file} +.system + ;; + *TEXT\ HELP*) + echo " help\n Help text here ..." >> boot.mconf + ;; + esac +done < pxeboot + +#while test -e ${i}*.system && . ${i}*.system 2>/dev/null ; do +# dialogstring="$dialogstring \"$menuentry\" \"\" 1" +# i=$(expr 1 + $i) +#done + + + +wget ftp://planets:pp2006-10@archive.ruf.uni-freiburg.de/internal/$kernel -o kernel +wget ftp://planets:pp2006-10@archive.ruf.uni-freiburg.de/internal/$initramfs -o initramfs + |