2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 # stefan.k.berg@ericsson.com
5 # jonas.bjurel@ericsson.com
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
15 if [ -d "$ISOROOT" ]; then
16 fusermount -u $ISOROOT
26 echo "$ME: Error - No package specified"
31 echo "$ME: Error - No ISO path specified"
39 if [ -e $DEST -o -d $DEST ]; then
40 echo "$ME: Error - $DEST already exists"
44 ISOROOT=`mktemp -d /tmp/XXXXXXX`
45 fuseiso -p $ORIGISO $ISOROOT
48 if [ ! -f $ISOROOT/ubuntu/pool/debian-installer/$DEB ];then
49 echo "Could not find package $DEB in source ISO!"
53 dpkg -x $ISOROOT/ubuntu/pool/debian-installer/$DEB $DEST
56 dpkg -e $ISOROOT/ubuntu/pool/debian-installer/$DEB $DEST/DEBIAN
58 echo $DEB > .udebpackage