summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-15 16:21:12 +0100
committerJonathan Bauer2013-03-15 16:21:12 +0100
commite46e3c68d5ca28612669d58e70fa82e557d4d2ab (patch)
tree51d5f1fb62ecfbf0513ee4a72e5bad2a3f770b13
parentdeleted (diff)
downloadtm-scripts-e46e3c68d5ca28612669d58e70fa82e557d4d2ab.tar.gz
tm-scripts-e46e3c68d5ca28612669d58e70fa82e557d4d2ab.tar.xz
tm-scripts-e46e3c68d5ca28612669d58e70fa82e557d4d2ab.zip
deleted
-rw-r--r--remote/rootfs/rootfs-stage32-default/data/etc/keymaps/de_DEbin2823 -> 0 bytes
-rw-r--r--remote/rootfs/rootfs-stage32-default/data/etc/profile57
-rwxr-xr-xremote/rootfs/rootfs-stage32-default/data/etc/udhcpc.openslx.script78
-rw-r--r--remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.build103
-rw-r--r--remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.conf59
-rw-r--r--remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.conf.zypper56
6 files changed, 0 insertions, 353 deletions
diff --git a/remote/rootfs/rootfs-stage32-default/data/etc/keymaps/de_DE b/remote/rootfs/rootfs-stage32-default/data/etc/keymaps/de_DE
deleted file mode 100644
index 375c2012..00000000
--- a/remote/rootfs/rootfs-stage32-default/data/etc/keymaps/de_DE
+++ /dev/null
Binary files differ
diff --git a/remote/rootfs/rootfs-stage32-default/data/etc/profile b/remote/rootfs/rootfs-stage32-default/data/etc/profile
deleted file mode 100644
index 3784e784..00000000
--- a/remote/rootfs/rootfs-stage32-default/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/rootfs/rootfs-stage32-default/data/etc/udhcpc.openslx.script b/remote/rootfs/rootfs-stage32-default/data/etc/udhcpc.openslx.script
deleted file mode 100755
index bff430ef..00000000
--- a/remote/rootfs/rootfs-stage32-default/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/rootfs/rootfs-stage32-default/rootfs-stage32-default.build b/remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.build
deleted file mode 100644
index c704752b..00000000
--- a/remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.build
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/bash
-fetch_source() {
- :
-}
-
-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 ${MODULE_BUILD_DIR}/${FILELIST} ($NUMFILES entries)"
- tarcopy "$(cat "${FILELIST}")" "${MODULE_BUILD_DIR}"
- 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 "${MODULE_DIR}"/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/rootfs/rootfs-stage32-default/rootfs-stage32-default.conf b/remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.conf
deleted file mode 100644
index cfb981f8..00000000
--- a/remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.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/rootfs/rootfs-stage32-default/rootfs-stage32-default.conf.zypper b/remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.conf.zypper
deleted file mode 100644
index 084bff5c..00000000
--- a/remote/rootfs/rootfs-stage32-default/rootfs-stage32-default.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"