#!/usr/bin/env bash # shellcheck disable=SC1090 # # Copyright (C) 2017 Centro de Computacao Cientifica e Software Livre # Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR # # This file is part of create-iso # # create-iso is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 3 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # PROFILE="$1" # NAME="$2" # WEBSITE="$3" # TMPFS="$4" TMP="$5" # CHROOTDIR="$6" # SCRIPTSDIR="$7" PKGLIST="$8" # SOURCESLIST="$9" # REPO="${10}" # KEYURL="${11}" PREFIX="${PWD}" type createIsoLogger >/dev/nul 2>&1 || source "${PREFIX}/helper/logging.incsh" # This packages must not appear in the manifest cp "${TMP}/image/casper/filesystem.manifest" \ "${TMP}/image/casper/filesystem.manifest-desktop" || createIsoLogger --message \ "Unable to create desktop manifest" --tag "cp" IFS_OLD="${IFS}" IFS=$'\n' while IFS= read -r package do sed --in-place "/${package}/d" \ "${TMP}/image/casper/filesystem.manifest-desktop" || createIsoLogger \ --message "Unable to remove package \"${package}\" from desktop manifest" \ --type warning --tag "sed" done < "${PKGLIST}/remove-desktop.list" IFS="${IFS_OLD}" exit 0