From 717eb104b6ad7cad46ea0f90891492a3e0936f51 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 11 Mar 2013 17:21:48 +0100 Subject: old files --- .../system/basic.target.wants/rsyslog.service | 12 ----- remote/tools/base/data/etc/udhcpc.default.script | 61 ---------------------- 2 files changed, 73 deletions(-) delete mode 100644 remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service delete mode 100755 remote/tools/base/data/etc/udhcpc.default.script (limited to 'remote/tools/base/data') diff --git a/remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service b/remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service deleted file mode 100644 index 8e253ee1..00000000 --- a/remote/tools/base/data/etc/systemd/system/basic.target.wants/rsyslog.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=System Logging Service -Before=udev.service - -[Service] -ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service -ExecStart=/usr/sbin/rsyslogd -n -c5 -Sockets=syslog.socket -StandardOutput=null - -[Install] -WantedBy=multi-user.target diff --git a/remote/tools/base/data/etc/udhcpc.default.script b/remote/tools/base/data/etc/udhcpc.default.script deleted file mode 100755 index 4a3403bc..00000000 --- a/remote/tools/base/data/etc/udhcpc.default.script +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# Busybox udhcpc dispatcher script. Copyright (C) 2009 by Axel Beckert. -# -# Based on the busybox example scripts and the old udhcp source -# package default.* scripts. - -RESOLV_CONF="/etc/resolv.conf" -IP_CONF="/tmp/udhcpc_ip_config" - -export PATH=$PATH:/openslx/sbin:/openslx/bin - -case $1 in - bound|renew) - - [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" - [ -n "$subnet" ] && NETMASK="netmask $subnet" - - ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface - ip route add default via $router - - echo "ip=$ip" > $IP_CONF - echo "subnet=$subnet" >> $IP_CONF - echo "broadcast=$broadcast" >> $IP_CONF - echo "gateway=$router" >> $IP_CONF - - # Update resolver configuration file - R="" - [ -n "$domain" ] && R="domain $domain -" - count=1; - for i in $dns; do - echo "$0: Adding DNS $i" - R="${R}nameserver $i -" - count=$((count+1)); - done - - if [ -x /sbin/resolvconf ]; then - echo -n "$R" | resolvconf -a "${interface}.udhcpc" - else - echo -n "$R" > "$RESOLV_CONF" - fi - ;; - - deconfig) - - ;; - - leasefail) - echo "$0: Lease failed: $message" - ;; - - nak) - echo "$0: Received a NAK: $message" - ;; - - *) - echo "$0: Unknown udhcpc command: $1"; - exit 1; - ;; -esac -- cgit v1.2.3-55-g7522 From 9da0a76b1e4833970b3298374d6277de20c907dc Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 14 Mar 2013 15:04:57 +0100 Subject: base -> base32 and started new base31 --- remote/stage3.2/base | 1 - remote/stage3.2/base32 | 1 + remote/tools/base/base.build | 105 --------------------- remote/tools/base/base.conf | 59 ------------ remote/tools/base/base.conf.zypper | 56 ----------- remote/tools/base/data/etc/keymaps/de_DE | Bin 2823 -> 0 bytes remote/tools/base/data/etc/profile | 57 ----------- remote/tools/base/data/etc/udhcpc.openslx.script | 78 --------------- remote/tools/base31/base31.build | 0 remote/tools/base31/base31.conf | 0 remote/tools/base32/base32.build | 105 +++++++++++++++++++++ remote/tools/base32/base32.conf | 59 ++++++++++++ remote/tools/base32/base32.conf.zypper | 56 +++++++++++ remote/tools/base32/data/etc/keymaps/de_DE | Bin 0 -> 2823 bytes remote/tools/base32/data/etc/profile | 57 +++++++++++ remote/tools/base32/data/etc/udhcpc.openslx.script | 78 +++++++++++++++ 16 files changed, 356 insertions(+), 356 deletions(-) delete mode 120000 remote/stage3.2/base create mode 120000 remote/stage3.2/base32 delete mode 100644 remote/tools/base/base.build delete mode 100644 remote/tools/base/base.conf delete mode 100644 remote/tools/base/base.conf.zypper delete mode 100644 remote/tools/base/data/etc/keymaps/de_DE delete mode 100644 remote/tools/base/data/etc/profile delete mode 100755 remote/tools/base/data/etc/udhcpc.openslx.script create mode 100644 remote/tools/base31/base31.build create mode 100644 remote/tools/base31/base31.conf create mode 100644 remote/tools/base32/base32.build create mode 100644 remote/tools/base32/base32.conf create mode 100644 remote/tools/base32/base32.conf.zypper create mode 100644 remote/tools/base32/data/etc/keymaps/de_DE create mode 100644 remote/tools/base32/data/etc/profile create mode 100755 remote/tools/base32/data/etc/udhcpc.openslx.script (limited to 'remote/tools/base/data') diff --git a/remote/stage3.2/base b/remote/stage3.2/base deleted file mode 120000 index d4a00c69..00000000 --- a/remote/stage3.2/base +++ /dev/null @@ -1 +0,0 @@ -../tools/base \ No newline at end of file diff --git a/remote/stage3.2/base32 b/remote/stage3.2/base32 new file mode 120000 index 00000000..3de6f87a --- /dev/null +++ b/remote/stage3.2/base32 @@ -0,0 +1 @@ +../tools/base32/ \ No newline at end of file diff --git a/remote/tools/base/base.build b/remote/tools/base/base.build deleted file mode 100644 index b0d567ff..00000000 --- a/remote/tools/base/base.build +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash -fetch_source() { - : -} - -build() { - - BUILDDIR="${TOOL_DIR}/${TOOL}/build" - - FILELIST="list_binaries_and_files" - [ -e "${FILELIST}" ] && rm "${FILELIST}" - - for BIN in ${REQUIRED_BINARIES} - do - BIN_LOCATION=$(which ${BIN}) - if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ]; - then - pdebug "Processing $BIN at $BIN_LOCATION ..." - get_link_chain ${BIN_LOCATION} >> "${FILELIST}" - else - perror "${BIN} not found on the system! Please install it." - fi - done - - for LIB in ${REQUIRED_LIBRARIES} - do - for LIB_LOCATION in $(find /lib/ -name "${LIB}.so*") - do - get_link_chain "${LIB_LOCATION}" >> "${FILELIST}" - done - done - - for FILE in ${REQUIRED_DIRECTORIES} - do - [ ! -d ${FILE} ] && perror "Missing required directory $FILE" - echo ${FILE} >> "${FILELIST}" - done - for FILE in ${REQUIRED_FILES} - do - [ ! -f ${FILE} ] && perror "Missing required file $FILE" - echo ${FILE} >> "${FILELIST}" - done - - local NUMFILES=$(cat "${FILELIST}" | wc -l) - if [ "x$NUMFILES" != "x" -a "x$NUMFILES" != "x0" ]; then - pinfo "File list generated at ${BUILDDIR}/${FILELIST} ($NUMFILES entries)" - tarcopy "$(cat "${FILELIST}")" "${BUILDDIR}" - fi -} - -post_copy() { - - # make basic directory structure - mkdir -p "${TARGET_BUILD_DIR}"/{bin,dev,proc,lib,etc,mnt,sys,var/run,var/lock,var/log,run/lock,run/shm,openslx/mnt} - - # copy devices from running system - cp -a /dev/{console,kmsg,mem,null,shm,tty,tty0,tty1,tty9,fb0,urandom,zero} \ - "${TARGET_BUILD_DIR}"/dev || perror "Copying devices from running system failed." - - # set /etc/environment to include /openslx/bin and /openslx/sbin - echo "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/openslx/sbin:/openslx/bin\"" \ - > "${TARGET_BUILD_DIR}/etc/environment" - - # copy static files - cp -r "${TOOL_DIR}/${TOOL}"/data/* "${TARGET_BUILD_DIR}" || perror "Copying static files from data/* failed." - - # quick fix for /etc/fstab - echo "# no configuration" >> "${TARGET_BUILD_DIR}/etc/fstab" - - # link /etc/mtab, needed for systemd - [ ! -e ${TARGET_BUILD_DIR}/etc/mtab ] && ln -s /proc/self/mounts ${TARGET_BUILD_DIR}/etc/mtab - - # passwd, group, shadow - init_users_and_groups - - # quick fix for missing group in /etc/group - add_group "lock" - - # setup root accoun - USER=root PASSWORD='!r00t' add_user - - mkdir -p ${TARGET_BUILD_DIR}/root - - echo "minilinux-$(hostname)" > "${TARGET_BUILD_DIR}/etc/hostname" - #check for kernel modules, if not present copy from system - if [ ! -d ${TARGET_BUILD_DIR}/lib/modules ]; - then - pinfo "Copying modules for kernel $(uname -r)..." - mkdir -p "${TARGET_BUILD_DIR}/lib/modules" || perror "Cannot create '${TARGET_BUILD_DIR}/lib/modules'" - cp -r "/lib/modules/$(uname -r)" "${TARGET_BUILD_DIR}/lib/modules/" || perror "Cannot copy kernel modules from '/lib/modules/$(uname -r)' '${TARGET_BUILD_DIR}/lib/modules/'" - else - pinfo "Not copying kernel modules from system, as '${TARGET_BUILD_DIR}/lib/modules/' already exists." - fi - - #check for firmware, if not present copy from system - if [ ! -d ${TARGET_BUILD_DIR}/lib/firmware ]; - then - pinfo "Copying firmware for kernel $(uname -r)..." - cp -r "/lib/firmware" "${TARGET_BUILD_DIR}/lib/" || perror "Cannot copy kernel modules from '/lib/firmware' '${TARGET_BUILD_DIR}/lib/'" - else - pinfo "Not copying firmware from system, as '${TARGET_BUILD_DIR}/lib/firmware' already exists." - fi - -} - diff --git a/remote/tools/base/base.conf b/remote/tools/base/base.conf deleted file mode 100644 index cfb981f8..00000000 --- a/remote/tools/base/base.conf +++ /dev/null @@ -1,59 +0,0 @@ -REQUIRED_DEPENDENCIES="nfs-common aufs-tools squashfs-tools whois" -REQUIRED_BINARIES=" bash - agetty - cat - false - loadkeys - setfont - login - sulogin - mount - umount - mount.nfs4 - umount.nfs4 - mount.aufs - rm - ldd - strace - blkid - modprobe - ps - scp - ssh - xterm" -REQUIRED_LIBRARIES=" libcap - libcidn - libcom_err - libcrypt - libcrypto - libnsl - libnss_compat - libnss_dns - libnss_files - libnss_hesiod - libnss_nis - libnss_nisplus - libpam - libutil - libtinfo - libresolv - libau" -REQUIRED_DIRECTORIES=" /etc/pam.d - /etc/security - /lib/security - /lib/$ARCH_TRIPLET/security" -REQUIRED_FILES=" /etc/environment - /etc/pam.conf - /etc/issue - /etc/inputrc - /etc/localtime - /etc/login.defs - /etc/nsswitch.conf - /etc/securetty - /etc/default/locale - /etc/default/aufs - /etc/protocols - /etc/services - /etc/networks - /etc/netconfig - /etc/modprobe.d/blacklist.conf" diff --git a/remote/tools/base/base.conf.zypper b/remote/tools/base/base.conf.zypper deleted file mode 100644 index 084bff5c..00000000 --- a/remote/tools/base/base.conf.zypper +++ /dev/null @@ -1,56 +0,0 @@ -REQUIRED_DEPENDENCIES="nfs-client aufs squashfs" -REQUIRED_BINARIES=" bash - agetty - cat - false - loadkeys - setfont - login - sulogin - mount - umount - mount.nfs4 - umount.nfs4 - mount.aufs - rm - ldd - strace - blkid - modprobe - rsyslogd - ps - scp - ssh" -REQUIRED_LIBRARIES=" libcap - libcidn - libcom_err - libcrypt - libcrypto - libnsl - libnss_compat - libnss_dns - libnss_files - libnss_hesiod - libnss_nis - libnss_nisplus - libpam - libutil - libtinfo - libresolv - libau" -REQUIRED_DIRECTORIES=" /etc/pam.d - /etc/security" -REQUIRED_FILES=" /etc/environment - /etc/pam.conf - /etc/issue - /etc/inputrc - /etc/localtime - /etc/login.defs - /etc/nsswitch.conf - /etc/securetty - /etc/default/locale - /etc/default/aufs - /etc/protocols - /etc/services - /etc/networks - /etc/netconfig" diff --git a/remote/tools/base/data/etc/keymaps/de_DE b/remote/tools/base/data/etc/keymaps/de_DE deleted file mode 100644 index 375c2012..00000000 Binary files a/remote/tools/base/data/etc/keymaps/de_DE and /dev/null differ diff --git a/remote/tools/base/data/etc/profile b/remote/tools/base/data/etc/profile deleted file mode 100644 index 3784e784..00000000 --- a/remote/tools/base/data/etc/profile +++ /dev/null @@ -1,57 +0,0 @@ -# ~/.bashrc: executed by bash(1) for non-login interactive shells. - -export PATH=\ -/bin:\ -/sbin:\ -/usr/bin:\ -/usr/sbin:\ -/openslx/bin:\ -/openslx/sbin:\ -/openslx/usr/bin:\ -/openslx/usr/sbin - -# If running interactively, then: -if [ "$PS1" ]; then - - if [ "$BASH" ]; then - export PS1="[\u@\h \W]\\$ " - alias ll='ls --color=auto -laFh' - alias ls='ls --color=auto -F' - export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:'; - else - if [ "`id -u`" -eq 0 ]; then - export PS1='# ' - else - export PS1='$ ' - fi - fi - - export USER=`id -un` - export LOGNAME=$USER - export HOSTNAME=`hostname` - export HISTSIZE=1000 - export HISTFILESIZE=1000 - export PAGER='/bin/more ' - export EDITOR='/bin/vi' - export INPUTRC=/etc/inputrc - export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile - - ### Some aliases - alias ps2='ps facux ' - alias ps1='ps faxo "%U %t %p %a" ' - alias af='ps af' - alias cls='clear' - alias df='df -h' - alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 ' - #alias bc='bc -l' - alias minicom='minicom -c on' - alias calc='calc -Cd ' - alias bc='calc -Cd ' -fi; - -# Source configuration files from /etc/profile.d -for i in /etc/profile.d/*.sh ; do - if [ -r "$i" ]; then - . $i - fi -done diff --git a/remote/tools/base/data/etc/udhcpc.openslx.script b/remote/tools/base/data/etc/udhcpc.openslx.script deleted file mode 100755 index bff430ef..00000000 --- a/remote/tools/base/data/etc/udhcpc.openslx.script +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# -# Copyright (c) 2011 - OpenSLX GmbH -# -# This program is free software distributed under the GPL version 2. -# See http://openslx.org/COPYING -# -# If you have any feedback please consult http://openslx.org/feedback and -# send your suggestions, praise, or complaints to feedback@openslx.org -# -# General information about OpenSLX can be found at http://openslx.org/ -# ----------------------------------------------------------------------------- -# -# Mini-Linux Toolkit -# -# ----------------------------------------------------------------------------- - - -RESOLV_CONF="/etc/resolv.conf" -IP_CONF="/tmp/udhcpc_ip_config" - -export PATH=$PATH:/openslx/sbin:/openslx/bin - -case $1 in - bound|renew) - - [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" - [ -n "$subnet" ] && NETMASK="netmask $subnet" - - ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface - ip route add default via $router - - echo "ip=$ip" > $IP_CONF - echo "subnet=$subnet" >> $IP_CONF - echo "broadcast=$broadcast" >> $IP_CONF - echo "gateway=$router" >> $IP_CONF - - # Update resolver configuration file - R="" - [ -n "$domain" ] && R="domain $domain -" - count=1; - for i in $dns; do - echo "$0: Adding DNS $i" - R="${R}nameserver $i -" - count=$((count+1)); - done - - if [ -x /sbin/resolvconf ]; then - echo -n "$R" | resolvconf -a "${interface}.udhcpc" - else - echo -n "$R" > "$RESOLV_CONF" - fi - - # TODO i.e. event trigger - systemctl start nfs-mount.service - - ;; - - deconfig) - - ;; - - leasefail) - echo "$0: Lease failed: $message" - ;; - - nak) - echo "$0: Received a NAK: $message" - ;; - - *) - echo "$0: Unknown udhcpc command: $1"; - exit 1; - ;; -esac diff --git a/remote/tools/base31/base31.build b/remote/tools/base31/base31.build new file mode 100644 index 00000000..e69de29b diff --git a/remote/tools/base31/base31.conf b/remote/tools/base31/base31.conf new file mode 100644 index 00000000..e69de29b diff --git a/remote/tools/base32/base32.build b/remote/tools/base32/base32.build new file mode 100644 index 00000000..b0d567ff --- /dev/null +++ b/remote/tools/base32/base32.build @@ -0,0 +1,105 @@ +#!/bin/bash +fetch_source() { + : +} + +build() { + + BUILDDIR="${TOOL_DIR}/${TOOL}/build" + + FILELIST="list_binaries_and_files" + [ -e "${FILELIST}" ] && rm "${FILELIST}" + + for BIN in ${REQUIRED_BINARIES} + do + BIN_LOCATION=$(which ${BIN}) + if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ]; + then + pdebug "Processing $BIN at $BIN_LOCATION ..." + get_link_chain ${BIN_LOCATION} >> "${FILELIST}" + else + perror "${BIN} not found on the system! Please install it." + fi + done + + for LIB in ${REQUIRED_LIBRARIES} + do + for LIB_LOCATION in $(find /lib/ -name "${LIB}.so*") + do + get_link_chain "${LIB_LOCATION}" >> "${FILELIST}" + done + done + + for FILE in ${REQUIRED_DIRECTORIES} + do + [ ! -d ${FILE} ] && perror "Missing required directory $FILE" + echo ${FILE} >> "${FILELIST}" + done + for FILE in ${REQUIRED_FILES} + do + [ ! -f ${FILE} ] && perror "Missing required file $FILE" + echo ${FILE} >> "${FILELIST}" + done + + local NUMFILES=$(cat "${FILELIST}" | wc -l) + if [ "x$NUMFILES" != "x" -a "x$NUMFILES" != "x0" ]; then + pinfo "File list generated at ${BUILDDIR}/${FILELIST} ($NUMFILES entries)" + tarcopy "$(cat "${FILELIST}")" "${BUILDDIR}" + fi +} + +post_copy() { + + # make basic directory structure + mkdir -p "${TARGET_BUILD_DIR}"/{bin,dev,proc,lib,etc,mnt,sys,var/run,var/lock,var/log,run/lock,run/shm,openslx/mnt} + + # copy devices from running system + cp -a /dev/{console,kmsg,mem,null,shm,tty,tty0,tty1,tty9,fb0,urandom,zero} \ + "${TARGET_BUILD_DIR}"/dev || perror "Copying devices from running system failed." + + # set /etc/environment to include /openslx/bin and /openslx/sbin + echo "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/openslx/sbin:/openslx/bin\"" \ + > "${TARGET_BUILD_DIR}/etc/environment" + + # copy static files + cp -r "${TOOL_DIR}/${TOOL}"/data/* "${TARGET_BUILD_DIR}" || perror "Copying static files from data/* failed." + + # quick fix for /etc/fstab + echo "# no configuration" >> "${TARGET_BUILD_DIR}/etc/fstab" + + # link /etc/mtab, needed for systemd + [ ! -e ${TARGET_BUILD_DIR}/etc/mtab ] && ln -s /proc/self/mounts ${TARGET_BUILD_DIR}/etc/mtab + + # passwd, group, shadow + init_users_and_groups + + # quick fix for missing group in /etc/group + add_group "lock" + + # setup root accoun + USER=root PASSWORD='!r00t' add_user + + mkdir -p ${TARGET_BUILD_DIR}/root + + echo "minilinux-$(hostname)" > "${TARGET_BUILD_DIR}/etc/hostname" + #check for kernel modules, if not present copy from system + if [ ! -d ${TARGET_BUILD_DIR}/lib/modules ]; + then + pinfo "Copying modules for kernel $(uname -r)..." + mkdir -p "${TARGET_BUILD_DIR}/lib/modules" || perror "Cannot create '${TARGET_BUILD_DIR}/lib/modules'" + cp -r "/lib/modules/$(uname -r)" "${TARGET_BUILD_DIR}/lib/modules/" || perror "Cannot copy kernel modules from '/lib/modules/$(uname -r)' '${TARGET_BUILD_DIR}/lib/modules/'" + else + pinfo "Not copying kernel modules from system, as '${TARGET_BUILD_DIR}/lib/modules/' already exists." + fi + + #check for firmware, if not present copy from system + if [ ! -d ${TARGET_BUILD_DIR}/lib/firmware ]; + then + pinfo "Copying firmware for kernel $(uname -r)..." + cp -r "/lib/firmware" "${TARGET_BUILD_DIR}/lib/" || perror "Cannot copy kernel modules from '/lib/firmware' '${TARGET_BUILD_DIR}/lib/'" + else + pinfo "Not copying firmware from system, as '${TARGET_BUILD_DIR}/lib/firmware' already exists." + fi + +} + diff --git a/remote/tools/base32/base32.conf b/remote/tools/base32/base32.conf new file mode 100644 index 00000000..cfb981f8 --- /dev/null +++ b/remote/tools/base32/base32.conf @@ -0,0 +1,59 @@ +REQUIRED_DEPENDENCIES="nfs-common aufs-tools squashfs-tools whois" +REQUIRED_BINARIES=" bash + agetty + cat + false + loadkeys + setfont + login + sulogin + mount + umount + mount.nfs4 + umount.nfs4 + mount.aufs + rm + ldd + strace + blkid + modprobe + ps + scp + ssh + xterm" +REQUIRED_LIBRARIES=" libcap + libcidn + libcom_err + libcrypt + libcrypto + libnsl + libnss_compat + libnss_dns + libnss_files + libnss_hesiod + libnss_nis + libnss_nisplus + libpam + libutil + libtinfo + libresolv + libau" +REQUIRED_DIRECTORIES=" /etc/pam.d + /etc/security + /lib/security + /lib/$ARCH_TRIPLET/security" +REQUIRED_FILES=" /etc/environment + /etc/pam.conf + /etc/issue + /etc/inputrc + /etc/localtime + /etc/login.defs + /etc/nsswitch.conf + /etc/securetty + /etc/default/locale + /etc/default/aufs + /etc/protocols + /etc/services + /etc/networks + /etc/netconfig + /etc/modprobe.d/blacklist.conf" diff --git a/remote/tools/base32/base32.conf.zypper b/remote/tools/base32/base32.conf.zypper new file mode 100644 index 00000000..084bff5c --- /dev/null +++ b/remote/tools/base32/base32.conf.zypper @@ -0,0 +1,56 @@ +REQUIRED_DEPENDENCIES="nfs-client aufs squashfs" +REQUIRED_BINARIES=" bash + agetty + cat + false + loadkeys + setfont + login + sulogin + mount + umount + mount.nfs4 + umount.nfs4 + mount.aufs + rm + ldd + strace + blkid + modprobe + rsyslogd + ps + scp + ssh" +REQUIRED_LIBRARIES=" libcap + libcidn + libcom_err + libcrypt + libcrypto + libnsl + libnss_compat + libnss_dns + libnss_files + libnss_hesiod + libnss_nis + libnss_nisplus + libpam + libutil + libtinfo + libresolv + libau" +REQUIRED_DIRECTORIES=" /etc/pam.d + /etc/security" +REQUIRED_FILES=" /etc/environment + /etc/pam.conf + /etc/issue + /etc/inputrc + /etc/localtime + /etc/login.defs + /etc/nsswitch.conf + /etc/securetty + /etc/default/locale + /etc/default/aufs + /etc/protocols + /etc/services + /etc/networks + /etc/netconfig" diff --git a/remote/tools/base32/data/etc/keymaps/de_DE b/remote/tools/base32/data/etc/keymaps/de_DE new file mode 100644 index 00000000..375c2012 Binary files /dev/null and b/remote/tools/base32/data/etc/keymaps/de_DE differ diff --git a/remote/tools/base32/data/etc/profile b/remote/tools/base32/data/etc/profile new file mode 100644 index 00000000..3784e784 --- /dev/null +++ b/remote/tools/base32/data/etc/profile @@ -0,0 +1,57 @@ +# ~/.bashrc: executed by bash(1) for non-login interactive shells. + +export PATH=\ +/bin:\ +/sbin:\ +/usr/bin:\ +/usr/sbin:\ +/openslx/bin:\ +/openslx/sbin:\ +/openslx/usr/bin:\ +/openslx/usr/sbin + +# If running interactively, then: +if [ "$PS1" ]; then + + if [ "$BASH" ]; then + export PS1="[\u@\h \W]\\$ " + alias ll='ls --color=auto -laFh' + alias ls='ls --color=auto -F' + export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:'; + else + if [ "`id -u`" -eq 0 ]; then + export PS1='# ' + else + export PS1='$ ' + fi + fi + + export USER=`id -un` + export LOGNAME=$USER + export HOSTNAME=`hostname` + export HISTSIZE=1000 + export HISTFILESIZE=1000 + export PAGER='/bin/more ' + export EDITOR='/bin/vi' + export INPUTRC=/etc/inputrc + export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile + + ### Some aliases + alias ps2='ps facux ' + alias ps1='ps faxo "%U %t %p %a" ' + alias af='ps af' + alias cls='clear' + alias df='df -h' + alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 ' + #alias bc='bc -l' + alias minicom='minicom -c on' + alias calc='calc -Cd ' + alias bc='calc -Cd ' +fi; + +# Source configuration files from /etc/profile.d +for i in /etc/profile.d/*.sh ; do + if [ -r "$i" ]; then + . $i + fi +done diff --git a/remote/tools/base32/data/etc/udhcpc.openslx.script b/remote/tools/base32/data/etc/udhcpc.openslx.script new file mode 100755 index 00000000..bff430ef --- /dev/null +++ b/remote/tools/base32/data/etc/udhcpc.openslx.script @@ -0,0 +1,78 @@ +#!/bin/bash +# ----------------------------------------------------------------------------- +# +# Copyright (c) 2011 - OpenSLX GmbH +# +# This program is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your suggestions, praise, or complaints to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org/ +# ----------------------------------------------------------------------------- +# +# Mini-Linux Toolkit +# +# ----------------------------------------------------------------------------- + + +RESOLV_CONF="/etc/resolv.conf" +IP_CONF="/tmp/udhcpc_ip_config" + +export PATH=$PATH:/openslx/sbin:/openslx/bin + +case $1 in + bound|renew) + + [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" + [ -n "$subnet" ] && NETMASK="netmask $subnet" + + ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface + ip route add default via $router + + echo "ip=$ip" > $IP_CONF + echo "subnet=$subnet" >> $IP_CONF + echo "broadcast=$broadcast" >> $IP_CONF + echo "gateway=$router" >> $IP_CONF + + # Update resolver configuration file + R="" + [ -n "$domain" ] && R="domain $domain +" + count=1; + for i in $dns; do + echo "$0: Adding DNS $i" + R="${R}nameserver $i +" + count=$((count+1)); + done + + if [ -x /sbin/resolvconf ]; then + echo -n "$R" | resolvconf -a "${interface}.udhcpc" + else + echo -n "$R" > "$RESOLV_CONF" + fi + + # TODO i.e. event trigger + systemctl start nfs-mount.service + + ;; + + deconfig) + + ;; + + leasefail) + echo "$0: Lease failed: $message" + ;; + + nak) + echo "$0: Received a NAK: $message" + ;; + + *) + echo "$0: Unknown udhcpc command: $1"; + exit 1; + ;; +esac -- cgit v1.2.3-55-g7522