From 97fee8277f390e0f1fe299442aae899ce184660b Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 8 Oct 2014 16:27:37 +0200 Subject: [PATCH] Added and used files/nsswitch.conf in create-grml-squash.sh, replaced getting PB apt-key from alexandria by a keyring package --- create-grml-squash.sh | 24 ++++++++++++++---------- files/nsswitch.conf | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 files/nsswitch.conf diff --git a/create-grml-squash.sh b/create-grml-squash.sh index ebdb290..9730026 100755 --- a/create-grml-squash.sh +++ b/create-grml-squash.sh @@ -313,6 +313,11 @@ mounting_dirs() { info "Mounting ${TARGET_DIR}/run/lock ..." mount -t tmpfs -o size=3% tmpfs ${TARGET_DIR}/run/lock + if [[ ! -d "${TARGET_DIR}/run/lock" ]] ; then + info "Creating ${TARGET_DIR}/run/lock ..." + MKDIR "${TARGET_DIR}/run/lock" + fi + } #------------------------------------------------------------------------------ @@ -343,26 +348,22 @@ 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 <