From b51e5b379659cc5e2ed3bb5c63b85b5a2cfb27d1 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 3 Jun 2014 12:09:36 +0200 Subject: [PATCH] Added ProfitBricks packages in creating of the GRML squash image. --- create-grml-squash.sh | 27 ++++++++++++++++++++++++--- files/rc.local | 18 ++++++++++++++++-- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/create-grml-squash.sh b/create-grml-squash.sh index eb74640..6eb8d12 100755 --- a/create-grml-squash.sh +++ b/create-grml-squash.sh @@ -51,7 +51,7 @@ fi ORIG_IMG="/mnt/grml/live/grml64-full/grml64-full.squashfs" TARGET_DIR="/var/tmp/grml" -PACKAGES="infiniband-diags opensm bc git libpcre3 mbuffer lsscsi bind9-host bind9utils" +PACKAGES="infiniband-diags opensm bc git libpcre3 mbuffer lsscsi bind9-host bind9utils megacli lsitools" MY_BASE=$(basename $0 ) MY_DIR=$( readlink -f $( dirname $0 ) ) @@ -330,6 +330,25 @@ unmounting_dirs() { } +#------------------------------------------------------------------------------ +add_pb_repo() { + + echo + info "Adding Profitbricks Debian repository." + CHROOT apt-key adv --fetch-keys http://alexandria.pb.local/profitbricks-repository/0CC30F89AD6863A7.asc + + cat >${TARGET_DIR}/etc/apt/sources.list.d/profitbricks.list < ${hca}/node_desc" + echo -n "${HOST_INFO}" >> ${hca}/node_desc + fi + let hca_id++ + done +fi + wget http://mgmt/liveboot-turbas/grml.sh -O /tmp/grml.sh ||true -if [ -f /tmp/grml.sh -a -s /tmp/grml.sh ] ; then +if [[ -f /tmp/grml.sh -a -s /tmp/grml.sh ]] ; then chmod 755 /tmp/grml.sh ||true /tmp/grml.sh ||true fi -- 2.39.5