trap error on precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA master image scripts |
Fix Released
|
Medium
|
Yongqin Liu |
Bug Description
not know if have relation the system automatically update
13:16:52 liuyq:lava-
LAVA master images are easy to make, just three steps:
Note: run with --verbose to see details
1) Preparing vanilla Linaro image
2) Converting vanilla image to LAVA master image
add map loop0p1 (253:0): 0 106496 linear /dev/loop0 8192
add map loop0p2 (253:1): 0 1982464 linear /dev/loop0 114688
trap: usage: trap [-lp] [[arg] signal_spec ...]
umount: /tmp/tmp.
./lava-
13:16:58 liuyq:lava-
executed with -x option
13:16:20 liuyq:lava-
+ set -e
+ LAVA_VERSION=
+ LAVA_URL=https:/
+ COMMON_
+ COMMON_ROOTFS_URL=http://
+ COMMON_
+ export VERBOSE=
+ VERBOSE=
+ export DEBUG=
+ DEBUG=
+ export ROOTFS_SIZE=4G
+ ROOTFS_SIZE=4G
+ dev=
+ LAVA_SUPPORTED=0
+ REBUILD_VANILLA=
+ '[' x = x ']'
+ XDG_CACHE_
+ CACHE_DIR=
+ OUTPUT_IMAGE=
+ main panda -r 2G
+ os_check
+ case `lsb_release -i -s` in
++ lsb_release -i -s
+ case `lsb_release -c -s` in
++ lsb_release -c -s
+ export LAVA_SUPPORTED=1
+ LAVA_SUPPORTED=1
+ '[' 1 = 0 ']'
+ parse_argv panda -r 2G
+ test -n panda
+ case "$1" in
+ '[' -n '' ']'
+ dev=panda
+ '[' x = x ']'
+ OUTPUT_
+ shift
+ test -n -r
+ case "$1" in
+ ROOTFS_SIZE=2G
+ shift 2
+ test -n ''
+ '[' -z panda ']'
+ load_board_config
+ '[' -r boards.d/panda.conf ']'
+ . boards.d/panda.conf
++ DESC='TI Panda Board (43xx and 46xx)'
++ ROOTFS=
++ ROOTFS_URL=http://
++ ROOTFS_
++ ROOTFS_PARTITION=2
++ HWPACK=
++ HWPACK_URL=http://
++ HWPACK_
++ LMC_DEV=panda
++ LAVA_DEV=lava:panda
++ LICENSE_WRAP=
+ rerun_via_sudo panda -r 2G
++ id -u
+ '[' 1000 '!=' 0 ']'
+ exec sudo ./lava-
+ set -e
+ LAVA_VERSION=
+ LAVA_URL=https:/
+ COMMON_
+ COMMON_ROOTFS_URL=http://
+ COMMON_
+ export VERBOSE=
+ VERBOSE=
+ export DEBUG=
+ DEBUG=
+ export ROOTFS_SIZE=4G
+ ROOTFS_SIZE=4G
+ dev=
+ LAVA_SUPPORTED=0
+ REBUILD_VANILLA=
+ '[' x = x ']'
+ XDG_CACHE_
+ CACHE_DIR=
+ OUTPUT_IMAGE=
+ main panda -r 2G
+ os_check
+ case `lsb_release -i -s` in
++ lsb_release -i -s
+ case `lsb_release -c -s` in
++ lsb_release -c -s
+ export LAVA_SUPPORTED=1
+ LAVA_SUPPORTED=1
+ '[' 1 = 0 ']'
+ parse_argv panda -r 2G
+ test -n panda
+ case "$1" in
+ '[' -n '' ']'
+ dev=panda
+ '[' x = x ']'
+ OUTPUT_
+ shift
+ test -n -r
+ case "$1" in
+ ROOTFS_SIZE=2G
+ shift 2
+ test -n ''
+ '[' -z panda ']'
+ load_board_config
+ '[' -r boards.d/panda.conf ']'
+ . boards.d/panda.conf
++ DESC='TI Panda Board (43xx and 46xx)'
++ ROOTFS=
++ ROOTFS_URL=http://
++ ROOTFS_
++ ROOTFS_PARTITION=2
++ HWPACK=
++ HWPACK_URL=http://
++ HWPACK_
++ LMC_DEV=panda
++ LAVA_DEV=lava:panda
++ LICENSE_WRAP=
+ rerun_via_sudo panda -r 2G
++ id -u
+ '[' 0 '!=' 0 ']'
+ '[' -z liuyq ']'
+ make_master
++ which kpartx
+ '[' -z /sbin/kpartx ']'
+ trap cleanup EXIT
+ echo 'LAVA master images are easy to make, just three steps:'
LAVA master images are easy to make, just three steps:
+ not_verbose 'Note: run with --verbose to see details'
+ test -n ''
+ echo 'Note: run with --verbose to see details'
Note: run with --verbose to see details
+ echo
+ enable_
+ . /etc/environment
++ PATH=/usr/
++ LANG=en_US.UTF-8
++ LANGUAGE=en
++ LC_NUMERIC=
++ LC_TIME=zh_CN.UTF-8
++ LC_MONETARY=
++ LC_PAPER=
++ LC_IDENTIFICATI
++ LC_NAME=zh_CN.UTF-8
++ LC_ADDRESS=
++ LC_TELEPHONE=
++ LC_MEASUREMENT=
+ test -n ''
+ export LANG=C.UTF-8
+ LANG=C.UTF-8
+ echo '1) Preparing vanilla Linaro image'
1) Preparing vanilla Linaro image
++ which dconf
+ '[' -n /usr/bin/dconf ']'
+ '[' -n '' ']'
++ which udisks
+ '[' -n /usr/bin/udisks ']'
+ verbose ' * Inhibiting udisks...'
+ test -n ''
+ :
+ UDISKS_
+ '[' -e /home/liuyq/
+ udisks --inhibit
+ '[' -z '' ']'
+ verbose ' * Re-using existing vanilla image: /home/liuyq/
+ test -n ''
+ :
+ echo '2) Converting vanilla image to LAVA master image'
2) Converting vanilla image to LAVA master image
+ verbose ' * Creating a copy of vanilla image...'
+ test -n ''
+ :
+ cp /home/liuyq/
+ verbose ' * Attaching master image to loopback device...'
+ test -n ''
+ :
++ losetup --show --find panda-master.img
+ LOOP_DEV=/dev/loop0
+ verbose ' * Adding partitions to the loopback device...'
+ test -n ''
+ :
+ kpartx -av /dev/loop0
add map loop0p1 (253:0): 0 106496 linear /dev/loop0 8192
add map loop0p2 (253:1): 0 1982464 linear /dev/loop0 114688
+ verbose ' * Creating temporary mount point for rootfs...'
+ test -n ''
+ :
++ mktemp --directory --suffix .lava.panda.master
+ MASTER_
+ verbose ' * Mounting rootfs...'
+ test -n ''
+ :
++ basename /dev/loop0
+ LOOP_NAME=loop0
+ mount /dev/mapper/loop0p2 /tmp/tmp.
+ verbose ' * Changing hostname to '\''master'\''...'
+ test -n ''
+ :
+ sed -e s/linaro-
+ grep --quiet '--regexp=auto eth0' /tmp/tmp.
+ verbose ' * Applying master image overlay to rootfs...'
+ test -n ''
+ :
+ tar -C master-
+ tar -C /tmp/tmp.
+ verbose ' * Preparing device.conf file...'
+ test -n ''
+ :
++ python -c 'import uuid; print uuid.uuid1()'
+ sed -e 's!@LAVA_
+ verbose ' * Expanding version strings used by lava scripts...'
+ test -n ''
+ :
+ sed -e 's!@LAVA_
+ chown_to_user panda-master.img
++ id -gn
+ chown liuyq.root panda-master.img
+ cleanup
+ '[' -n /tmp/tmp.
+ verbose ' * Unmounting master rootfs...'
+ test -n ''
+ :
+ umount /tmp/tmp.
+ rmdir /tmp/tmp.
+ '[' -n /dev/loop0 ']'
+ verbose ' * Removing loopback device partitions...'
+ test -n ''
+ :
+ kpartx -d /dev/loop0
+ verbose ' * Detaching loopback device...'
+ test -n ''
+ :
+ losetup --detach /dev/loop0
+ '[' -n 6507 ']'
+ verbose ' * Stopping udisks --inhibit'
+ test -n ''
+ :
+ kill 6507
+ '[' -n '' ']'
+ '[' -n '' ']'
+ trap EXIT
trap: usage: trap [-lp] [[arg] signal_spec ...]
+ cleanup
+ '[' -n /tmp/tmp.
+ verbose ' * Unmounting master rootfs...'
+ test -n ''
+ :
+ umount /tmp/tmp.
umount: /tmp/tmp.
./lava-
13:16:32 liuyq:lava-
Related branches
- Michael Hudson-Doyle (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedlava-create-master (+1/-1)
Changed in lava-master-image-scripts: | |
importance: | Undecided → Medium |
Changed in lava-master-image-scripts: | |
status: | New → In Progress |
assignee: | nobody → Yongqin Liu (liuyq0307) |
Changed in lava-master-image-scripts: | |
status: | In Progress → Fix Committed |
Changed in lava-master-image-scripts: | |
status: | Fix Committed → Fix Released |
my bash version.
13:31:42 liuyq:lava- master- image-scripts$ bash -version pc-linux- gnu) gnu.org/ licenses/ gpl.html>
GNU bash, version 4.2.24(1)-release (x86_64-
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software; you are free to change and redistribute it. master- image-scripts$
There is NO WARRANTY, to the extent permitted by law.
13:33:01 liuyq:lava-
Seems the need to set the "-" arg for trap on EXIT