mirror of
https://github.com/pygos/build.git
synced 2024-11-05 03:27:10 +01:00
Release alix: remove debug prints, check if image file exists
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
5dd2790a67
commit
9640f87899
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -u -e -x
|
set -u -e
|
||||||
|
|
||||||
FILE=$1
|
FILE=$1
|
||||||
MOUNTED=0
|
MOUNTED=0
|
||||||
|
@ -16,6 +16,11 @@ trap do_cleanup ERR INT
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
|
|
||||||
|
if [ -e "$FILE" ]; then
|
||||||
|
echo "Error, $FILE exists"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
truncate -s 1G $FILE
|
truncate -s 1G $FILE
|
||||||
|
|
||||||
parted --script $FILE \
|
parted --script $FILE \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -u -e -x
|
set -u -e
|
||||||
|
|
||||||
CONFIRM="Yes, I am"
|
CONFIRM="Yes, I am"
|
||||||
DEVICE=$1
|
DEVICE=$1
|
||||||
|
|
Loading…
Reference in a new issue