Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
kiwi
kiwi-find-boot-requires.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kiwi-find-boot-requires.sh of Package kiwi
#!/bin/bash # Author: Adrian Schröter <adrian@suse.com> # # This script creates the required package list from the kiwi # boot image descriptions # sourcearchive=$1 shift boottype=$1 shift architecture=$1 shift oses="$@" # extract files tar xfj $sourcearchive kiwi/system/boot/ >&/dev/null declare -i MISSING MISSING="1" for os in $oses; do file="kiwi/system/boot/$architecture/$boottype/$os/config.xml" if [ ! -e "$file" ];then echo "ERROR_NO_${architecture}_${boottype}_${os}_BOOT_CONFIG_FILE_FOUND" break fi # my professional enterprise ready xml parser: while read line; do l=($line) package=${l[0]} arch=${l[1]} if [ -z "$arch" -o "$arch" == "$architecture" ]; then echo -n "$package " unset MISSING fi done < <( sed '/<packages type="delete">/,/<\/packages>/d' "$file" | perl -e 'while (<STDIN>) { if ($_ =~ /.*package name="([^"]*)"( arch="([^"]*)")?.*/ ) { print $1." ".$3."\n"; }; }' ) done [ -z "$MISSING" ] || echo "ERROR_NO_DEPENDENCIES_FOUND" #cleanup rm -rf kiwi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor