grml / grml-debootstrap

wrapper around debootstrap
59 stars 27 forks source link

strange update-locale error #48

Closed adrelanos closed 9 years ago

adrelanos commented 9 years ago
*** update-locale: Error: invalid locale settings:  LANGUAGE=en_US:en LANG=en_US.UTF-8

This happed when using --debopt to install grub-pc (#40) and locales (#47), i.e. --debopt "--verbose --include=grub-pc,locales".

tester@debian:~$ pp
+ export http_proxy=http://192.168.2.100:3142
+ http_proxy=http://192.168.2.100:3142
+ set +x
tester@debian:~$ sudo -E bash -x \
>    grml-debootstrap \
>          --debug \
>          --verbose \
>          --arch i386 \
>          --filesystem ext4 \
>          --force \
>          --hostname host \
>          --mirror http://ftp.us.debian.org/debian \
>          --keep_src_list \
>          --password changeme \
>          --release wheezy \
>          --verbose \
>          --vmfile \
>          --vmsize "$VMSIZE" \
>          --target "./test.raw" \
>          --debopt "--verbose --include=grub-pc,locales" \
>          --nopackages
+ set -o pipefail
+ '[' -n '' ']'
+ REPORT_TRAP_ERR=no
+ '[' -n '' ']'
+ FAIL_TRAP_ERR=no
+ trap error_handler ERR
+ export -f error_handler
++ basename grml-debootstrap
+ PN=grml-debootstrap
++ dpkg-query --show '--showformat=${Version}' grml-debootstrap
+ VERSION=0.67
+ VERSION=0.67
+ MNTPOINT=/mnt/debootstrap.3127
+ '[' -n '' ']'
+ CHROOT_SCRIPTS=yes
+ '[' -n '' ']'
+ CONFFILES=/etc/debootstrap
+ '[' -n '' ']'
+ DEBCONF=yes                                                                                                                                                                       
+ '[' -n '' ']'
+ DEBIAN_FRONTEND=noninteractive
+ '[' -n '' ']'
+ DEBOOTSTRAP=debootstrap
+ '[' -n '' ']'
+ DEFAULT_LOCALES=en_US.UTF-8
+ '[' -n '' ']'
+ DEFAULT_LANGUAGE=en_US:en
+ '[' -n '' ']'
+ EXTRAPACKAGES=yes
+ '[' -n '' ']'
+ FALLBACK_MIRROR=http://http.debian.net/debian
+ '[' -n '' ']'
+ FORCE=
+ '[' -n debian ']'
+ '[' -n '' ']'
+ INITRD=yes
+ '[' -n '' ']'
+ INSTALL_NOTES=/etc/debootstrap/install_notes
+ '[' -n '' ']'
+ LOCALES=yes
+ '[' -n '' ']'
+ MIRROR=http://http.debian.net/debian
+ '[' -n '' ']'
+ MKFS=mkfs.ext4
+ '[' -n '' ']'
+ PACKAGES=yes
+ '[' -n '' ']'
+ PRE_SCRIPTS=yes
+ '[' -n '' ']'
+ RECONFIGURE=console-data
+ '[' -n '' ']'
+ RELEASE=wheezy
+ '[' -n '' ']'
+ RM_APTCACHE=yes
+ '[' -n '' ']'
+ SCRIPTS=yes
+ '[' -n '' ']'
+ SECURE=yes
+ '[' -n '' ']'
+ TIMEZONE=Europe/Vienna
+ '[' -n '' ']'
+ TUNE2FS='tune2fs -c0 -i0'
+ '[' -n '' ']'
+ UPGRADE_SYSTEM=yes
+ '[' -n '' ']'
+ VMSIZE=2G
+ '[' -n '' ']'
+ FIXED_DISK_IDENTIFIERS=no
+ export LANG=C
+ LANG=C
+ export LC_ALL=C
+ LC_ALL=C
+ INTERACTIVE=
+ '[' --debug = -h ']'
+ '[' --debug = -help ']'
+ '[' --debug = --help ']'
+ GOOD=''
+ WARN=''
+ BAD=''
+ NORMAL=''
+ HILITE=''
+ BRACKET=''
+ trap bailout HUP INT QUIT TERM
+ check4progs debootstrap
+ trap error_handler ERR
+ local RC=
+ for arg in '$*'
+ which debootstrap
+ '[' -n '' ']'
+ '[' -r /etc/debootstrap/config ']'
+ . /etc/debootstrap/config
+ '[' -r ./cmdlineopts.clp ']'
+ '[' -r /usr/share/grml-debootstrap/functions/cmdlineopts.clp ']'
+ . /usr/share/grml-debootstrap/functions/cmdlineopts.clp
++ CMDLINE_OPTS=mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug
+++ getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt '--verbose --include=grub-pc,locales' --nopackages
++ _opt_temp=' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose --include=grub-pc,locales'\'' --nopackages --'
++ '[' 0 '!=' 0 ']'
++ eval set -- ' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose --include=grub-pc,locales'\'' --nopackages --'
+++ set -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt '--verbose --include=grub-pc,locales' --nopackages --
++ :
++ case "$1" in
++ _opt_debug=T
++ shift
++ :
++ case "$1" in
++ '[' '' ']'
++ _opt_verbose=1
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_arch=i386
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_filesystem=ext4
++ shift
++ :
++ case "$1" in
++ _opt_force=T
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_hostname=host
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_mirror=http://ftp.us.debian.org/debian
++ shift
++ :
++ case "$1" in
++ _opt_keep_src_list=T
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_password=changeme
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_release=wheezy
++ shift
++ :
++ case "$1" in
++ '[' 1 ']'
+++ expr 1 + 1
++ _opt_verbose=2
++ shift
++ :
++ case "$1" in
++ _opt_vmfile=T
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_vmsize=
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_target=./test.raw
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_debopt='--verbose --include=grub-pc,locales'
++ shift
++ :
++ case "$1" in
++ _opt_nopackages=T
++ shift
++ :
++ case "$1" in
++ shift
++ break
+ '[' '' ']'
+ '[' http://ftp.us.debian.org/debian ']'
+ MIRROR=http://ftp.us.debian.org/debian
+ '[' '' ']'
+ '[' wheezy ']'
+ RELEASE=wheezy
+ '[' ./test.raw ']'
+ TARGET=./test.raw
+ '[' '' ']'
+ '[' T ']'
+ VMFILE=1
+ VIRTUAL=1
+ '[' '' ']'
+ '[' '' ']'
+ '[' '--verbose --include=grub-pc,locales' ']'
+ DEBOOTSTRAP_OPT='--verbose --include=grub-pc,locales'
+ '[' '' ']'
+ '[' '' ']'
+ '[' ext4 ']'
+ MKFS=mkfs.ext4
+ '[' '' ']'
+ '[' T ']'
+ PACKAGES=
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' T ']'
+ KEEP_SRC_LIST=yes
+ '[' '' ']'
+ '[' '' ']'
+ '[' host ']'
+ HOSTNAME=host
+ '[' changeme ']'
+ ROOTPASSWORD=changeme
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' i386 ']'
+ ARCH=i386
+ '[' '' ']'
+ '[' T ']'
+ FORCE=T
+ '[' 2 ']'
+ VERBOSE=-v
+ '[' T ']'
+ DEBUG=true
+ '[' true = true ']'
+ set -x
+ '[' '' ']'
+ '[' '' ']'
+ check4root
+ trap error_handler ERR
++ id -u
+ '[' 0 '!=' 0 ']'
+ '[' -n 1 ']'
+ check4progs kpartx mksh parted qemu-img
+ trap error_handler ERR
+ local RC=
+ for arg in '$*'
+ which kpartx
+ for arg in '$*'
+ which mksh
+ for arg in '$*'
+ which parted
+ for arg in '$*'
+ which qemu-img
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ grep -q '^hd'
+ echo ''
+ '[' -z ./test.raw -o -n '' ']'
+ '[' -n i386 ']'
+ ARCHCMD='--arch i386'
+ ARCHINFO=' (i386)'
++ uname -m
+ CURRENT_ARCH=i686
+ '[' i686 '!=' x86_64 ']'
+ '[' i386 = amd64 ']'
+ checkconfiguration
+ trap error_handler ERR
+ '[' -n '' ']'
+ '[' -n '' ']'
+ einfo 'grml-debootstrap [0.67] - Please recheck configuration before execution:'
+ trap error_handler ERR
+ einfon 'grml-debootstrap [0.67] - Please recheck configuration before execution:\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' '' = ebegin ']'
+ printf ' * grml-debootstrap [0.67] - Please recheck configuration before execution:\n'
 * grml-debootstrap [0.67] - Please recheck configuration before execution:
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ echo

+ echo '   Target:          ./test.raw'
   Target:          ./test.raw
+ case "$MNTPOINT" in
+ '[' -n 1 ']'
+ echo '   Install grub:    yes'
   Install grub:    yes
+ '[' -n wheezy ']'
+ echo '   Using release:   wheezy'
   Using release:   wheezy
+ '[' -n host ']'
+ echo '   Using hostname:  host'
   Using hostname:  host
+ '[' -n http://ftp.us.debian.org/debian ']'
+ echo '   Using mirror:    http://ftp.us.debian.org/debian'
   Using mirror:    http://ftp.us.debian.org/debian
+ '[' -n '' ']'
+ '[' -n i386 ']'
+ echo '   Using arch:      i386'
   Using arch:      i386
+ '[' -n 1 ']'
+ echo '   Deploying as Virtual Machine.'
   Deploying as Virtual Machine.
+ '[' -n 2G -a -n 1 ']'
+ echo '   Using Virtual Disk file with size of 2G.'
   Using Virtual Disk file with size of 2G.
+ '[' '!' -t 0 -a -z changeme -a -z '' ']'
+ echo

+ echo '   Important! Continuing will delete all data from ./test.raw!'
   Important! Continuing will delete all data from ./test.raw!
+ '[' -n T ']'
+ einfo 'Skip user acknowledgement as requested via --force option.'
+ trap error_handler ERR
+ einfon 'Skip user acknowledgement as requested via --force option.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Skip user acknowledgement as requested via --force option.\n'
 * Skip user acknowledgement as requested via --force option.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ '[' -n ./test.raw ']'
+ SHORT_TARGET=test.raw
+ '[' -z '' ']'
+ STAGES=/var/cache/grml-debootstrap/stages_test.raw
+ '[' -d /var/cache/grml-debootstrap/stages_test.raw ']'
+ mkdir -p /var/cache/grml-debootstrap/stages_test.raw
+ '[' -r /var/cache/grml-debootstrap/stages_test.raw/grml-debootstrap ']'
+ PARTITION=
+ DIRECTORY=
+ '[' -b ./test.raw ']'
+ '[' -n 1 ']'
+ PARTITION=1
+ '[' -n '' ']'
+ ISODIR=
+ ISODIR=
+ '[' -n '' ']'
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage prepare_vm
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/prepare_vm
+ prepare_vm
+ trap error_handler ERR
+ '[' -z 1 ']'
+ '[' -b ./test.raw -a -n 1 ']'
+ '[' '!' -b ./test.raw -a -z 1 ']'
+ ORIG_TARGET=./test.raw
+ '[' -n 1 ']'
+ qemu-img create -f raw ./test.raw 2G
Formatting './test.raw', fmt=raw size=2147483648 
+ dd of=./test.raw conv=notrunc
+ /usr/share/grml-debootstrap/bootgrub.mksh -A
+ echo 4 66
0 @0x168: 63 @4 (0x4)
 - 0x168: 32 (0x20) @ 4 (0x4)
 - 0x16A: 31 (0x1F) @ 36 (0x24)
using 2 blocks, 4 bytes (146 free)
using sectors of 2^9 = 512 bytes
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0161063 s, 31.8 kB/s
+ dd if=/dev/zero bs=1 conv=notrunc count=64 seek=446 of=./test.raw
64+0 records in
64+0 records out
64 bytes (64 B) copied, 0.0012685 s, 50.5 kB/s
+ '[' no = yes ']'
+ parted -s ./test.raw 'mkpart primary ext4 2M -1'
+ kpartx -av ./test.raw
+ grep -q device-mapper /proc/misc
+ losetup -f
++ kpartx -av ./test.raw
+ DEVINFO='add map loop0p1 (254:0): 0 4190208 linear /dev/loop0 4096'
+ '[' -z 'add map loop0p1 (254:0): 0 4190208 linear /dev/loop0 4096' ']'
++ sed 's/.* linear //; s/ [[:digit:]]*//'
++ echo add map loop0p1 '(254:0):' 0 4190208 linear /dev/loop0 4096
+ LOOP=/dev/loop0
++ sed -e 's/.* (\(.*:.*\)).*/\1/'
++ echo 'add map loop0p1 (254:0): 0 4190208 linear /dev/loop0 4096'
+ BLOCKDEV=254:0
++ sed 's/ .*//'
++ echo loop0p1 '(254:0):' 0 4190208 linear /dev/loop0 4096
+ LOOP_PART=loop0p1
+ export TARGET=/dev/mapper/loop0p1
+ TARGET=/dev/mapper/loop0p1
+ blockdev --rereadpt /dev/loop0
BLKRRPART: Invalid argument
+ '[' -z /dev/mapper/loop0p1 ']'
+ stage prepare_vm done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/prepare_vm
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage mkfs
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/mkfs
+ mkfs
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q /dev/mapper/loop0p1 /proc/mounts
+ '[' -n mkfs.ext4 ']'
+ einfo 'Running mkfs.ext4 on /dev/mapper/loop0p1'
+ trap error_handler ERR
+ einfon 'Running mkfs.ext4 on /dev/mapper/loop0p1\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Running mkfs.ext4 on /dev/mapper/loop0p1\n'
 * Running mkfs.ext4 on /dev/mapper/loop0p1
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mkfs.ext4 /dev/mapper/loop0p1
mke2fs 1.42.5 (29-Jul-2012)
Discarding device blocks: done                            
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 523776 blocks
26188 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done 

+ RC=0
+ '[' no = yes ']'
+ grep -q /dev/md
+ echo /dev/mapper/loop0p1
+ '[' -n 1 ']'
+ sleep 2
++ blkid -o udev /dev/mapper/loop0p1
+ eval ID_FS_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ID_FS_UUID_ENC=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ID_FS_TYPE=ext4
++ ID_FS_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
++ ID_FS_UUID_ENC=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
++ ID_FS_TYPE=ext4
+ '[' -n 6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ']'
+ TARGET_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage mkfs done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/mkfs
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage tunefs
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/tunefs
+ tunefs
+ trap error_handler ERR
+ '[' -n 'tune2fs -c0 -i0' ']'
+ grep -q mkfs.ext
+ echo mkfs.ext4
+ einfo 'Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs'
+ trap error_handler ERR
+ einfon 'Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs\n'
 * Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ tune2fs -c0 -i0 /dev/mapper/loop0p1
tune2fs 1.42.5 (29-Jul-2012)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage tunefs done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/tunefs
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage mount_target
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/mount_target
+ mount_target
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q /dev/mapper/loop0p1 /proc/mounts
+ '[' -d /mnt/debootstrap.3127 ']'
+ '[' -n 1 ']'
+ einfo 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127'
+ trap error_handler ERR
+ einfon 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127\n'
 * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mkdir -p /mnt/debootstrap.3127
+ mount -o rw,suid,dev /dev/mapper/loop0p1 /mnt/debootstrap.3127
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n '' ']'
+ stage mount_target done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/mount_target
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage debootstrap_system
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/debootstrap_system
+ debootstrap_system
+ trap error_handler ERR
+ '[' '' ']'
+ grep -q /mnt/debootstrap.3127 /proc/mounts
+ :
+ '[' -n '' ']'
+ einfo 'Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian'
+ trap error_handler ERR
+ einfon 'Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
 * Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ einfo 'Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian'
+ trap error_handler ERR
+ einfon 'Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian\n'
 * Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ debootstrap --arch i386 --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id ED6D65271AACF0FF15D123036FB2A1C265FFB764)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb5.1 libsemanage-common libsemanage1 libslang2 libustr-1.0-1 
I: Found additional base dependencies: dmsetup gettext-base grub-common grub-pc-bin grub2-common libasprintf0c2 libdevmapper1.02.1 libept1.4.12 libfreetype6 libfuse2 libgcrypt11 libgnutls26 libgpg-error0 libidn11 libnfnetlink0 libp11-kit0 libsqlite3-0 libtasn1-3 libxapian22 ucf 
I: Checking component main on http://ftp.us.debian.org/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt
I: Validating apt
I: Retrieving apt-utils
I: Validating apt-utils
I: Retrieving libapt-inst1.5
I: Validating libapt-inst1.5
I: Retrieving libapt-pkg4.12
I: Validating libapt-pkg4.12
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving aptitude-common
I: Validating aptitude-common
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving libboost-iostreams1.49.0
I: Validating libboost-iostreams1.49.0
I: Retrieving bsdmainutils
I: Validating bsdmainutils
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving cron
I: Validating cron
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving dash
I: Validating dash
I: Retrieving libdb5.1
I: Validating libdb5.1
I: Retrieving debconf
I: Validating debconf
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dmidecode
I: Validating dmidecode
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libc-bin
I: Validating libc-bin
I: Retrieving libc6
I: Validating libc6
I: Retrieving locales
I: Validating locales
I: Retrieving multiarch-support
I: Validating multiarch-support
I: Retrieving findutils
I: Validating findutils
I: Retrieving libfreetype6
I: Validating libfreetype6
I: Retrieving libfuse2
I: Validating libfuse2
I: Retrieving gcc-4.7-base
I: Validating gcc-4.7-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libgdbm3
I: Validating libgdbm3
I: Retrieving gettext-base
I: Validating gettext-base
I: Retrieving libasprintf0c2
I: Validating libasprintf0c2
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving libgnutls26
I: Validating libgnutls26
I: Retrieving grep
I: Validating grep
I: Retrieving groff-base
I: Validating groff-base
I: Retrieving grub-common
I: Validating grub-common
I: Retrieving grub-pc
I: Validating grub-pc
I: Retrieving grub-pc-bin
I: Validating grub-pc-bin
I: Retrieving grub2-common
I: Validating grub2-common
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving insserv
I: Validating insserv
I: Retrieving iproute
I: Validating iproute
I: Retrieving iptables
I: Validating iptables
I: Retrieving iputils-ping
I: Validating iputils-ping
I: Retrieving isc-dhcp-client
I: Validating isc-dhcp-client
I: Retrieving isc-dhcp-common
I: Validating isc-dhcp-common
I: Retrieving kmod
I: Validating kmod
I: Retrieving libkmod2
I: Validating libkmod2
I: Retrieving libept1.4.12
I: Validating libept1.4.12
I: Retrieving libgcrypt11
I: Validating libgcrypt11
I: Retrieving libgpg-error0
I: Validating libgpg-error0
I: Retrieving libidn11
I: Validating libidn11
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libnfnetlink0
I: Validating libnfnetlink0
I: Retrieving libpipeline1
I: Validating libpipeline1
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsemanage-common
I: Validating libsemanage-common
I: Retrieving libsemanage1
I: Validating libsemanage1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libtasn1-3
I: Validating libtasn1-3
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving logrotate
I: Validating logrotate
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving dmsetup
I: Validating dmsetup
I: Retrieving libdevmapper1.02.1
I: Validating libdevmapper1.02.1
I: Retrieving man-db
I: Validating man-db
I: Retrieving manpages
I: Validating manpages
I: Retrieving mawk
I: Validating mawk
I: Retrieving nano
I: Validating nano
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving libtinfo5
I: Validating libtinfo5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving net-tools
I: Validating net-tools
I: Retrieving netbase
I: Validating netbase
I: Retrieving netcat-traditional
I: Validating netcat-traditional
I: Retrieving libnewt0.52
I: Validating libnewt0.52
I: Retrieving whiptail
I: Validating whiptail
I: Retrieving libssl1.0.0
I: Validating libssl1.0.0
I: Retrieving libp11-kit0
I: Validating libp11-kit0
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-modules-bin
I: Validating libpam-modules-bin
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving libpopt0
I: Validating libpopt0
I: Retrieving libprocps0
I: Validating libprocps0
I: Retrieving procps
I: Validating procps
I: Retrieving libreadline6
I: Validating libreadline6
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving rsyslog
I: Validating rsyslog
I: Retrieving sed
I: Validating sed
I: Retrieving sensible-utils
I: Validating sensible-utils
I: Retrieving login
I: Validating login
I: Retrieving passwd
I: Validating passwd
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving libsqlite3-0
I: Validating libsqlite3-0
I: Retrieving initscripts
I: Validating initscripts
I: Retrieving sysv-rc
I: Validating sysv-rc
I: Retrieving sysvinit
I: Validating sysvinit
I: Retrieving sysvinit-utils
I: Validating sysvinit-utils
I: Retrieving tar
I: Validating tar
I: Retrieving tasksel
I: Validating tasksel
I: Retrieving tasksel-data
I: Validating tasksel-data
I: Retrieving info
I: Validating info
I: Retrieving install-info
I: Validating install-info
I: Retrieving traceroute
I: Validating traceroute
I: Retrieving tzdata
I: Validating tzdata
I: Retrieving ucf
I: Validating ucf
I: Retrieving libudev0
I: Validating libudev0
I: Retrieving udev
I: Validating udev
I: Retrieving libustr-1.0-1
I: Validating libustr-1.0-1
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving libblkid1
I: Validating libblkid1
I: Retrieving libmount1
I: Validating libmount1
I: Retrieving libuuid1
I: Validating libuuid1
I: Retrieving mount
I: Validating mount
I: Retrieving util-linux
I: Validating util-linux
I: Retrieving vim-common
I: Validating vim-common
I: Retrieving vim-tiny
I: Validating vim-tiny
I: Retrieving wget
I: Validating wget
I: Retrieving libxapian22
I: Validating libxapian22
I: Retrieving liblzma5
I: Validating liblzma5
I: Retrieving xz-utils
I: Validating xz-utils
I: Retrieving zlib1g
I: Validating zlib1g
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.1...
I: Extracting debconf...
I: Extracting debconf-i18n...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting multiarch-support...
I: Extracting findutils...
I: Extracting gcc-4.7-base...
I: Extracting libgcc1...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting insserv...
I: Extracting liblocale-gettext-perl...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting lsb-base...
I: Extracting mawk...
I: Extracting libncurses5...
I: Extracting libtinfo5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting login...
I: Extracting passwd...
I: Extracting libslang2...
I: Extracting initscripts...
I: Extracting sysv-rc...
I: Extracting sysvinit...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting libustr-1.0-1...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libmount1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting xz-utils...
I: Extracting zlib1g...
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking libacl1:i386...
I: Unpacking libattr1:i386...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking libbz2-1.0:i386...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking libdb5.1:i386...
I: Unpacking debconf...
I: Unpacking debconf-i18n...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fslibs:i386...
I: Unpacking e2fsprogs...
I: Unpacking libcomerr2:i386...
I: Unpacking libss2:i386...
I: Unpacking libc-bin...
I: Unpacking libc6:i386...
I: Unpacking multiarch-support...
I: Unpacking findutils...
I: Unpacking gcc-4.7-base:i386...
I: Unpacking libgcc1:i386...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking insserv...
I: Unpacking liblocale-gettext-perl...
I: Unpacking libselinux1:i386...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:i386...
I: Unpacking libsepol1:i386...
I: Unpacking libtext-charwidth-perl...
I: Unpacking libtext-iconv-perl...
I: Unpacking libtext-wrapi18n-perl...
I: Unpacking lsb-base...
I: Unpacking mawk...
I: Unpacking libncurses5:i386...
I: Unpacking libtinfo5:i386...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking libpam-modules:i386...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:i386...
I: Unpacking perl-base...
I: Unpacking sed...
I: Unpacking sensible-utils...
I: Unpacking login...
I: Unpacking passwd...
I: Unpacking libslang2:i386...
I: Unpacking initscripts...
I: Unpacking sysv-rc...
I: Unpacking sysvinit...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking tzdata...
I: Unpacking libustr-1.0-1:i386...
I: Unpacking bsdutils...
I: Unpacking libblkid1:i386...
I: Unpacking libmount1...
I: Unpacking libuuid1:i386...
I: Unpacking mount...
I: Unpacking util-linux...
I: Unpacking liblzma5:i386...
I: Unpacking xz-utils...
I: Unpacking zlib1g:i386...
I: Configuring required packages...
I: Configuring lsb-base...
I: Configuring ncurses-base...
I: Configuring sensible-utils...
I: Configuring libsemanage-common...
I: Configuring gcc-4.7-base:i386...
I: Configuring libc-bin...
I: Configuring libc6:i386...
I: Configuring debianutils...
I: Configuring bsdutils...
I: Configuring tar...
I: Configuring base-passwd...
I: Configuring mawk...
I: Configuring hostname...
I: Configuring insserv...
I: Configuring multiarch-support...
I: Configuring libselinux1:i386...
I: Configuring libustr-1.0-1:i386...
I: Configuring libsepol1:i386...
I: Configuring zlib1g:i386...
I: Configuring libgcc1:i386...
I: Configuring base-files...
I: Configuring libattr1:i386...
I: Configuring e2fslibs:i386...
I: Configuring libcomerr2:i386...
I: Configuring libacl1:i386...
I: Configuring libslang2:i386...
I: Configuring libss2:i386...
I: Configuring liblzma5:i386...
I: Configuring libdb5.1:i386...
I: Configuring libbz2-1.0:i386...
I: Configuring libtinfo5:i386...
I: Configuring sysvinit-utils...
I: Configuring ncurses-bin...
I: Configuring libsemanage1:i386...
I: Configuring libncurses5:i386...
I: Configuring xz-utils...
I: Configuring dpkg...
I: Configuring dash...
I: Configuring coreutils...
I: Configuring perl-base...
I: Configuring diffutils...
I: Configuring libtext-iconv-perl...
I: Configuring sed...
I: Configuring grep...
I: Configuring findutils...
I: Configuring gzip...
I: Configuring liblocale-gettext-perl...
I: Configuring bash...
I: Configuring libtext-charwidth-perl...
I: Configuring libtext-wrapi18n-perl...
I: Configuring debconf...
I: Configuring libpam0g:i386...
I: Configuring sysv-rc...
I: Configuring tzdata...
I: Configuring debconf-i18n...
I: Configuring libpam-modules-bin...
I: Configuring libpam-modules:i386...
I: Configuring passwd...
I: Configuring libpam-runtime...
I: Configuring login...
I: Configuring libuuid1:i386...
I: Configuring libblkid1:i386...
I: Configuring libmount1...
I: Configuring mount...
I: Configuring initscripts...
I: Configuring util-linux...
I: Configuring sysvinit...
I: Configuring e2fsprogs...
I: Unpacking the base system...
I: Unpacking adduser...
I: Unpacking apt...
I: Unpacking apt-utils...
I: Unpacking libapt-inst1.5:i386...
I: Unpacking libapt-pkg4.12:i386...
I: Unpacking aptitude...
I: Unpacking aptitude-common...
I: Unpacking libboost-iostreams1.49.0...
I: Unpacking bsdmainutils...
I: Unpacking cpio...
I: Unpacking cron...
I: Unpacking libcwidget3...
I: Unpacking debian-archive-keyring...
I: Unpacking dmidecode...
I: Unpacking locales...
I: Unpacking libfreetype6:i386...
I: Unpacking libfuse2:i386...
I: Unpacking libstdc++6:i386...
I: Unpacking libgdbm3:i386...
I: Unpacking gettext-base...
I: Unpacking libasprintf0c2:i386...
I: Unpacking gnupg...
I: Unpacking gpgv...
I: Unpacking libgnutls26:i386...
I: Unpacking groff-base...
I: Unpacking grub-common...
I: Unpacking grub-pc...
I: Unpacking grub-pc-bin...
I: Unpacking grub2-common...
I: Unpacking ifupdown...
I: Unpacking iproute...
I: Unpacking iptables...
I: Unpacking iputils-ping...
I: Unpacking isc-dhcp-client...
I: Unpacking isc-dhcp-common...
I: Unpacking kmod...
I: Unpacking libkmod2:i386...
I: Unpacking libept1.4.12...
I: Unpacking libgcrypt11:i386...
I: Unpacking libgpg-error0:i386...
I: Unpacking libidn11:i386...
I: Unpacking libnfnetlink0...
I: Unpacking libpipeline1:i386...
I: Unpacking libsigc++-2.0-0c2a:i386...
I: Unpacking libtasn1-3:i386...
I: Unpacking libusb-0.1-4:i386...
I: Unpacking logrotate...
I: Unpacking dmsetup...
I: Unpacking libdevmapper1.02.1:i386...
I: Unpacking man-db...
I: Unpacking manpages...
I: Unpacking nano...
I: Unpacking libncursesw5:i386...
I: Unpacking net-tools...
I: Unpacking netbase...
I: Unpacking netcat-traditional...
I: Unpacking libnewt0.52...
I: Unpacking whiptail...
I: Unpacking libssl1.0.0:i386...
I: Unpacking libp11-kit0:i386...
I: Unpacking libpopt0:i386...
I: Unpacking libprocps0:i386...
I: Unpacking procps...
I: Unpacking libreadline6:i386...
I: Unpacking readline-common...
I: Unpacking rsyslog...
I: Unpacking libsqlite3-0:i386...
I: Unpacking tasksel...
I: Unpacking tasksel-data...
I: Unpacking info...
I: Unpacking install-info...
I: Unpacking traceroute...
I: Unpacking ucf...
I: Unpacking libudev0:i386...
I: Unpacking udev...
I: Unpacking vim-common...
I: Unpacking vim-tiny...
I: Unpacking wget...
I: Unpacking libxapian22...
I: Configuring the base system...
I: Configuring libfreetype6:i386...
I: Configuring gpgv...
I: Configuring libssl1.0.0:i386...
I: Configuring libgdbm3:i386...
I: Configuring isc-dhcp-common...
I: Configuring libtasn1-3:i386...
I: Configuring libfuse2:i386...
I: Configuring libpopt0:i386...
I: Configuring libusb-0.1-4:i386...
I: Configuring libgpg-error0:i386...
I: Configuring ucf...
I: Configuring install-info...
I: Configuring vim-common...
I: Configuring libprocps0:i386...
I: Configuring netbase...
I: Configuring dmidecode...
I: Configuring libudev0:i386...
I: Configuring libkmod2:i386...
I: Configuring adduser...
I: Configuring locales...
I: Configuring traceroute...
I: Configuring manpages...
I: Configuring libsqlite3-0:i386...
I: Configuring iproute...
I: Configuring libidn11:i386...
I: Configuring libnewt0.52...
I: Configuring net-tools...
I: Configuring libpipeline1:i386...
I: Configuring bsdmainutils...
I: Configuring netcat-traditional...
I: Configuring debian-archive-keyring...
I: Configuring libncursesw5:i386...
I: Configuring info...
I: Configuring iputils-ping...
I: Configuring aptitude-common...
I: Configuring cron...
I: Configuring nano...
I: Configuring libp11-kit0:i386...
I: Configuring rsyslog...
I: Configuring cpio...
I: Configuring libstdc++6:i386...
I: Configuring isc-dhcp-client...
I: Configuring vim-tiny...
I: Configuring readline-common...
I: Configuring libnfnetlink0...
I: Configuring libasprintf0c2:i386...
I: Configuring gettext-base...
I: Configuring libgcrypt11:i386...
I: Configuring procps...
I: Configuring libxapian22...
I: Configuring whiptail...
I: Configuring ifupdown...
I: Configuring kmod...
I: Configuring libapt-pkg4.12:i386...
I: Configuring libept1.4.12...
I: Configuring libapt-inst1.5:i386...
I: Configuring libreadline6:i386...
I: Configuring logrotate...
I: Configuring libboost-iostreams1.49.0...
I: Configuring groff-base...
I: Configuring gnupg...
I: Configuring libsigc++-2.0-0c2a:i386...
I: Configuring libgnutls26:i386...
I: Configuring apt-utils...
I: Configuring udev...
I: Configuring iptables...
I: Configuring man-db...
I: Configuring apt...
I: Configuring wget...
I: Configuring libcwidget3...
I: Configuring aptitude...
I: Configuring tasksel...
I: Configuring tasksel-data...
I: Configuring libdevmapper1.02.1:i386...
I: Configuring dmsetup...
I: Configuring grub-common...
I: Configuring grub-pc-bin...
I: Configuring grub2-common...
I: Configuring grub-pc...
I: Base system installed successfully.
+ RC=0
+ '[' 0 -ne 0 ']'
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage debootstrap_system done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/debootstrap_system
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage preparechroot
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/preparechroot
+ preparechroot
+ trap error_handler ERR
+ einfo 'Preparing chroot system'
+ trap error_handler ERR
+ einfon 'Preparing chroot system\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Preparing chroot system\n'
 * Preparing chroot system
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ CHROOT_VARIABLES=/var/cache/grml-debootstrap/variables_test.raw
+ touch /var/cache/grml-debootstrap/variables_test.raw
+ chmod 600 /var/cache/grml-debootstrap/variables_test.raw
+ echo '# Configuration of grml-debootstrap'
+ '[' -n i386 ']'
+ echo 'ARCH="i386"'
+ '[' -n '' ']'
+ '[' -n yes ']'
+ echo 'CHROOT_SCRIPTS="yes"'
+ '[' -n /etc/debootstrap ']'
+ echo 'CONFFILES="/etc/debootstrap"'
+ '[' -n yes ']'
+ echo 'DEBCONF="yes"'
+ '[' -n noninteractive ']'
+ echo 'DEBIAN_FRONTEND="noninteractive"'
+ '[' -n debootstrap ']'
+ echo 'DEBOOTSTRAP="debootstrap"'
+ '[' -n en_US.UTF-8 ']'
+ echo 'DEFAULT_LOCALES="en_US.UTF-8"'
+ '[' -n en_US:en ']'
+ echo 'DEFAULT_LANGUAGE="en_US:en"'
+ '[' -n yes ']'
+ echo 'EXTRAPACKAGES="yes"'
+ '[' -n http://http.debian.net/debian ']'
+ echo 'FALLBACK_MIRROR="http://http.debian.net/debian"'
+ '[' -n T ']'
+ echo 'FORCE="T"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n host ']'
+ echo 'HOSTNAME="host"'
+ '[' -n yes ']'
+ echo 'INITRD="yes"'
+ '[' -n /etc/debootstrap/install_notes ']'
+ echo 'INSTALL_NOTES="/etc/debootstrap/install_notes"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n yes ']'
+ echo 'KEEP_SRC_LIST="yes"'
+ '[' -n yes ']'
+ echo 'LOCALES="yes"'
+ '[' -n http://ftp.us.debian.org/debian ']'
+ echo 'MIRROR="http://ftp.us.debian.org/debian"'
+ '[' -n mkfs.ext4 ']'
+ echo 'MKFS="mkfs.ext4"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n yes ']'
+ echo 'PRE_SCRIPTS="yes"'
+ '[' -n console-data ']'
+ echo 'RECONFIGURE="console-data"'
+ '[' -n wheezy ']'
+ echo 'RELEASE="wheezy"'
+ '[' -n yes ']'
+ echo 'RM_APTCACHE="yes"'
+ '[' -n changeme ']'
+ echo 'ROOTPASSWORD="changeme"'
+ '[' -n yes ']'
+ echo 'SCRIPTS="yes"'
+ '[' -n yes ']'
+ echo 'SECURE="yes"'
+ '[' -n '' ']'
+ '[' -n /dev/mapper/loop0p1 ']'
+ echo 'TARGET="/dev/mapper/loop0p1"'
+ '[' -n yes ']'
+ echo 'UPGRADE_SYSTEM="yes"'
+ '[' -n 6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ']'
+ echo 'TARGET_UUID="6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f"'
+ '[' -n Europe/Vienna ']'
+ echo 'TIMEZONE="Europe/Vienna"'
+ '[' -n 'tune2fs -c0 -i0' ']'
+ echo 'TUNE2FS="tune2fs -c0 -i0"'
+ '[' -n 2G ']'
+ echo 'VMSIZE="2G"'
+ '[' -n no ']'
+ echo 'REPORT_TRAP_ERR="no"'
+ '[' -n no ']'
+ echo 'FAIL_TRAP_ERR="no"'
+ cp -v /etc/debootstrap/chroot-script /mnt/debootstrap.3127/bin/chroot-script
`/etc/debootstrap/chroot-script' -> `/mnt/debootstrap.3127/bin/chroot-script'
+ chmod 755 /mnt/debootstrap.3127/bin/chroot-script
+ '[' -d /mnt/debootstrap.3127/etc/debootstrap/ ']'
+ mkdir /mnt/debootstrap.3127/etc/debootstrap/
+ cp -v /etc/debootstrap/config /mnt/debootstrap.3127/etc/debootstrap/
`/etc/debootstrap/config' -> `/mnt/debootstrap.3127/etc/debootstrap/config'
+ sed -i 's#RELEASE=.*#RELEASE="wheezy"#' /mnt/debootstrap.3127/etc/debootstrap/config
+ sed -i 's#TARGET=.*#TARGET="/dev/mapper/loop0p1"#' /mnt/debootstrap.3127/etc/debootstrap/config
+ sed -i 's#GRUB=.*#GRUB=""#' /mnt/debootstrap.3127/etc/debootstrap/config
+ '[' -n /etc/debootstrap/install_notes ']'
+ '[' -r /etc/debootstrap/install_notes ']'
+ cp -v /etc/debootstrap/packages /mnt/debootstrap.3127/etc/debootstrap/packages
`/etc/debootstrap/packages' -> `/mnt/debootstrap.3127/etc/debootstrap/packages'
+ _opt_debconf=/etc/debootstrap/debconf-selections
+ '[' -f /etc/debootstrap/debconf-selections -a yes = yes ']'
+ _opt_chroot_scripts=/etc/debootstrap/chroot-scripts/
+ '[' -d /etc/debootstrap/chroot-scripts/ -a yes = yes ']'
+ cp -v /var/cache/grml-debootstrap/variables_test.raw /mnt/debootstrap.3127/etc/debootstrap/variables
`/var/cache/grml-debootstrap/variables_test.raw' -> `/mnt/debootstrap.3127/etc/debootstrap/variables'
+ cp -v -a -L /etc/debootstrap/extrapackages/ /mnt/debootstrap.3127/etc/debootstrap/
`/etc/debootstrap/extrapackages/' -> `/mnt/debootstrap.3127/etc/debootstrap/extrapackages'
+ '[' -f /mnt/debootstrap.3127/etc/resolv.conf ']'
+ '[' -f /mnt/debootstrap.3127/etc/hosts ']'
+ '[' -n yes ']'
+ cp -v /etc/debootstrap/locale.gen /mnt/debootstrap.3127/etc/locale.gen
`/etc/debootstrap/locale.gen' -> `/mnt/debootstrap.3127/etc/locale.gen'
+ cd /mnt/debootstrap.3127/dev
+ tar zxf /etc/debootstrap/devices.tar.gz
+ '[' -d /etc/debootstrap/bin ']'
+ '[' -d /etc/debootstrap/boot ']'
+ '[' -d /etc/debootstrap/etc ']'
+ '[' -d /etc/debootstrap/sbin ']'
+ '[' -d /etc/debootstrap/share ']'
+ '[' -d /etc/debootstrap/usr ']'
+ '[' -d /etc/debootstrap/var ']'
+ DEFAULT_INTERFACES='# /etc/network/interfaces - generated by grml-debootstrap

# Include files from /etc/network/interfaces.d when using
# ifupdown v0.7.44 or newer:
#source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
'
+ '[' -n '' ']'
+ '[' -n '# /etc/network/interfaces - generated by grml-debootstrap

# Include files from /etc/network/interfaces.d when using
# ifupdown v0.7.44 or newer:
#source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
' ']'
+ einfo 'Installing default /etc/network/interfaces as requested via --defaultinterfaces options.'
+ trap error_handler ERR
+ einfon 'Installing default /etc/network/interfaces as requested via --defaultinterfaces options.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Installing default /etc/network/interfaces as requested via --defaultinterfaces options.\n'
 * Installing default /etc/network/interfaces as requested via --defaultinterfaces options.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ echo '# /etc/network/interfaces - generated by grml-debootstrap

# Include files from /etc/network/interfaces.d when using
# ifupdown v0.7.44 or newer:
#source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
'
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -r /etc/network/interfaces.examples -a '!' -r /mnt/debootstrap.3127/etc/network/interfaces.examples ']'
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage preparechroot done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/preparechroot
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage execute_pre_scripts
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/execute_pre_scripts
+ execute_pre_scripts
+ trap error_handler ERR
+ export MNTPOINT
+ '[' -d '' ']'
+ '[' yes = yes ']'
+ '[' -d '' ']'
+ pre_scripts=/etc/debootstrap/pre-scripts/
+ for script in '${pre_scripts}/*'
+ '[' -x '/etc/debootstrap/pre-scripts//*' ']'
+ stage execute_pre_scripts done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/execute_pre_scripts
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage chrootscript
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/chrootscript
+ chrootscript
+ trap error_handler ERR
+ '[' -r /mnt/debootstrap.3127/bin/chroot-script ']'
+ '[' -x /mnt/debootstrap.3127/bin/chroot-script ']'
+ einfo 'Executing chroot-script now'
+ trap error_handler ERR
+ einfon 'Executing chroot-script now\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Executing chroot-script now\n'
 * Executing chroot-script now
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mount --bind /dev /mnt/debootstrap.3127/dev
+ '[' true = true ']'
+ chroot /mnt/debootstrap.3127 /bin/bash -x /bin/chroot-script
+ . /etc/debootstrap/config
+ . /etc/debootstrap/variables
++ ARCH=i386
++ CHROOT_SCRIPTS=yes
++ CONFFILES=/etc/debootstrap
++ DEBCONF=yes
++ DEBIAN_FRONTEND=noninteractive
++ DEBOOTSTRAP=debootstrap
++ DEFAULT_LOCALES=en_US.UTF-8
++ DEFAULT_LANGUAGE=en_US:en
++ EXTRAPACKAGES=yes
++ FALLBACK_MIRROR=http://http.debian.net/debian
++ FORCE=T
++ HOSTNAME=host
++ INITRD=yes
++ INSTALL_NOTES=/etc/debootstrap/install_notes
++ KEEP_SRC_LIST=yes
++ LOCALES=yes
++ MIRROR=http://ftp.us.debian.org/debian
++ MKFS=mkfs.ext4
++ PRE_SCRIPTS=yes
++ RECONFIGURE=console-data
++ RELEASE=wheezy
++ RM_APTCACHE=yes
++ ROOTPASSWORD=changeme
++ SCRIPTS=yes
++ SECURE=yes
++ TARGET=/dev/mapper/loop0p1
++ UPGRADE_SYSTEM=yes
++ TARGET_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
++ TIMEZONE=Europe/Vienna
++ TUNE2FS='tune2fs -c0 -i0'
++ VMSIZE=2G
++ REPORT_TRAP_ERR=no
++ FAIL_TRAP_ERR=no
+ '[' -r /proc/1 ']'
+ mount -t proc none /proc
+ '[' -x /usr/bin/aptitude ']'
+ APTUPDATE='aptitude update '
+ '[' -n '' ']'
+ APTINSTALL='aptitude -y --without-recommends install '
+ APTUPGRADE='aptitude -y safe-upgrade '
+ '[' -z '' ']'
+ STAGES=/etc/debootstrap/stages
+ '[' -d /etc/debootstrap/stages ']'
+ mkdir -p /etc/debootstrap/stages
+ trap signal_handler HUP INT QUIT TERM
+ install_policy_rcd
+ '[' -r /usr/sbin/policy-rc.d ']'
+ export POLICYRCD=1
+ POLICYRCD=1
+ cat
+ chmod 775 /usr/sbin/policy-rc.d
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage chrootmirror
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/chrootmirror
+ echo '   Executing stage chrootmirror'
   Executing stage chrootmirror
+ return 0
+ chrootmirror
+ '[' -n yes ']'
+ echo 'KEEP_SRC_LIST has been set, skipping chrootmirror stage.'
KEEP_SRC_LIST has been set, skipping chrootmirror stage.
+ return
+ stage chrootmirror done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage grmlrepos
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/grmlrepos
+ echo '   Executing stage grmlrepos'
   Executing stage grmlrepos
+ return 0
+ grmlrepos
+ '[' -n '' ']'
+ stage grmlrepos done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage backportrepos
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/backportrepos
+ echo '   Executing stage backportrepos'
   Executing stage backportrepos
+ return 0
+ backportrepos
+ '[' -n '' ']'
+ stage backportrepos done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage kernelimg_conf
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/kernelimg_conf
+ echo '   Executing stage kernelimg_conf'
   Executing stage kernelimg_conf
+ return 0
+ kernelimg_conf
+ '[' -r /etc/kernel-img.conf ']'
+ echo 'Setting up /etc/kernel-img.conf'
Setting up /etc/kernel-img.conf
+ cat
+ stage kernelimg_conf done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage kernel
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/kernel
+ echo '   Executing stage kernel'
   Executing stage kernel
+ return 0
+ kernel
+ '[' -n '' ']'
+ aptitude update
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
Get: 3 http://ftp.us.debian.org wheezy/main i386 Packages [5858 kB]
Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 9874 kB in 4s (2236 kB/s)                           

++ get_kernel_version
++ '[' -n '' ']'
++ local KARCH
++ case "$ARCH" in
++ case "$RELEASE" in
++ KARCH=686
++ for KPREFIX in '""' '"2.6-"'
++ package_exists linux-image-686
+++ apt-cache show linux-image-686
++ output='Package: linux-image-686
Source: linux-latest (46)
Version: 3.2+46
Installed-Size: 36
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: i386
Depends: linux-image-686-pae, debconf (>= 0.5) | debconf-2.0
Description-en: Linux for modern PCs (dummy package)
 This is a dummy transitional package.  It can be safely removed.
Description-md5: 2fa509fac372c32c093ad624ef0c2ea0
Section: oldlibs
Priority: extra
Filename: pool/main/l/linux-latest/linux-image-686_3.2+46_i386.deb
Size: 7986
MD5sum: b18d0d10411c7a966ceb8f9a36b1a22e
SHA1: 01c7e9a87b080dabb04658751686903bc20ca1d1
SHA256: 94f8494d7a526ed7d35b57b659418ba44b2b165e642e4b524d4fd8ae5c18716f'
++ '[' -n 'Package: linux-image-686
Source: linux-latest (46)
Version: 3.2+46
Installed-Size: 36
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: i386
Depends: linux-image-686-pae, debconf (>= 0.5) | debconf-2.0
Description-en: Linux for modern PCs (dummy package)
 This is a dummy transitional package.  It can be safely removed.
Description-md5: 2fa509fac372c32c093ad624ef0c2ea0
Section: oldlibs
Priority: extra
Filename: pool/main/l/linux-latest/linux-image-686_3.2+46_i386.deb
Size: 7986
MD5sum: b18d0d10411c7a966ceb8f9a36b1a22e
SHA1: 01c7e9a87b080dabb04658751686903bc20ca1d1
SHA256: 94f8494d7a526ed7d35b57b659418ba44b2b165e642e4b524d4fd8ae5c18716f' ']'
++ return 0
++ echo 686
++ return 0
+ KVER=686
+ '[' -n 686 ']'
+ KERNELPACKAGES='linux-image-686 linux-headers-686 busybox firmware-linux-free firmware-linux'
+ DEBIAN_FRONTEND=noninteractive
+ aptitude -y --without-recommends install linux-image-686 linux-headers-686 busybox firmware-linux-free firmware-linux
Couldn't find package "linux-headers-686".  However, the following
packages contain "linux-headers-686" in their name:
  linux-headers-686-pae 
No candidate version found for firmware-linux
Couldn't find package "linux-headers-686".  However, the following
packages contain "linux-headers-686" in their name:
  linux-headers-686-pae 
No candidate version found for firmware-linux
The following NEW packages will be installed:
  busybox firmware-linux-free initramfs-tools{a} klibc-utils{a} libklibc{a} libuuid-perl{a} linux-base{a} linux-image-3.2.0-4-686-pae{a} linux-image-686 linux-image-686-pae 
The following packages are RECOMMENDED but will NOT be installed:
  libc6-i686 
0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.8 MB of archives. After unpacking 81.8 MB will be used.
Get: 1 http://ftp.us.debian.org/debian/ wheezy/main libuuid-perl i386 0.02-5 [9742 B]
Get: 2 http://ftp.us.debian.org/debian/ wheezy/main linux-base all 3.5 [34.3 kB]
Get: 3 http://ftp.us.debian.org/debian/ wheezy/main libklibc i386 2.0.1-3.1 [58.5 kB]
Get: 4 http://ftp.us.debian.org/debian/ wheezy/main klibc-utils i386 2.0.1-3.1 [189 kB]
Get: 5 http://ftp.us.debian.org/debian/ wheezy/main initramfs-tools all 0.109.1 [91.3 kB]
Get: 6 http://ftp.us.debian.org/debian/ wheezy/main linux-image-3.2.0-4-686-pae i386 3.2.63-2 [22.9 MB]
Get: 7 http://ftp.us.debian.org/debian/ wheezy/main busybox i386 1:1.20.0-7 [441 kB]                                                                                                
Get: 8 http://ftp.us.debian.org/debian/ wheezy/main firmware-linux-free all 3.2 [20.7 kB]                                                                                           
Get: 9 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686-pae i386 3.2+46 [5814 B]                                                                                        
Get: 10 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686 i386 3.2+46 [7986 B]                                                                                           
Fetched 23.8 MB in 14s (1680 kB/s)                                                                                                                                                  
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libuuid-perl.
(Reading database ... 10358 files and directories currently installed.)
Unpacking libuuid-perl (from .../libuuid-perl_0.02-5_i386.deb) ...
Selecting previously unselected package linux-base.
Unpacking linux-base (from .../linux-base_3.5_all.deb) ...
Selecting previously unselected package libklibc.
Unpacking libklibc (from .../libklibc_2.0.1-3.1_i386.deb) ...
Selecting previously unselected package klibc-utils.
Unpacking klibc-utils (from .../klibc-utils_2.0.1-3.1_i386.deb) ...
Selecting previously unselected package initramfs-tools.
Unpacking initramfs-tools (from .../initramfs-tools_0.109.1_all.deb) ...
Selecting previously unselected package linux-image-3.2.0-4-686-pae.
Unpacking linux-image-3.2.0-4-686-pae (from .../linux-image-3.2.0-4-686-pae_3.2.63-2_i386.deb) ...
Selecting previously unselected package busybox.
Unpacking busybox (from .../busybox_1%3a1.20.0-7_i386.deb) ...
Selecting previously unselected package firmware-linux-free.
Unpacking firmware-linux-free (from .../firmware-linux-free_3.2_all.deb) ...
Selecting previously unselected package linux-image-686-pae.
Unpacking linux-image-686-pae (from .../linux-image-686-pae_3.2+46_i386.deb) ...
Selecting previously unselected package linux-image-686.
Unpacking linux-image-686 (from .../linux-image-686_3.2+46_i386.deb) ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libuuid-perl (0.02-5) ...
Setting up linux-base (3.5) ...
Setting up libklibc (2.0.1-3.1) ...
Setting up klibc-utils (2.0.1-3.1) ...
Setting up initramfs-tools (0.109.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-4-686-pae (3.2.63-2) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-686-pae /boot/vmlinuz-3.2.0-4-686-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-4-686-pae /boot/vmlinuz-3.2.0-4-686-pae
Generating grub.cfg ...
cat: /boot/grub/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
done
Setting up busybox (1:1.20.0-7) ...
Setting up firmware-linux-free (3.2) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-686-pae (3.2+46) ...
Setting up linux-image-686 (3.2+46) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae

+ stage kernel done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage packages
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/packages
+ echo '   Executing stage packages'
   Executing stage packages
+ return 0
+ packages
+ '[' -f /etc/debootstrap/debconf-selections ']'
+ '[' '' = yes ']'
+ stage packages done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage extrapackages
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/extrapackages
+ echo '   Executing stage extrapackages'
   Executing stage extrapackages
+ return 0
+ extrapackages
+ '[' yes = yes ']'
++ find /etc/debootstrap/extrapackages -type f -name '*.deb'
+ PACKAGELIST=
+ '[' -n '' ']'
+ stage extrapackages done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage reconfigure
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/reconfigure
+ echo '   Executing stage reconfigure'
   Executing stage reconfigure
+ return 0
+ reconfigure
+ '[' -n console-data ']'
+ for package in '$RECONFIGURE'
+ grep -q '^ii'
+ dpkg --list console-data
+ stage reconfigure done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage hosts
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/hosts
+ echo '   Executing stage hosts'
   Executing stage hosts
+ return 0
+ hosts
+ '[' -f /etc/hosts ']'
+ sed -i 's#127.0.0.1 .*#127.0.0.1       localhost  host#' /etc/hosts
+ '[' -n host ']'
+ sed -i s/grml/host/g /etc/hosts
+ stage hosts done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage default_locales
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/default_locales
+ echo '   Executing stage default_locales'
   Executing stage default_locales
+ return 0
+ default_locales
+ '[' -n en_US.UTF-8 ']'
+ '[' -x /usr/sbin/update-locale ']'
+ /usr/sbin/update-locale LANGUAGE=en_US:en LANG=en_US.UTF-8
*** update-locale: Error: invalid locale settings:  LANGUAGE=en_US:en LANG=en_US.UTF-8
+ exit 1
+ RC=1
+ umount /mnt/debootstrap.3127/dev
+ eend 1
+ trap error_handler ERR
+ local retval=1
+ shift
+ '[' 1 -gt 0 ']'
+ printf ' -> Failed (rc=1)\n'
 -> Failed (rc=1)
+ return 1
+ grep -q GRML_CHROOT_SCRIPT_MARKER /mnt/debootstrap.3127/bin/chroot-script
+ einfo 'Removing chroot-script again'
+ trap error_handler ERR
+ einfon 'Removing chroot-script again\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing chroot-script again\n'
 * Removing chroot-script again
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rm -f /mnt/debootstrap.3127/bin/chroot-script
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage chrootscript done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/chrootscript
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage execute_scripts
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/execute_scripts
+ execute_scripts
+ trap error_handler ERR
+ export MNTPOINT
+ '[' -d '' ']'
+ '[' yes = yes ']'
+ '[' -d '' ']'
+ scripts=/etc/debootstrap/scripts/
+ for script in '${scripts}/*'
+ '[' -x '/etc/debootstrap/scripts//*' ']'
+ stage execute_scripts done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/execute_scripts
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage umount_chroot
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/umount_chroot
+ umount_chroot
+ trap error_handler ERR
+ '[' -n /etc/debootstrap/install_notes ']'
+ '[' -r /mnt/debootstrap.3127//etc/debootstrap/install_notes ']'
+ '[' -n '' ']'
+ grep -q /mnt/debootstrap.3127 /proc/mounts
+ '[' -n 1 ']'
+ einfo 'Unmount /mnt/debootstrap.3127'
+ trap error_handler ERR
+ einfon 'Unmount /mnt/debootstrap.3127\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Unmount /mnt/debootstrap.3127\n'
 * Unmount /mnt/debootstrap.3127
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ umount /mnt/debootstrap.3127
umount: /mnt/debootstrap.3127: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
+ eend 1
+ trap error_handler ERR
+ local retval=1
+ shift
+ '[' 1 -gt 0 ']'
+ printf ' -> Failed (rc=1)\n'
 -> Failed (rc=1)
+ return 1
+ bailout 2 umount_chroot
+ trap error_handler ERR
+ cleanup
+ trap error_handler ERR
+ '[' -n /var/cache/grml-debootstrap/variables_test.raw ']'
+ einfo 'Removing /var/cache/grml-debootstrap/variables_test.raw'
+ trap error_handler ERR
+ einfon 'Removing /var/cache/grml-debootstrap/variables_test.raw\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing /var/cache/grml-debootstrap/variables_test.raw\n'
 * Removing /var/cache/grml-debootstrap/variables_test.raw
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rm /var/cache/grml-debootstrap/variables_test.raw
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n /var/cache/grml-debootstrap/stages_test.raw ']'
+ einfo 'Removing /var/cache/grml-debootstrap/stages_test.raw'
+ trap error_handler ERR
+ einfon 'Removing /var/cache/grml-debootstrap/stages_test.raw\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing /var/cache/grml-debootstrap/stages_test.raw\n'
 * Removing /var/cache/grml-debootstrap/stages_test.raw
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rmdir /var/cache/grml-debootstrap/stages_test.raw
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ grep -q '/mnt/debootstrap\.'
+ echo /mnt/debootstrap.3127
+ rmdir /mnt/debootstrap.3127
++ error_handler
++ last_exit_code=1
++ last_bash_command='rmdir "$MNTPOINT" 2> /dev/null'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ '[' -n /mnt/debootstrap.3127 ']'
+ grep -q /mnt/debootstrap.3127 /proc/mounts
+ '[' -x /mnt/debootstrap.3127/etc/init.d/ssh ']'
+ '[' -x /mnt/debootstrap.3127/etc/init.d/mdadm ']'
+ '[' -x /mnt/debootstrap.3127/bin/umount ']'
+ chroot /mnt/debootstrap.3127 umount -a
+ for ARG in /sys /proc /proc /dev /dev
+ '[' -x /mnt/debootstrap.3127/bin/umount ']'
+ chroot /mnt/debootstrap.3127 umount /sys
++ error_handler
++ last_exit_code=1
++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ umount /mnt/debootstrap.3127//sys
++ error_handler
++ last_exit_code=1
++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ for ARG in /sys /proc /proc /dev /dev
+ '[' -x /mnt/debootstrap.3127/bin/umount ']'
+ chroot /mnt/debootstrap.3127 umount /proc
+ umount /mnt/debootstrap.3127//proc
++ error_handler
++ last_exit_code=1
++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ for ARG in /sys /proc /proc /dev /dev
+ '[' -x /mnt/debootstrap.3127/bin/umount ']'
+ chroot /mnt/debootstrap.3127 umount /proc
++ error_handler
++ last_exit_code=1
++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ umount /mnt/debootstrap.3127//proc
++ error_handler
++ last_exit_code=1
++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ for ARG in /sys /proc /proc /dev /dev
+ '[' -x /mnt/debootstrap.3127/bin/umount ']'
+ chroot /mnt/debootstrap.3127 umount /dev
++ error_handler
++ last_exit_code=1
++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ umount /mnt/debootstrap.3127//dev
++ error_handler
++ last_exit_code=1
++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ for ARG in /sys /proc /proc /dev /dev
+ '[' -x /mnt/debootstrap.3127/bin/umount ']'
+ chroot /mnt/debootstrap.3127 umount /dev
++ error_handler
++ last_exit_code=1
++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ umount /mnt/debootstrap.3127//dev
++ error_handler
++ last_exit_code=1
++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
++ '[' no = yes ']'
++ '[' '!' no = yes ']'
++ return
+ '[' -n '' ']'
+ '[' -n '' ']'
+ einfo 'Unmounting /mnt/debootstrap.3127'
+ trap error_handler ERR
+ einfon 'Unmounting /mnt/debootstrap.3127\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Unmounting /mnt/debootstrap.3127\n'
 * Unmounting /mnt/debootstrap.3127
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ umount /mnt/debootstrap.3127
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n /var/cache/grml-debootstrap/stages_test.raw ']'
+ echo -n 'Removing stages directory /var/cache/grml-debootstrap/stages_test.raw: '
Removing stages directory /var/cache/grml-debootstrap/stages_test.raw: + rm -rf /var/cache/grml-debootstrap/stages_test.raw
+ echo done
done
+ grep -q '/mnt/debootstrap\.'
+ echo /mnt/debootstrap.3127
+ einfo 'Removing directory /mnt/debootstrap.3127'
+ trap error_handler ERR
+ einfon 'Removing directory /mnt/debootstrap.3127\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing directory /mnt/debootstrap.3127\n'
 * Removing directory /mnt/debootstrap.3127
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rmdir /mnt/debootstrap.3127
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n ./test.raw ']'
+ einfo 'Removing loopback mount of file ./test.raw.'
+ trap error_handler ERR
+ einfon 'Removing loopback mount of file ./test.raw.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing loopback mount of file ./test.raw.\n'
 * Removing loopback mount of file ./test.raw.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ kpartx -d ./test.raw
loop deleted : /dev/loop0
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n 2 ']'
+ EXIT=2
+ '[' -n umount_chroot ']'
+ einfo 'Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage'
+ trap error_handler ERR
+ einfon 'Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage\n'
 * Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ exit 2
tester@debian:~$ 
adrelanos commented 9 years ago

For your convenience, in comparison, when not using --nopackages / --debopt, which worked.

tester@debian:~$ pp
+ export http_proxy=http://192.168.2.100:3142
+ http_proxy=http://192.168.2.100:3142
+ set +x
tester@debian:~$ sudo -E bash -x \
>    grml-debootstrap \
>          --debug \
>          --verbose \
>          --arch i386 \
>          --filesystem ext4 \
>          --force \
>          --hostname host \
>          --mirror http://ftp.us.debian.org/debian \
>          --keep_src_list \
>          --password changeme \
>          --release wheezy \
>          --verbose \
>          --vmfile \
>          --vmsize "$VMSIZE" \
>          --target "./test.raw" \
>          --debopt "--verbose"
+ set -o pipefail
+ '[' -n '' ']'
+ REPORT_TRAP_ERR=no
+ '[' -n '' ']'
+ FAIL_TRAP_ERR=no
+ trap error_handler ERR
+ export -f error_handler
++ basename grml-debootstrap
+ PN=grml-debootstrap
++ dpkg-query --show '--showformat=${Version}' grml-debootstrap
+ VERSION=0.67
+ VERSION=0.67
+ MNTPOINT=/mnt/debootstrap.20659
+ '[' -n '' ']'
+ CHROOT_SCRIPTS=yes
+ '[' -n '' ']'
+ CONFFILES=/etc/debootstrap
+ '[' -n '' ']'
+ DEBCONF=yes
+ '[' -n '' ']'                                                                                                                                                                     
+ DEBIAN_FRONTEND=noninteractive
+ '[' -n '' ']'
+ DEBOOTSTRAP=debootstrap
+ '[' -n '' ']'
+ DEFAULT_LOCALES=en_US.UTF-8
+ '[' -n '' ']'
+ DEFAULT_LANGUAGE=en_US:en
+ '[' -n '' ']'
+ EXTRAPACKAGES=yes
+ '[' -n '' ']'
+ FALLBACK_MIRROR=http://http.debian.net/debian
+ '[' -n '' ']'
+ FORCE=
+ '[' -n debian ']'
+ '[' -n '' ']'
+ INITRD=yes
+ '[' -n '' ']'
+ INSTALL_NOTES=/etc/debootstrap/install_notes
+ '[' -n '' ']'
+ LOCALES=yes
+ '[' -n '' ']'
+ MIRROR=http://http.debian.net/debian
+ '[' -n '' ']'
+ MKFS=mkfs.ext4
+ '[' -n '' ']'
+ PACKAGES=yes
+ '[' -n '' ']'
+ PRE_SCRIPTS=yes
+ '[' -n '' ']'
+ RECONFIGURE=console-data
+ '[' -n '' ']'
+ RELEASE=wheezy
+ '[' -n '' ']'
+ RM_APTCACHE=yes
+ '[' -n '' ']'
+ SCRIPTS=yes
+ '[' -n '' ']'
+ SECURE=yes
+ '[' -n '' ']'
+ TIMEZONE=Europe/Vienna
+ '[' -n '' ']'
+ TUNE2FS='tune2fs -c0 -i0'
+ '[' -n '' ']'
+ UPGRADE_SYSTEM=yes
+ '[' -n '' ']'
+ VMSIZE=2G
+ '[' -n '' ']'
+ FIXED_DISK_IDENTIFIERS=no
+ export LANG=C
+ LANG=C
+ export LC_ALL=C
+ LC_ALL=C
+ INTERACTIVE=
+ '[' --debug = -h ']'
+ '[' --debug = -help ']'
+ '[' --debug = --help ']'
+ GOOD=''
+ WARN=''
+ BAD=''
+ NORMAL=''
+ HILITE=''
+ BRACKET=''
+ trap bailout HUP INT QUIT TERM
+ check4progs debootstrap
+ trap error_handler ERR
+ local RC=
+ for arg in '$*'
+ which debootstrap
+ '[' -n '' ']'
+ '[' -r /etc/debootstrap/config ']'
+ . /etc/debootstrap/config
+ '[' -r ./cmdlineopts.clp ']'
+ '[' -r /usr/share/grml-debootstrap/functions/cmdlineopts.clp ']'
+ . /usr/share/grml-debootstrap/functions/cmdlineopts.clp
++ CMDLINE_OPTS=mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug
+++ getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt --verbose
++ _opt_temp=' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose'\'' --'
++ '[' 0 '!=' 0 ']'
++ eval set -- ' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose'\'' --'
+++ set -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt --verbose --
++ :
++ case "$1" in
++ _opt_debug=T
++ shift
++ :
++ case "$1" in
++ '[' '' ']'
++ _opt_verbose=1
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_arch=i386
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_filesystem=ext4
++ shift
++ :
++ case "$1" in
++ _opt_force=T
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_hostname=host
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_mirror=http://ftp.us.debian.org/debian
++ shift
++ :
++ case "$1" in
++ _opt_keep_src_list=T
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_password=changeme
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_release=wheezy
++ shift
++ :
++ case "$1" in
++ '[' 1 ']'
+++ expr 1 + 1
++ _opt_verbose=2
++ shift
++ :
++ case "$1" in
++ _opt_vmfile=T
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_vmsize=
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_target=./test.raw
++ shift
++ :
++ case "$1" in
++ shift
++ _opt_debopt=--verbose
++ shift
++ :
++ case "$1" in
++ shift
++ break
+ '[' '' ']'
+ '[' http://ftp.us.debian.org/debian ']'
+ MIRROR=http://ftp.us.debian.org/debian
+ '[' '' ']'
+ '[' wheezy ']'
+ RELEASE=wheezy
+ '[' ./test.raw ']'
+ TARGET=./test.raw
+ '[' '' ']'
+ '[' T ']'
+ VMFILE=1
+ VIRTUAL=1
+ '[' '' ']'
+ '[' '' ']'
+ '[' --verbose ']'
+ DEBOOTSTRAP_OPT=--verbose
+ '[' '' ']'
+ '[' '' ']'
+ '[' ext4 ']'
+ MKFS=mkfs.ext4
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' T ']'
+ KEEP_SRC_LIST=yes
+ '[' '' ']'
+ '[' '' ']'
+ '[' host ']'
+ HOSTNAME=host
+ '[' changeme ']'
+ ROOTPASSWORD=changeme
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' i386 ']'
+ ARCH=i386
+ '[' '' ']'
+ '[' T ']'
+ FORCE=T
+ '[' 2 ']'
+ VERBOSE=-v
+ '[' T ']'
+ DEBUG=true
+ '[' true = true ']'
+ set -x
+ '[' '' ']'
+ '[' '' ']'
+ check4root
+ trap error_handler ERR
++ id -u
+ '[' 0 '!=' 0 ']'
+ '[' -n 1 ']'
+ check4progs kpartx mksh parted qemu-img
+ trap error_handler ERR
+ local RC=
+ for arg in '$*'
+ which kpartx
+ for arg in '$*'
+ which mksh
+ for arg in '$*'
+ which parted
+ for arg in '$*'
+ which qemu-img
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ grep -q '^hd'
+ echo ''
+ '[' -z ./test.raw -o -n '' ']'
+ '[' -n i386 ']'
+ ARCHCMD='--arch i386'
+ ARCHINFO=' (i386)'
++ uname -m
+ CURRENT_ARCH=i686
+ '[' i686 '!=' x86_64 ']'
+ '[' i386 = amd64 ']'
+ checkconfiguration
+ trap error_handler ERR
+ '[' -n '' ']'
+ '[' -n '' ']'
+ einfo 'grml-debootstrap [0.67] - Please recheck configuration before execution:'
+ trap error_handler ERR
+ einfon 'grml-debootstrap [0.67] - Please recheck configuration before execution:\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' '' = ebegin ']'
+ printf ' * grml-debootstrap [0.67] - Please recheck configuration before execution:\n'
 * grml-debootstrap [0.67] - Please recheck configuration before execution:
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ echo

+ echo '   Target:          ./test.raw'
   Target:          ./test.raw
+ case "$MNTPOINT" in
+ '[' -n 1 ']'
+ echo '   Install grub:    yes'
   Install grub:    yes
+ '[' -n wheezy ']'
+ echo '   Using release:   wheezy'
   Using release:   wheezy
+ '[' -n host ']'
+ echo '   Using hostname:  host'
   Using hostname:  host
+ '[' -n http://ftp.us.debian.org/debian ']'
+ echo '   Using mirror:    http://ftp.us.debian.org/debian'
   Using mirror:    http://ftp.us.debian.org/debian
+ '[' -n '' ']'
+ '[' -n i386 ']'
+ echo '   Using arch:      i386'
   Using arch:      i386
+ '[' -n 1 ']'
+ echo '   Deploying as Virtual Machine.'
   Deploying as Virtual Machine.
+ '[' -n 2G -a -n 1 ']'
+ echo '   Using Virtual Disk file with size of 2G.'
   Using Virtual Disk file with size of 2G.
+ '[' '!' -t 0 -a -z changeme -a -z '' ']'
+ echo

+ echo '   Important! Continuing will delete all data from ./test.raw!'
   Important! Continuing will delete all data from ./test.raw!
+ '[' -n T ']'
+ einfo 'Skip user acknowledgement as requested via --force option.'
+ trap error_handler ERR
+ einfon 'Skip user acknowledgement as requested via --force option.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Skip user acknowledgement as requested via --force option.\n'
 * Skip user acknowledgement as requested via --force option.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ '[' -n ./test.raw ']'
+ SHORT_TARGET=test.raw
+ '[' -z '' ']'
+ STAGES=/var/cache/grml-debootstrap/stages_test.raw
+ '[' -d /var/cache/grml-debootstrap/stages_test.raw ']'
+ mkdir -p /var/cache/grml-debootstrap/stages_test.raw
+ '[' -r /var/cache/grml-debootstrap/stages_test.raw/grml-debootstrap ']'
+ PARTITION=
+ DIRECTORY=
+ '[' -b ./test.raw ']'
+ '[' -n 1 ']'
+ PARTITION=1
+ '[' -n '' ']'
+ ISODIR=
+ ISODIR=
+ '[' -n '' ']'
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage prepare_vm
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/prepare_vm
+ prepare_vm
+ trap error_handler ERR
+ '[' -z 1 ']'
+ '[' -b ./test.raw -a -n 1 ']'
+ '[' '!' -b ./test.raw -a -z 1 ']'
+ ORIG_TARGET=./test.raw
+ '[' -n 1 ']'
+ qemu-img create -f raw ./test.raw 2G
Formatting './test.raw', fmt=raw size=2147483648 
+ dd of=./test.raw conv=notrunc
+ /usr/share/grml-debootstrap/bootgrub.mksh -A
+ echo 4 66
0 @0x168: 63 @4 (0x4)
 - 0x168: 32 (0x20) @ 4 (0x4)
 - 0x16A: 31 (0x1F) @ 36 (0x24)
using 2 blocks, 4 bytes (146 free)
using sectors of 2^9 = 512 bytes
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0209535 s, 24.4 kB/s
+ dd if=/dev/zero bs=1 conv=notrunc count=64 seek=446 of=./test.raw
64+0 records in
64+0 records out
64 bytes (64 B) copied, 0.00154434 s, 41.4 kB/s
+ '[' no = yes ']'
+ parted -s ./test.raw 'mkpart primary ext4 2M -1'
+ kpartx -av ./test.raw
+ grep -q device-mapper /proc/misc
+ losetup -f
++ kpartx -av ./test.raw
+ DEVINFO='add map loop0p1 (254:0): 0 4190208 linear /dev/loop0 4096'
+ '[' -z 'add map loop0p1 (254:0): 0 4190208 linear /dev/loop0 4096' ']'
++ sed 's/.* linear //; s/ [[:digit:]]*//'
++ echo add map loop0p1 '(254:0):' 0 4190208 linear /dev/loop0 4096
+ LOOP=/dev/loop0
++ sed -e 's/.* (\(.*:.*\)).*/\1/'
++ echo 'add map loop0p1 (254:0): 0 4190208 linear /dev/loop0 4096'
+ BLOCKDEV=254:0
++ sed 's/ .*//'
++ echo loop0p1 '(254:0):' 0 4190208 linear /dev/loop0 4096
+ LOOP_PART=loop0p1
+ export TARGET=/dev/mapper/loop0p1
+ TARGET=/dev/mapper/loop0p1
+ blockdev --rereadpt /dev/loop0
BLKRRPART: Invalid argument
+ '[' -z /dev/mapper/loop0p1 ']'
+ stage prepare_vm done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/prepare_vm
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage mkfs
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/mkfs
+ mkfs
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q /dev/mapper/loop0p1 /proc/mounts
+ '[' -n mkfs.ext4 ']'
+ einfo 'Running mkfs.ext4 on /dev/mapper/loop0p1'
+ trap error_handler ERR
+ einfon 'Running mkfs.ext4 on /dev/mapper/loop0p1\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Running mkfs.ext4 on /dev/mapper/loop0p1\n'
 * Running mkfs.ext4 on /dev/mapper/loop0p1
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mkfs.ext4 /dev/mapper/loop0p1
mke2fs 1.42.5 (29-Jul-2012)
Discarding device blocks: done                            
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 523776 blocks
26188 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done 

+ RC=0
+ '[' no = yes ']'
+ grep -q /dev/md
+ echo /dev/mapper/loop0p1
+ '[' -n 1 ']'
+ sleep 2
++ blkid -o udev /dev/mapper/loop0p1
+ eval ID_FS_UUID=97354d78-56a2-48b9-9cf1-2d4313522237 ID_FS_UUID_ENC=97354d78-56a2-48b9-9cf1-2d4313522237 ID_FS_TYPE=ext4
++ ID_FS_UUID=97354d78-56a2-48b9-9cf1-2d4313522237
++ ID_FS_UUID_ENC=97354d78-56a2-48b9-9cf1-2d4313522237
++ ID_FS_TYPE=ext4
+ '[' -n 97354d78-56a2-48b9-9cf1-2d4313522237 ']'
+ TARGET_UUID=97354d78-56a2-48b9-9cf1-2d4313522237
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage mkfs done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/mkfs
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage tunefs
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/tunefs
+ tunefs
+ trap error_handler ERR
+ '[' -n 'tune2fs -c0 -i0' ']'
+ grep -q mkfs.ext
+ echo mkfs.ext4
+ einfo 'Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs'
+ trap error_handler ERR
+ einfon 'Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs\n'
 * Disabling automatic filesystem check on /dev/mapper/loop0p1 via tune2fs
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ tune2fs -c0 -i0 /dev/mapper/loop0p1
tune2fs 1.42.5 (29-Jul-2012)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage tunefs done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/tunefs
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage mount_target
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/mount_target
+ mount_target
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q /dev/mapper/loop0p1 /proc/mounts
+ '[' -d /mnt/debootstrap.20659 ']'
+ '[' -n 1 ']'
+ einfo 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659'
+ trap error_handler ERR
+ einfon 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659\n'
 * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mkdir -p /mnt/debootstrap.20659
+ mount -o rw,suid,dev /dev/mapper/loop0p1 /mnt/debootstrap.20659
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n '' ']'
+ stage mount_target done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/mount_target
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage debootstrap_system
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/debootstrap_system
+ debootstrap_system
+ trap error_handler ERR
+ '[' '' ']'
+ grep -q /mnt/debootstrap.20659 /proc/mounts
+ :
+ '[' -n '' ']'
+ einfo 'Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian'
+ trap error_handler ERR
+ einfon 'Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
 * Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ einfo 'Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian'
+ trap error_handler ERR
+ einfon 'Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian\n'
 * Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ debootstrap --arch i386 --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id ED6D65271AACF0FF15D123036FB2A1C265FFB764)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb5.1 libsemanage-common libsemanage1 libslang2 libustr-1.0-1 
I: Found additional base dependencies: libept1.4.12 libgcrypt11 libgnutls26 libgpg-error0 libidn11 libnfnetlink0 libp11-kit0 libsqlite3-0 libtasn1-3 libxapian22 
I: Checking component main on http://ftp.us.debian.org/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt
I: Validating apt
I: Retrieving apt-utils
I: Validating apt-utils
I: Retrieving libapt-inst1.5
I: Validating libapt-inst1.5
I: Retrieving libapt-pkg4.12
I: Validating libapt-pkg4.12
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving aptitude-common
I: Validating aptitude-common
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving libboost-iostreams1.49.0
I: Validating libboost-iostreams1.49.0
I: Retrieving bsdmainutils
I: Validating bsdmainutils
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving cron
I: Validating cron
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving dash
I: Validating dash
I: Retrieving libdb5.1
I: Validating libdb5.1
I: Retrieving debconf
I: Validating debconf
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dmidecode
I: Validating dmidecode
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libc-bin
I: Validating libc-bin
I: Retrieving libc6
I: Validating libc6
I: Retrieving multiarch-support
I: Validating multiarch-support
I: Retrieving findutils
I: Validating findutils
I: Retrieving gcc-4.7-base
I: Validating gcc-4.7-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libgdbm3
I: Validating libgdbm3
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving libgnutls26
I: Validating libgnutls26
I: Retrieving grep
I: Validating grep
I: Retrieving groff-base
I: Validating groff-base
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving insserv
I: Validating insserv
I: Retrieving iproute
I: Validating iproute
I: Retrieving iptables
I: Validating iptables
I: Retrieving iputils-ping
I: Validating iputils-ping
I: Retrieving isc-dhcp-client
I: Validating isc-dhcp-client
I: Retrieving isc-dhcp-common
I: Validating isc-dhcp-common
I: Retrieving kmod
I: Validating kmod
I: Retrieving libkmod2
I: Validating libkmod2
I: Retrieving libept1.4.12
I: Validating libept1.4.12
I: Retrieving libgcrypt11
I: Validating libgcrypt11
I: Retrieving libgpg-error0
I: Validating libgpg-error0
I: Retrieving libidn11
I: Validating libidn11
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libnfnetlink0
I: Validating libnfnetlink0
I: Retrieving libpipeline1
I: Validating libpipeline1
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsemanage-common
I: Validating libsemanage-common
I: Retrieving libsemanage1
I: Validating libsemanage1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libtasn1-3
I: Validating libtasn1-3
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving logrotate
I: Validating logrotate
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving man-db
I: Validating man-db
I: Retrieving manpages
I: Validating manpages
I: Retrieving mawk
I: Validating mawk
I: Retrieving nano
I: Validating nano
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving libtinfo5
I: Validating libtinfo5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving net-tools
I: Validating net-tools
I: Retrieving netbase
I: Validating netbase
I: Retrieving netcat-traditional
I: Validating netcat-traditional
I: Retrieving libnewt0.52
I: Validating libnewt0.52
I: Retrieving whiptail
I: Validating whiptail
I: Retrieving libssl1.0.0
I: Validating libssl1.0.0
I: Retrieving libp11-kit0
I: Validating libp11-kit0
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-modules-bin
I: Validating libpam-modules-bin
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving libpopt0
I: Validating libpopt0
I: Retrieving libprocps0
I: Validating libprocps0
I: Retrieving procps
I: Validating procps
I: Retrieving libreadline6
I: Validating libreadline6
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving rsyslog
I: Validating rsyslog
I: Retrieving sed
I: Validating sed
I: Retrieving sensible-utils
I: Validating sensible-utils
I: Retrieving login
I: Validating login
I: Retrieving passwd
I: Validating passwd
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving libsqlite3-0
I: Validating libsqlite3-0
I: Retrieving initscripts
I: Validating initscripts
I: Retrieving sysv-rc
I: Validating sysv-rc
I: Retrieving sysvinit
I: Validating sysvinit
I: Retrieving sysvinit-utils
I: Validating sysvinit-utils
I: Retrieving tar
I: Validating tar
I: Retrieving tasksel
I: Validating tasksel
I: Retrieving tasksel-data
I: Validating tasksel-data
I: Retrieving info
I: Validating info
I: Retrieving install-info
I: Validating install-info
I: Retrieving traceroute
I: Validating traceroute
I: Retrieving tzdata
I: Validating tzdata
I: Retrieving libudev0
I: Validating libudev0
I: Retrieving udev
I: Validating udev
I: Retrieving libustr-1.0-1
I: Validating libustr-1.0-1
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving libblkid1
I: Validating libblkid1
I: Retrieving libmount1
I: Validating libmount1
I: Retrieving libuuid1
I: Validating libuuid1
I: Retrieving mount
I: Validating mount
I: Retrieving util-linux
I: Validating util-linux
I: Retrieving vim-common
I: Validating vim-common
I: Retrieving vim-tiny
I: Validating vim-tiny
I: Retrieving wget
I: Validating wget
I: Retrieving libxapian22
I: Validating libxapian22
I: Retrieving liblzma5
I: Validating liblzma5
I: Retrieving xz-utils
I: Validating xz-utils
I: Retrieving zlib1g
I: Validating zlib1g
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.1...
I: Extracting debconf...
I: Extracting debconf-i18n...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting multiarch-support...
I: Extracting findutils...
I: Extracting gcc-4.7-base...
I: Extracting libgcc1...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting insserv...
I: Extracting liblocale-gettext-perl...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting lsb-base...
I: Extracting mawk...
I: Extracting libncurses5...
I: Extracting libtinfo5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting login...
I: Extracting passwd...
I: Extracting libslang2...
I: Extracting initscripts...
I: Extracting sysv-rc...
I: Extracting sysvinit...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting libustr-1.0-1...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libmount1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting xz-utils...
I: Extracting zlib1g...
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking libacl1:i386...
I: Unpacking libattr1:i386...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking libbz2-1.0:i386...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking libdb5.1:i386...
I: Unpacking debconf...
I: Unpacking debconf-i18n...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fslibs:i386...
I: Unpacking e2fsprogs...
I: Unpacking libcomerr2:i386...
I: Unpacking libss2:i386...
I: Unpacking libc-bin...
I: Unpacking libc6:i386...
I: Unpacking multiarch-support...
I: Unpacking findutils...
I: Unpacking gcc-4.7-base:i386...
I: Unpacking libgcc1:i386...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking insserv...
I: Unpacking liblocale-gettext-perl...
I: Unpacking libselinux1:i386...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage1:i386...
I: Unpacking libsepol1:i386...
I: Unpacking libtext-charwidth-perl...
I: Unpacking libtext-iconv-perl...
I: Unpacking libtext-wrapi18n-perl...
I: Unpacking lsb-base...
I: Unpacking mawk...
I: Unpacking libncurses5:i386...
I: Unpacking libtinfo5:i386...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking libpam-modules:i386...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:i386...
I: Unpacking perl-base...
I: Unpacking sed...
I: Unpacking sensible-utils...
I: Unpacking login...
I: Unpacking passwd...
I: Unpacking libslang2:i386...
I: Unpacking initscripts...
I: Unpacking sysv-rc...
I: Unpacking sysvinit...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking tzdata...
I: Unpacking libustr-1.0-1:i386...
I: Unpacking bsdutils...
I: Unpacking libblkid1:i386...
I: Unpacking libmount1...
I: Unpacking libuuid1:i386...
I: Unpacking mount...
I: Unpacking util-linux...
I: Unpacking liblzma5:i386...
I: Unpacking xz-utils...
I: Unpacking zlib1g:i386...
I: Configuring required packages...
I: Configuring lsb-base...
I: Configuring ncurses-base...
I: Configuring sensible-utils...
I: Configuring libsemanage-common...
I: Configuring gcc-4.7-base:i386...
I: Configuring libc-bin...
I: Configuring libc6:i386...
I: Configuring debianutils...
I: Configuring bsdutils...
I: Configuring tar...
I: Configuring base-passwd...
I: Configuring mawk...
I: Configuring hostname...
I: Configuring insserv...
I: Configuring multiarch-support...
I: Configuring libselinux1:i386...
I: Configuring libustr-1.0-1:i386...
I: Configuring libsepol1:i386...
I: Configuring zlib1g:i386...
I: Configuring libgcc1:i386...
I: Configuring base-files...
I: Configuring libattr1:i386...
I: Configuring e2fslibs:i386...
I: Configuring libcomerr2:i386...
I: Configuring libacl1:i386...
I: Configuring libslang2:i386...
I: Configuring libss2:i386...
I: Configuring liblzma5:i386...
I: Configuring libdb5.1:i386...
I: Configuring libbz2-1.0:i386...
I: Configuring libtinfo5:i386...
I: Configuring sysvinit-utils...
I: Configuring ncurses-bin...
I: Configuring libsemanage1:i386...
I: Configuring libncurses5:i386...
I: Configuring xz-utils...
I: Configuring dpkg...
I: Configuring dash...
I: Configuring coreutils...
I: Configuring perl-base...
I: Configuring diffutils...
I: Configuring libtext-iconv-perl...
I: Configuring sed...
I: Configuring grep...
I: Configuring findutils...
I: Configuring gzip...
I: Configuring liblocale-gettext-perl...
I: Configuring bash...
I: Configuring libtext-charwidth-perl...
I: Configuring libtext-wrapi18n-perl...
I: Configuring debconf...
I: Configuring libpam0g:i386...
I: Configuring sysv-rc...
I: Configuring tzdata...
I: Configuring debconf-i18n...
I: Configuring libpam-modules-bin...
I: Configuring libpam-modules:i386...
I: Configuring passwd...
I: Configuring libpam-runtime...
I: Configuring login...
I: Configuring libuuid1:i386...
I: Configuring libblkid1:i386...
I: Configuring libmount1...
I: Configuring mount...
I: Configuring initscripts...
I: Configuring util-linux...
I: Configuring sysvinit...
I: Configuring e2fsprogs...
I: Unpacking the base system...
I: Unpacking adduser...
I: Unpacking apt...
I: Unpacking apt-utils...
I: Unpacking libapt-inst1.5:i386...
I: Unpacking libapt-pkg4.12:i386...
I: Unpacking aptitude...
I: Unpacking aptitude-common...
I: Unpacking libboost-iostreams1.49.0...
I: Unpacking bsdmainutils...
I: Unpacking cpio...
I: Unpacking cron...
I: Unpacking libcwidget3...
I: Unpacking debian-archive-keyring...
I: Unpacking dmidecode...
I: Unpacking libstdc++6:i386...
I: Unpacking libgdbm3:i386...
I: Unpacking gnupg...
I: Unpacking gpgv...
I: Unpacking libgnutls26:i386...
I: Unpacking groff-base...
I: Unpacking ifupdown...
I: Unpacking iproute...
I: Unpacking iptables...
I: Unpacking iputils-ping...
I: Unpacking isc-dhcp-client...
I: Unpacking isc-dhcp-common...
I: Unpacking kmod...
I: Unpacking libkmod2:i386...
I: Unpacking libept1.4.12...
I: Unpacking libgcrypt11:i386...
I: Unpacking libgpg-error0:i386...
I: Unpacking libidn11:i386...
I: Unpacking libnfnetlink0...
I: Unpacking libpipeline1:i386...
I: Unpacking libsigc++-2.0-0c2a:i386...
I: Unpacking libtasn1-3:i386...
I: Unpacking libusb-0.1-4:i386...
I: Unpacking logrotate...
I: Unpacking man-db...
I: Unpacking manpages...
I: Unpacking nano...
I: Unpacking libncursesw5:i386...
I: Unpacking net-tools...
I: Unpacking netbase...
I: Unpacking netcat-traditional...
I: Unpacking libnewt0.52...
I: Unpacking whiptail...
I: Unpacking libssl1.0.0:i386...
I: Unpacking libp11-kit0:i386...
I: Unpacking libpopt0:i386...
I: Unpacking libprocps0:i386...
I: Unpacking procps...
I: Unpacking libreadline6:i386...
I: Unpacking readline-common...
I: Unpacking rsyslog...
I: Unpacking libsqlite3-0:i386...
I: Unpacking tasksel...
I: Unpacking tasksel-data...
I: Unpacking info...
I: Unpacking install-info...
I: Unpacking traceroute...
I: Unpacking libudev0:i386...
I: Unpacking udev...
I: Unpacking vim-common...
I: Unpacking vim-tiny...
I: Unpacking wget...
I: Unpacking libxapian22...
I: Configuring the base system...
I: Configuring gpgv...
I: Configuring libssl1.0.0:i386...
I: Configuring libgdbm3:i386...
I: Configuring isc-dhcp-common...
I: Configuring libtasn1-3:i386...
I: Configuring libpopt0:i386...
I: Configuring libusb-0.1-4:i386...
I: Configuring libgpg-error0:i386...
I: Configuring install-info...
I: Configuring vim-common...
I: Configuring libprocps0:i386...
I: Configuring netbase...
I: Configuring dmidecode...
I: Configuring libudev0:i386...
I: Configuring libkmod2:i386...
I: Configuring adduser...
I: Configuring traceroute...
I: Configuring manpages...
I: Configuring libsqlite3-0:i386...
I: Configuring iproute...
I: Configuring libidn11:i386...
I: Configuring libnewt0.52...
I: Configuring net-tools...
I: Configuring libpipeline1:i386...
I: Configuring bsdmainutils...
I: Configuring netcat-traditional...
I: Configuring debian-archive-keyring...
I: Configuring libncursesw5:i386...
I: Configuring info...
I: Configuring iputils-ping...
I: Configuring aptitude-common...
I: Configuring cron...
I: Configuring nano...
I: Configuring libp11-kit0:i386...
I: Configuring rsyslog...
I: Configuring cpio...
I: Configuring libstdc++6:i386...
I: Configuring isc-dhcp-client...
I: Configuring vim-tiny...
I: Configuring readline-common...
I: Configuring libnfnetlink0...
I: Configuring libgcrypt11:i386...
I: Configuring procps...
I: Configuring libxapian22...
I: Configuring whiptail...
I: Configuring ifupdown...
I: Configuring kmod...
I: Configuring libapt-pkg4.12:i386...
I: Configuring libept1.4.12...
I: Configuring libapt-inst1.5:i386...
I: Configuring libreadline6:i386...
I: Configuring logrotate...
I: Configuring libboost-iostreams1.49.0...
I: Configuring groff-base...
I: Configuring gnupg...
I: Configuring libsigc++-2.0-0c2a:i386...
I: Configuring libgnutls26:i386...
I: Configuring apt-utils...
I: Configuring udev...
I: Configuring iptables...
I: Configuring man-db...
I: Configuring apt...
I: Configuring wget...
I: Configuring libcwidget3...
I: Configuring aptitude...
I: Configuring tasksel...
I: Configuring tasksel-data...
I: Base system installed successfully.
+ RC=0
+ '[' 0 -ne 0 ']'
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage debootstrap_system done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/debootstrap_system
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage preparechroot
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/preparechroot
+ preparechroot
+ trap error_handler ERR
+ einfo 'Preparing chroot system'
+ trap error_handler ERR
+ einfon 'Preparing chroot system\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Preparing chroot system\n'
 * Preparing chroot system
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ CHROOT_VARIABLES=/var/cache/grml-debootstrap/variables_test.raw
+ touch /var/cache/grml-debootstrap/variables_test.raw
+ chmod 600 /var/cache/grml-debootstrap/variables_test.raw
+ echo '# Configuration of grml-debootstrap'
+ '[' -n i386 ']'
+ echo 'ARCH="i386"'
+ '[' -n '' ']'
+ '[' -n yes ']'
+ echo 'CHROOT_SCRIPTS="yes"'
+ '[' -n /etc/debootstrap ']'
+ echo 'CONFFILES="/etc/debootstrap"'
+ '[' -n yes ']'
+ echo 'DEBCONF="yes"'
+ '[' -n noninteractive ']'
+ echo 'DEBIAN_FRONTEND="noninteractive"'
+ '[' -n debootstrap ']'
+ echo 'DEBOOTSTRAP="debootstrap"'
+ '[' -n en_US.UTF-8 ']'
+ echo 'DEFAULT_LOCALES="en_US.UTF-8"'
+ '[' -n en_US:en ']'
+ echo 'DEFAULT_LANGUAGE="en_US:en"'
+ '[' -n yes ']'
+ echo 'EXTRAPACKAGES="yes"'
+ '[' -n http://http.debian.net/debian ']'
+ echo 'FALLBACK_MIRROR="http://http.debian.net/debian"'
+ '[' -n T ']'
+ echo 'FORCE="T"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n host ']'
+ echo 'HOSTNAME="host"'
+ '[' -n yes ']'
+ echo 'INITRD="yes"'
+ '[' -n /etc/debootstrap/install_notes ']'
+ echo 'INSTALL_NOTES="/etc/debootstrap/install_notes"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n yes ']'
+ echo 'KEEP_SRC_LIST="yes"'
+ '[' -n yes ']'
+ echo 'LOCALES="yes"'
+ '[' -n http://ftp.us.debian.org/debian ']'
+ echo 'MIRROR="http://ftp.us.debian.org/debian"'
+ '[' -n mkfs.ext4 ']'
+ echo 'MKFS="mkfs.ext4"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n yes ']'
+ echo 'PACKAGES="yes"'
+ '[' -n yes ']'
+ echo 'PRE_SCRIPTS="yes"'
+ '[' -n console-data ']'
+ echo 'RECONFIGURE="console-data"'
+ '[' -n wheezy ']'
+ echo 'RELEASE="wheezy"'
+ '[' -n yes ']'
+ echo 'RM_APTCACHE="yes"'
+ '[' -n changeme ']'
+ echo 'ROOTPASSWORD="changeme"'
+ '[' -n yes ']'
+ echo 'SCRIPTS="yes"'
+ '[' -n yes ']'
+ echo 'SECURE="yes"'
+ '[' -n '' ']'
+ '[' -n /dev/mapper/loop0p1 ']'
+ echo 'TARGET="/dev/mapper/loop0p1"'
+ '[' -n yes ']'
+ echo 'UPGRADE_SYSTEM="yes"'
+ '[' -n 97354d78-56a2-48b9-9cf1-2d4313522237 ']'
+ echo 'TARGET_UUID="97354d78-56a2-48b9-9cf1-2d4313522237"'
+ '[' -n Europe/Vienna ']'
+ echo 'TIMEZONE="Europe/Vienna"'
+ '[' -n 'tune2fs -c0 -i0' ']'
+ echo 'TUNE2FS="tune2fs -c0 -i0"'
+ '[' -n 2G ']'
+ echo 'VMSIZE="2G"'
+ '[' -n no ']'
+ echo 'REPORT_TRAP_ERR="no"'
+ '[' -n no ']'
+ echo 'FAIL_TRAP_ERR="no"'
+ cp -v /etc/debootstrap/chroot-script /mnt/debootstrap.20659/bin/chroot-script
`/etc/debootstrap/chroot-script' -> `/mnt/debootstrap.20659/bin/chroot-script'
+ chmod 755 /mnt/debootstrap.20659/bin/chroot-script
+ '[' -d /mnt/debootstrap.20659/etc/debootstrap/ ']'
+ mkdir /mnt/debootstrap.20659/etc/debootstrap/
+ cp -v /etc/debootstrap/config /mnt/debootstrap.20659/etc/debootstrap/
`/etc/debootstrap/config' -> `/mnt/debootstrap.20659/etc/debootstrap/config'
+ sed -i 's#RELEASE=.*#RELEASE="wheezy"#' /mnt/debootstrap.20659/etc/debootstrap/config
+ sed -i 's#TARGET=.*#TARGET="/dev/mapper/loop0p1"#' /mnt/debootstrap.20659/etc/debootstrap/config
+ sed -i 's#GRUB=.*#GRUB=""#' /mnt/debootstrap.20659/etc/debootstrap/config
+ '[' -n /etc/debootstrap/install_notes ']'
+ '[' -r /etc/debootstrap/install_notes ']'
+ cp -v /etc/debootstrap/packages /mnt/debootstrap.20659/etc/debootstrap/packages
`/etc/debootstrap/packages' -> `/mnt/debootstrap.20659/etc/debootstrap/packages'
+ _opt_debconf=/etc/debootstrap/debconf-selections
+ '[' -f /etc/debootstrap/debconf-selections -a yes = yes ']'
+ _opt_chroot_scripts=/etc/debootstrap/chroot-scripts/
+ '[' -d /etc/debootstrap/chroot-scripts/ -a yes = yes ']'
+ cp -v /var/cache/grml-debootstrap/variables_test.raw /mnt/debootstrap.20659/etc/debootstrap/variables
`/var/cache/grml-debootstrap/variables_test.raw' -> `/mnt/debootstrap.20659/etc/debootstrap/variables'
+ cp -v -a -L /etc/debootstrap/extrapackages/ /mnt/debootstrap.20659/etc/debootstrap/
`/etc/debootstrap/extrapackages/' -> `/mnt/debootstrap.20659/etc/debootstrap/extrapackages'
+ '[' -f /mnt/debootstrap.20659/etc/resolv.conf ']'
+ '[' -f /mnt/debootstrap.20659/etc/hosts ']'
+ '[' -n yes ']'
+ cp -v /etc/debootstrap/locale.gen /mnt/debootstrap.20659/etc/locale.gen
`/etc/debootstrap/locale.gen' -> `/mnt/debootstrap.20659/etc/locale.gen'
+ cd /mnt/debootstrap.20659/dev
+ tar zxf /etc/debootstrap/devices.tar.gz
+ '[' -d /etc/debootstrap/bin ']'
+ '[' -d /etc/debootstrap/boot ']'
+ '[' -d /etc/debootstrap/etc ']'
+ '[' -d /etc/debootstrap/sbin ']'
+ '[' -d /etc/debootstrap/share ']'
+ '[' -d /etc/debootstrap/usr ']'
+ '[' -d /etc/debootstrap/var ']'
+ DEFAULT_INTERFACES='# /etc/network/interfaces - generated by grml-debootstrap

# Include files from /etc/network/interfaces.d when using
# ifupdown v0.7.44 or newer:
#source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
'
+ '[' -n '' ']'
+ '[' -n '# /etc/network/interfaces - generated by grml-debootstrap

# Include files from /etc/network/interfaces.d when using
# ifupdown v0.7.44 or newer:
#source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
' ']'
+ einfo 'Installing default /etc/network/interfaces as requested via --defaultinterfaces options.'
+ trap error_handler ERR
+ einfon 'Installing default /etc/network/interfaces as requested via --defaultinterfaces options.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Installing default /etc/network/interfaces as requested via --defaultinterfaces options.\n'
 * Installing default /etc/network/interfaces as requested via --defaultinterfaces options.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ echo '# /etc/network/interfaces - generated by grml-debootstrap

# Include files from /etc/network/interfaces.d when using
# ifupdown v0.7.44 or newer:
#source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
'
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -r /etc/network/interfaces.examples -a '!' -r /mnt/debootstrap.20659/etc/network/interfaces.examples ']'
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage preparechroot done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/preparechroot
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage execute_pre_scripts
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/execute_pre_scripts
+ execute_pre_scripts
+ trap error_handler ERR
+ export MNTPOINT
+ '[' -d '' ']'
+ '[' yes = yes ']'
+ '[' -d '' ']'
+ pre_scripts=/etc/debootstrap/pre-scripts/
+ for script in '${pre_scripts}/*'
+ '[' -x '/etc/debootstrap/pre-scripts//*' ']'
+ stage execute_pre_scripts done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/execute_pre_scripts
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage chrootscript
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/chrootscript
+ chrootscript
+ trap error_handler ERR
+ '[' -r /mnt/debootstrap.20659/bin/chroot-script ']'
+ '[' -x /mnt/debootstrap.20659/bin/chroot-script ']'
+ einfo 'Executing chroot-script now'
+ trap error_handler ERR
+ einfon 'Executing chroot-script now\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Executing chroot-script now\n'
 * Executing chroot-script now
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mount --bind /dev /mnt/debootstrap.20659/dev
+ '[' true = true ']'
+ chroot /mnt/debootstrap.20659 /bin/bash -x /bin/chroot-script
+ . /etc/debootstrap/config
+ . /etc/debootstrap/variables
++ ARCH=i386
++ CHROOT_SCRIPTS=yes
++ CONFFILES=/etc/debootstrap
++ DEBCONF=yes
++ DEBIAN_FRONTEND=noninteractive
++ DEBOOTSTRAP=debootstrap
++ DEFAULT_LOCALES=en_US.UTF-8
++ DEFAULT_LANGUAGE=en_US:en
++ EXTRAPACKAGES=yes
++ FALLBACK_MIRROR=http://http.debian.net/debian
++ FORCE=T
++ HOSTNAME=host
++ INITRD=yes
++ INSTALL_NOTES=/etc/debootstrap/install_notes
++ KEEP_SRC_LIST=yes
++ LOCALES=yes
++ MIRROR=http://ftp.us.debian.org/debian
++ MKFS=mkfs.ext4
++ PACKAGES=yes
++ PRE_SCRIPTS=yes
++ RECONFIGURE=console-data
++ RELEASE=wheezy
++ RM_APTCACHE=yes
++ ROOTPASSWORD=changeme
++ SCRIPTS=yes
++ SECURE=yes
++ TARGET=/dev/mapper/loop0p1
++ UPGRADE_SYSTEM=yes
++ TARGET_UUID=97354d78-56a2-48b9-9cf1-2d4313522237
++ TIMEZONE=Europe/Vienna
++ TUNE2FS='tune2fs -c0 -i0'
++ VMSIZE=2G
++ REPORT_TRAP_ERR=no
++ FAIL_TRAP_ERR=no
+ '[' -r /proc/1 ']'
+ mount -t proc none /proc
+ '[' -x /usr/bin/aptitude ']'
+ APTUPDATE='aptitude update '
+ '[' -n '' ']'
+ APTINSTALL='aptitude -y --without-recommends install '
+ APTUPGRADE='aptitude -y safe-upgrade '
+ '[' -z '' ']'
+ STAGES=/etc/debootstrap/stages
+ '[' -d /etc/debootstrap/stages ']'
+ mkdir -p /etc/debootstrap/stages
+ trap signal_handler HUP INT QUIT TERM
+ install_policy_rcd
+ '[' -r /usr/sbin/policy-rc.d ']'
+ export POLICYRCD=1
+ POLICYRCD=1
+ cat
+ chmod 775 /usr/sbin/policy-rc.d
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage chrootmirror
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/chrootmirror
+ echo '   Executing stage chrootmirror'
   Executing stage chrootmirror
+ return 0
+ chrootmirror
+ '[' -n yes ']'
+ echo 'KEEP_SRC_LIST has been set, skipping chrootmirror stage.'
KEEP_SRC_LIST has been set, skipping chrootmirror stage.
+ return
+ stage chrootmirror done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage grmlrepos
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/grmlrepos
+ echo '   Executing stage grmlrepos'
   Executing stage grmlrepos
+ return 0
+ grmlrepos
+ '[' -n '' ']'
+ stage grmlrepos done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage backportrepos
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/backportrepos
+ echo '   Executing stage backportrepos'
   Executing stage backportrepos
+ return 0
+ backportrepos
+ '[' -n '' ']'
+ stage backportrepos done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage kernelimg_conf
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/kernelimg_conf
+ echo '   Executing stage kernelimg_conf'
   Executing stage kernelimg_conf
+ return 0
+ kernelimg_conf
+ '[' -r /etc/kernel-img.conf ']'
+ echo 'Setting up /etc/kernel-img.conf'
Setting up /etc/kernel-img.conf
+ cat
+ stage kernelimg_conf done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage kernel
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/kernel
+ echo '   Executing stage kernel'
   Executing stage kernel
+ return 0
+ kernel
+ '[' -n '' ']'
+ aptitude update
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
Get: 3 http://ftp.us.debian.org wheezy/main i386 Packages [5858 kB]
Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 9874 kB in 6s (1560 kB/s)                                                                                                                                                   

++ get_kernel_version
++ '[' -n '' ']'
++ local KARCH
++ case "$ARCH" in
++ case "$RELEASE" in
++ KARCH=686
++ for KPREFIX in '""' '"2.6-"'
++ package_exists linux-image-686
+++ apt-cache show linux-image-686
++ output='Package: linux-image-686
Source: linux-latest (46)
Version: 3.2+46
Installed-Size: 36
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: i386
Depends: linux-image-686-pae, debconf (>= 0.5) | debconf-2.0
Description-en: Linux for modern PCs (dummy package)
 This is a dummy transitional package.  It can be safely removed.
Description-md5: 2fa509fac372c32c093ad624ef0c2ea0
Section: oldlibs
Priority: extra
Filename: pool/main/l/linux-latest/linux-image-686_3.2+46_i386.deb
Size: 7986
MD5sum: b18d0d10411c7a966ceb8f9a36b1a22e
SHA1: 01c7e9a87b080dabb04658751686903bc20ca1d1
SHA256: 94f8494d7a526ed7d35b57b659418ba44b2b165e642e4b524d4fd8ae5c18716f'
++ '[' -n 'Package: linux-image-686
Source: linux-latest (46)
Version: 3.2+46
Installed-Size: 36
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: i386
Depends: linux-image-686-pae, debconf (>= 0.5) | debconf-2.0
Description-en: Linux for modern PCs (dummy package)
 This is a dummy transitional package.  It can be safely removed.
Description-md5: 2fa509fac372c32c093ad624ef0c2ea0
Section: oldlibs
Priority: extra
Filename: pool/main/l/linux-latest/linux-image-686_3.2+46_i386.deb
Size: 7986
MD5sum: b18d0d10411c7a966ceb8f9a36b1a22e
SHA1: 01c7e9a87b080dabb04658751686903bc20ca1d1
SHA256: 94f8494d7a526ed7d35b57b659418ba44b2b165e642e4b524d4fd8ae5c18716f' ']'
++ return 0
++ echo 686
++ return 0
+ KVER=686
+ '[' -n 686 ']'
+ KERNELPACKAGES='linux-image-686 linux-headers-686 busybox firmware-linux-free firmware-linux'
+ DEBIAN_FRONTEND=noninteractive
+ aptitude -y --without-recommends install linux-image-686 linux-headers-686 busybox firmware-linux-free firmware-linux
Couldn't find package "linux-headers-686".  However, the following
packages contain "linux-headers-686" in their name:
  linux-headers-686-pae 
No candidate version found for firmware-linux
Couldn't find package "linux-headers-686".  However, the following
packages contain "linux-headers-686" in their name:
  linux-headers-686-pae 
No candidate version found for firmware-linux
The following NEW packages will be installed:
  busybox firmware-linux-free initramfs-tools{a} klibc-utils{a} libklibc{a} libuuid-perl{a} linux-base{a} linux-image-3.2.0-4-686-pae{a} linux-image-686 linux-image-686-pae 
The following packages are RECOMMENDED but will NOT be installed:
  libc6-i686 
0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.8 MB of archives. After unpacking 81.8 MB will be used.
Get: 1 http://ftp.us.debian.org/debian/ wheezy/main libuuid-perl i386 0.02-5 [9742 B]
Get: 2 http://ftp.us.debian.org/debian/ wheezy/main linux-base all 3.5 [34.3 kB]
Get: 3 http://ftp.us.debian.org/debian/ wheezy/main libklibc i386 2.0.1-3.1 [58.5 kB]
Get: 4 http://ftp.us.debian.org/debian/ wheezy/main klibc-utils i386 2.0.1-3.1 [189 kB]
Get: 5 http://ftp.us.debian.org/debian/ wheezy/main initramfs-tools all 0.109.1 [91.3 kB]
Get: 6 http://ftp.us.debian.org/debian/ wheezy/main linux-image-3.2.0-4-686-pae i386 3.2.63-2 [22.9 MB]
Get: 7 http://ftp.us.debian.org/debian/ wheezy/main busybox i386 1:1.20.0-7 [441 kB]
Get: 8 http://ftp.us.debian.org/debian/ wheezy/main firmware-linux-free all 3.2 [20.7 kB]
Get: 9 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686-pae i386 3.2+46 [5814 B]
Get: 10 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686 i386 3.2+46 [7986 B]
Fetched 23.8 MB in 2s (9771 kB/s)
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libuuid-perl.
(Reading database ... 9312 files and directories currently installed.)
Unpacking libuuid-perl (from .../libuuid-perl_0.02-5_i386.deb) ...
Selecting previously unselected package linux-base.
Unpacking linux-base (from .../linux-base_3.5_all.deb) ...
Selecting previously unselected package libklibc.
Unpacking libklibc (from .../libklibc_2.0.1-3.1_i386.deb) ...
Selecting previously unselected package klibc-utils.
Unpacking klibc-utils (from .../klibc-utils_2.0.1-3.1_i386.deb) ...
Selecting previously unselected package initramfs-tools.
Unpacking initramfs-tools (from .../initramfs-tools_0.109.1_all.deb) ...
Selecting previously unselected package linux-image-3.2.0-4-686-pae.
Unpacking linux-image-3.2.0-4-686-pae (from .../linux-image-3.2.0-4-686-pae_3.2.63-2_i386.deb) ...
Selecting previously unselected package busybox.
Unpacking busybox (from .../busybox_1%3a1.20.0-7_i386.deb) ...
Selecting previously unselected package firmware-linux-free.
Unpacking firmware-linux-free (from .../firmware-linux-free_3.2_all.deb) ...
Selecting previously unselected package linux-image-686-pae.
Unpacking linux-image-686-pae (from .../linux-image-686-pae_3.2+46_i386.deb) ...
Selecting previously unselected package linux-image-686.
Unpacking linux-image-686 (from .../linux-image-686_3.2+46_i386.deb) ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libuuid-perl (0.02-5) ...
Setting up linux-base (3.5) ...
Setting up libklibc (2.0.1-3.1) ...
Setting up klibc-utils (2.0.1-3.1) ...
Setting up initramfs-tools (0.109.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-4-686-pae (3.2.63-2) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-686-pae /boot/vmlinuz-3.2.0-4-686-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae
Setting up busybox (1:1.20.0-7) ...
Setting up firmware-linux-free (3.2) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-686-pae (3.2+46) ...
Setting up linux-image-686 (3.2+46) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae

+ stage kernel done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage packages
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/packages
+ echo '   Executing stage packages'
   Executing stage packages
+ return 0
+ packages
+ '[' -f /etc/debootstrap/debconf-selections ']'
+ '[' yes = yes ']'
+ '[' -r /etc/debootstrap/packages ']'
+ aptitude update
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
Get: 3 http://ftp.us.debian.org wheezy/main i386 Packages [5858 kB]
Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 9874 kB in 5s (1736 kB/s)                          

++ grep -v '^#' /etc/debootstrap/packages
+ DEBIAN_FRONTEND=noninteractive
+ aptitude -y --without-recommends install locales console-data console-common initramfs-tools mdadm lvm2 grub-pc os-prober bzip2 file less lsof most pciutils resolvconf screen ssh strace sysfsutils usbutils vim w3m zsh rsync postfix lsb-release acpi-support-base vlan bridge-utils ifenslave cryptsetup isc-dhcp-client
Note: selecting "ifenslave-2.6" instead of the
      virtual package "ifenslave"
The following NEW packages will be installed:
  acpi-support-base acpid{a} bridge-utils bzip2 console-common console-data cryptsetup cryptsetup-bin{a} dmsetup{a} file gettext-base{a} grub-common{a} grub-pc grub-pc-bin{a} 
  grub2-common{a} ifenslave-2.6 kbd{a} less libasprintf0c2{a} libbsd0{a} libcap2{a} libclass-isa-perl{a} libcryptsetup4{a} libdevmapper-event1.02.1{a} libdevmapper1.02.1{a} 
  libedit2{a} libexpat1{a} libfreetype6{a} libfuse2{a} libgc1c2{a} libgpm2{a} libgssapi-krb5-2{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libmagic1{a} 
  libpci3{a} libperl4-corelibs-perl{a} libreadline5{a} libsasl2-2{a} libswitch-perl{a} libsysfs2{a} libusb-1.0-0{a} libwrap0{a} locales lsb-release lsof lvm2 mdadm 
  mime-support{a} module-init-tools{a} most openssh-client{a} openssh-server{a} openssl{a} os-prober pciutils perl{a} perl-modules{a} postfix python{a} python-minimal{a} 
  python2.7{a} python2.7-minimal{a} resolvconf rsync screen ssh ssl-cert{a} strace sysfsutils ucf{a} usbutils vim vim-runtime{a} vlan w3m zsh 
The following packages are RECOMMENDED but will NOT be installed:
  ca-certificates console-setup consolekit krb5-locales libpcre3 libsasl2-modules ncurses-term openssh-blacklist openssh-blacklist-extra tcpd xauth 
0 packages upgraded, 79 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.9 MB of archives. After unpacking 133 MB will be used.
Get: 1 http://ftp.us.debian.org/debian/ wheezy/main libasprintf0c2 i386 0.18.1.1-9 [26.7 kB]
Get: 2 http://ftp.us.debian.org/debian/ wheezy/main libcap2 i386 1:2.22-1.2 [14.0 kB]
Get: 3 http://ftp.us.debian.org/debian/ wheezy/main libbsd0 i386 0.4.2-1 [60.3 kB]
Get: 4 http://ftp.us.debian.org/debian/ wheezy/main libedit2 i386 2.11-20080614-5 [71.5 kB]
Get: 5 http://ftp.us.debian.org/debian/ wheezy/main libgpm2 i386 1.20.4-6 [35.9 kB]
Get: 6 http://ftp.us.debian.org/debian/ wheezy/main libkeyutils1 i386 1.5.5-3+deb7u1 [8678 B]
Get: 7 http://ftp.us.debian.org/debian/ wheezy/main libkrb5support0 i386 1.10.1+dfsg-5+deb7u2 [49.6 kB]
Get: 8 http://ftp.us.debian.org/debian/ wheezy/main libk5crypto3 i386 1.10.1+dfsg-5+deb7u2 [109 kB]
Get: 9 http://ftp.us.debian.org/debian/ wheezy/main libkrb5-3 i386 1.10.1+dfsg-5+deb7u2 [402 kB]
Get: 10 http://ftp.us.debian.org/debian/ wheezy/main libgssapi-krb5-2 i386 1.10.1+dfsg-5+deb7u2 [149 kB]
Get: 11 http://ftp.us.debian.org/debian/ wheezy/main libmagic1 i386 5.11-2+deb7u5 [205 kB]
Get: 12 http://ftp.us.debian.org/debian/ wheezy/main libpci3 i386 1:3.1.9-6 [58.3 kB]
Get: 13 http://ftp.us.debian.org/debian/ wheezy/main libsasl2-2 i386 2.1.25.dfsg1-6+deb7u1 [120 kB]
Get: 14 http://ftp.us.debian.org/debian/ wheezy/main libwrap0 i386 7.6.q-24 [62.2 kB]
Get: 15 http://ftp.us.debian.org/debian/ wheezy/main console-data all 2:1.12-2 [1192 kB]
Get: 16 http://ftp.us.debian.org/debian/ wheezy/main kbd i386 1.15.3-9 [451 kB]
Get: 17 http://ftp.us.debian.org/debian/ wheezy/main console-common all 0.7.87 [128 kB]
Get: 18 http://ftp.us.debian.org/debian/ wheezy/main dmsetup i386 2:1.02.74-8 [68.2 kB]
Get: 19 http://ftp.us.debian.org/debian/ wheezy/main libdevmapper1.02.1 i386 2:1.02.74-8 [125 kB]
Get: 20 http://ftp.us.debian.org/debian/ wheezy/main libdevmapper-event1.02.1 i386 2:1.02.74-8 [32.4 kB]
Get: 21 http://ftp.us.debian.org/debian/ wheezy/main libexpat1 i386 2.1.0-1+deb7u1 [139 kB]
Get: 22 http://ftp.us.debian.org/debian/ wheezy/main libfreetype6 i386 2.4.9-1.1 [454 kB]
Get: 23 http://ftp.us.debian.org/debian/ wheezy/main libfuse2 i386 2.9.0-2+deb7u1 [148 kB]
Get: 24 http://ftp.us.debian.org/debian/ wheezy/main libreadline5 i386 5.2+dfsg-2~deb7u1 [146 kB]
Get: 25 http://ftp.us.debian.org/debian/ wheezy/main libsysfs2 i386 2.1.0+repack-2 [31.6 kB]
Get: 26 http://ftp.us.debian.org/debian/ wheezy/main libusb-1.0-0 i386 2:1.0.11-1 [40.6 kB]
Get: 27 http://ftp.us.debian.org/debian/ wheezy/main module-init-tools all 9-3 [1796 B]
Get: 28 http://ftp.us.debian.org/debian/ wheezy/main bzip2 i386 1.0.6-4 [49.5 kB]
Get: 29 http://ftp.us.debian.org/debian/ wheezy/main file i386 5.11-2+deb7u5 [52.3 kB]
Get: 30 http://ftp.us.debian.org/debian/ wheezy/main gettext-base i386 0.18.1.1-9 [131 kB]
Get: 31 http://ftp.us.debian.org/debian/ wheezy/main less i386 444-4 [134 kB]
Get: 32 http://ftp.us.debian.org/debian/ wheezy/main libclass-isa-perl all 0.36-3 [12.3 kB]
Get: 33 http://ftp.us.debian.org/debian/ wheezy/main libgc1c2 i386 1:7.1-9.1 [137 kB]
Get: 34 http://ftp.us.debian.org/debian/ wheezy/main perl-modules all 5.14.2-21+deb7u2 [3442 kB]
Err http://ftp.us.debian.org/debian/ wheezy/main perl i386 5.14.2-21+deb7u2                                                                                                         
  500  Connection timeout
Get: 35 http://ftp.us.debian.org/debian/ wheezy/main libswitch-perl all 2.16-2 [21.0 kB]
Get: 36 http://ftp.us.debian.org/debian/ wheezy/main locales all 2.13-38+deb7u6 [5652 kB]
Get: 37 http://ftp.us.debian.org/debian/ wheezy/main libperl4-corelibs-perl all 0.003-1 [43.6 kB]
Get: 38 http://ftp.us.debian.org/debian/ wheezy/main lsof i386 4.86+dfsg-1 [312 kB]
Get: 39 http://ftp.us.debian.org/debian/ wheezy/main mime-support all 3.52-1 [35.5 kB]
Get: 40 http://ftp.us.debian.org/debian/ wheezy/main openssh-client i386 1:6.0p1-4+deb7u2 [1045 kB]
Get: 41 http://ftp.us.debian.org/debian/ wheezy/main pciutils i386 1:3.1.9-6 [281 kB]
Get: 42 http://ftp.us.debian.org/debian/ wheezy/main python2.7-minimal i386 2.7.3-6+deb7u2 [1715 kB]
Get: 43 http://ftp.us.debian.org/debian/ wheezy/main python2.7 i386 2.7.3-6+deb7u2 [2687 kB]
Get: 44 http://ftp.us.debian.org/debian/ wheezy/main python-minimal all 2.7.3-4+deb7u1 [42.8 kB]
Get: 45 http://ftp.us.debian.org/debian/ wheezy/main python all 2.7.3-4+deb7u1 [181 kB]
Get: 46 http://ftp.us.debian.org/debian/ wheezy/main ucf all 3.0025+nmu3 [70.8 kB]
Get: 47 http://ftp.us.debian.org/debian/ wheezy/main w3m i386 0.5.3-8 [1246 kB]
Get: 48 http://ftp.us.debian.org/debian/ wheezy/main acpid i386 1:2.0.16-1+deb7u1 [56.6 kB]
Get: 49 http://ftp.us.debian.org/debian/ wheezy/main acpi-support-base all 0.140-5+deb7u3 [22.8 kB]
Get: 50 http://ftp.us.debian.org/debian/ wheezy/main bridge-utils i386 1.5-6 [35.5 kB]
Get: 51 http://ftp.us.debian.org/debian/ wheezy/main libcryptsetup4 i386 2:1.4.3-4 [96.7 kB]
Get: 52 http://ftp.us.debian.org/debian/ wheezy/main cryptsetup-bin i386 2:1.4.3-4 [155 kB]
Get: 53 http://ftp.us.debian.org/debian/ wheezy/main cryptsetup i386 2:1.4.3-4 [128 kB]
Get: 54 http://ftp.us.debian.org/debian/ wheezy/main grub-common i386 1.99-27+deb7u2 [1534 kB]
Get: 55 http://ftp.us.debian.org/debian/ wheezy/main grub2-common i386 1.99-27+deb7u2 [94.3 kB]
Get: 56 http://ftp.us.debian.org/debian/ wheezy/main grub-pc-bin i386 1.99-27+deb7u2 [636 kB]
Get: 57 http://ftp.us.debian.org/debian/ wheezy/main grub-pc i386 1.99-27+deb7u2 [170 kB]
Get: 58 http://ftp.us.debian.org/debian/ wheezy/main ifenslave-2.6 i386 1.1.0-20 [20.7 kB]
Get: 59 http://ftp.us.debian.org/debian/ wheezy/main lsb-release all 4.1+Debian8+deb7u1 [27.2 kB]
Get: 60 http://ftp.us.debian.org/debian/ wheezy/main lvm2 i386 2.02.95-8 [596 kB]
Get: 61 http://ftp.us.debian.org/debian/ wheezy/main mdadm i386 3.2.5-5 [566 kB]
Get: 62 http://ftp.us.debian.org/debian/ wheezy/main most i386 5.0.0a-2.1 [51.3 kB]
Get: 63 http://ftp.us.debian.org/debian/ wheezy/main openssh-server i386 1:6.0p1-4+deb7u2 [343 kB]
Get: 64 http://ftp.us.debian.org/debian/ wheezy/main openssl i386 1.0.1e-2+deb7u12 [694 kB]
Get: 65 http://ftp.us.debian.org/debian/ wheezy/main resolvconf all 1.67 [69.0 kB]
Get: 66 http://ftp.us.debian.org/debian/ wheezy/main rsync i386 3.0.9-4 [357 kB]
Get: 67 http://ftp.us.debian.org/debian/ wheezy/main screen i386 4.1.0~20120320gitdb59704-7 [654 kB]
Get: 68 http://ftp.us.debian.org/debian/ wheezy/main ssl-cert all 1.0.32 [19.5 kB]
Get: 69 http://ftp.us.debian.org/debian/ wheezy/main strace i386 4.5.20-2.3 [122 kB]
Get: 70 http://ftp.us.debian.org/debian/ wheezy/main usbutils i386 1:005-3 [228 kB]
Get: 71 http://ftp.us.debian.org/debian/ wheezy/main vim-runtime all 2:7.3.547-7 [4607 kB]
Get: 72 http://ftp.us.debian.org/debian/ wheezy/main vim i386 2:7.3.547-7 [778 kB]
Get: 73 http://ftp.us.debian.org/debian/ wheezy/main zsh i386 4.3.17-1 [4868 kB]
Get: 74 http://ftp.us.debian.org/debian/ wheezy/main os-prober i386 1.58 [30.3 kB]
Get: 75 http://ftp.us.debian.org/debian/ wheezy/main postfix i386 2.9.6-2 [1546 kB]
Get: 76 http://ftp.us.debian.org/debian/ wheezy/main ssh all 1:6.0p1-4+deb7u2 [1248 B]
Get: 77 http://ftp.us.debian.org/debian/ wheezy/main sysfsutils i386 2.1.0+repack-2 [25.2 kB]
Get: 78 http://ftp.us.debian.org/debian/ wheezy/main vlan i386 1.9-3 [39.6 kB]
Fetched 40.2 MB in 1min 4s (622 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libasprintf0c2:i386.
(Reading database ... 13192 files and directories currently installed.)
Unpacking libasprintf0c2:i386 (from .../libasprintf0c2_0.18.1.1-9_i386.deb) ...
Selecting previously unselected package libcap2:i386.
Unpacking libcap2:i386 (from .../libcap2_1%3a2.22-1.2_i386.deb) ...
Selecting previously unselected package libbsd0:i386.
Unpacking libbsd0:i386 (from .../libbsd0_0.4.2-1_i386.deb) ...
Selecting previously unselected package libedit2:i386.
Unpacking libedit2:i386 (from .../libedit2_2.11-20080614-5_i386.deb) ...
Selecting previously unselected package libgpm2:i386.
Unpacking libgpm2:i386 (from .../libgpm2_1.20.4-6_i386.deb) ...
Selecting previously unselected package libkeyutils1:i386.
Unpacking libkeyutils1:i386 (from .../libkeyutils1_1.5.5-3+deb7u1_i386.deb) ...
Selecting previously unselected package libkrb5support0:i386.
Unpacking libkrb5support0:i386 (from .../libkrb5support0_1.10.1+dfsg-5+deb7u2_i386.deb) ...
Selecting previously unselected package libk5crypto3:i386.
Unpacking libk5crypto3:i386 (from .../libk5crypto3_1.10.1+dfsg-5+deb7u2_i386.deb) ...
Selecting previously unselected package libkrb5-3:i386.
Unpacking libkrb5-3:i386 (from .../libkrb5-3_1.10.1+dfsg-5+deb7u2_i386.deb) ...
Selecting previously unselected package libgssapi-krb5-2:i386.
Unpacking libgssapi-krb5-2:i386 (from .../libgssapi-krb5-2_1.10.1+dfsg-5+deb7u2_i386.deb) ...
Selecting previously unselected package libmagic1:i386.
Unpacking libmagic1:i386 (from .../libmagic1_5.11-2+deb7u5_i386.deb) ...
Selecting previously unselected package libpci3:i386.
Unpacking libpci3:i386 (from .../libpci3_1%3a3.1.9-6_i386.deb) ...
Selecting previously unselected package libsasl2-2:i386.
Unpacking libsasl2-2:i386 (from .../libsasl2-2_2.1.25.dfsg1-6+deb7u1_i386.deb) ...
Selecting previously unselected package libwrap0:i386.
Unpacking libwrap0:i386 (from .../libwrap0_7.6.q-24_i386.deb) ...
Selecting previously unselected package console-data.
Unpacking console-data (from .../console-data_2%3a1.12-2_all.deb) ...
Selecting previously unselected package kbd.
Unpacking kbd (from .../archives/kbd_1.15.3-9_i386.deb) ...
update-rc.d: using dependency based boot sequencing
Selecting previously unselected package console-common.
Unpacking console-common (from .../console-common_0.7.87_all.deb) ...
Selecting previously unselected package dmsetup.
Unpacking dmsetup (from .../dmsetup_2%3a1.02.74-8_i386.deb) ...
Selecting previously unselected package libdevmapper1.02.1:i386.
Unpacking libdevmapper1.02.1:i386 (from .../libdevmapper1.02.1_2%3a1.02.74-8_i386.deb) ...
Selecting previously unselected package libdevmapper-event1.02.1:i386.
Unpacking libdevmapper-event1.02.1:i386 (from .../libdevmapper-event1.02.1_2%3a1.02.74-8_i386.deb) ...
Selecting previously unselected package libexpat1:i386.
Unpacking libexpat1:i386 (from .../libexpat1_2.1.0-1+deb7u1_i386.deb) ...
Selecting previously unselected package libfreetype6:i386.
Unpacking libfreetype6:i386 (from .../libfreetype6_2.4.9-1.1_i386.deb) ...
Selecting previously unselected package libfuse2:i386.
Unpacking libfuse2:i386 (from .../libfuse2_2.9.0-2+deb7u1_i386.deb) ...
Selecting previously unselected package libreadline5:i386.
Unpacking libreadline5:i386 (from .../libreadline5_5.2+dfsg-2~deb7u1_i386.deb) ...
Selecting previously unselected package libsysfs2:i386.
Unpacking libsysfs2:i386 (from .../libsysfs2_2.1.0+repack-2_i386.deb) ...
Selecting previously unselected package libusb-1.0-0:i386.
Unpacking libusb-1.0-0:i386 (from .../libusb-1.0-0_2%3a1.0.11-1_i386.deb) ...
Selecting previously unselected package module-init-tools.
Unpacking module-init-tools (from .../module-init-tools_9-3_all.deb) ...
Selecting previously unselected package bzip2.
Unpacking bzip2 (from .../bzip2_1.0.6-4_i386.deb) ...
Selecting previously unselected package file.
Unpacking file (from .../file_5.11-2+deb7u5_i386.deb) ...
Selecting previously unselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.18.1.1-9_i386.deb) ...
Selecting previously unselected package less.
Unpacking less (from .../archives/less_444-4_i386.deb) ...
Selecting previously unselected package libclass-isa-perl.
Unpacking libclass-isa-perl (from .../libclass-isa-perl_0.36-3_all.deb) ...
Selecting previously unselected package libgc1c2.
Unpacking libgc1c2 (from .../libgc1c2_1%3a7.1-9.1_i386.deb) ...
Selecting previously unselected package locales.
Unpacking locales (from .../locales_2.13-38+deb7u6_all.deb) ...
Selecting previously unselected package mime-support.
Unpacking mime-support (from .../mime-support_3.52-1_all.deb) ...
Selecting previously unselected package openssh-client.
Unpacking openssh-client (from .../openssh-client_1%3a6.0p1-4+deb7u2_i386.deb) ...
Selecting previously unselected package pciutils.
Unpacking pciutils (from .../pciutils_1%3a3.1.9-6_i386.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3-6+deb7u2_i386.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.3-6+deb7u2_i386.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.3-4+deb7u1_all.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.3-4+deb7u1_all.deb) ...
Selecting previously unselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu3_all.deb) ...
Moving old data out of the way
Selecting previously unselected package w3m.
Unpacking w3m (from .../archives/w3m_0.5.3-8_i386.deb) ...
Selecting previously unselected package acpid.
Unpacking acpid (from .../acpid_1%3a2.0.16-1+deb7u1_i386.deb) ...
Selecting previously unselected package acpi-support-base.
Unpacking acpi-support-base (from .../acpi-support-base_0.140-5+deb7u3_all.deb) ...
Selecting previously unselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.5-6_i386.deb) ...
Selecting previously unselected package libcryptsetup4.
Unpacking libcryptsetup4 (from .../libcryptsetup4_2%3a1.4.3-4_i386.deb) ...
Selecting previously unselected package cryptsetup-bin.
Unpacking cryptsetup-bin (from .../cryptsetup-bin_2%3a1.4.3-4_i386.deb) ...
Selecting previously unselected package cryptsetup.
Unpacking cryptsetup (from .../cryptsetup_2%3a1.4.3-4_i386.deb) ...
Selecting previously unselected package grub-common.
Unpacking grub-common (from .../grub-common_1.99-27+deb7u2_i386.deb) ...
Selecting previously unselected package grub2-common.
Unpacking grub2-common (from .../grub2-common_1.99-27+deb7u2_i386.deb) ...
Selecting previously unselected package grub-pc-bin.
Unpacking grub-pc-bin (from .../grub-pc-bin_1.99-27+deb7u2_i386.deb) ...
Selecting previously unselected package grub-pc.
Unpacking grub-pc (from .../grub-pc_1.99-27+deb7u2_i386.deb) ...
Selecting previously unselected package ifenslave-2.6.
Unpacking ifenslave-2.6 (from .../ifenslave-2.6_1.1.0-20_i386.deb) ...
Selecting previously unselected package lsb-release.
Unpacking lsb-release (from .../lsb-release_4.1+Debian8+deb7u1_all.deb) ...
Selecting previously unselected package lvm2.
Unpacking lvm2 (from .../lvm2_2.02.95-8_i386.deb) ...
Selecting previously unselected package mdadm.
Unpacking mdadm (from .../mdadm_3.2.5-5_i386.deb) ...
Selecting previously unselected package most.
Unpacking most (from .../most_5.0.0a-2.1_i386.deb) ...
Selecting previously unselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a6.0p1-4+deb7u2_i386.deb) ...
Selecting previously unselected package openssl.
Unpacking openssl (from .../openssl_1.0.1e-2+deb7u12_i386.deb) ...
Selecting previously unselected package resolvconf.
Unpacking resolvconf (from .../resolvconf_1.67_all.deb) ...
Selecting previously unselected package rsync.
Unpacking rsync (from .../rsync_3.0.9-4_i386.deb) ...
Selecting previously unselected package screen.
Unpacking screen (from .../screen_4.1.0~20120320gitdb59704-7_i386.deb) ...
Selecting previously unselected package ssl-cert.
Unpacking ssl-cert (from .../ssl-cert_1.0.32_all.deb) ...
Selecting previously unselected package strace.
Unpacking strace (from .../strace_4.5.20-2.3_i386.deb) ...
Selecting previously unselected package usbutils.
Unpacking usbutils (from .../usbutils_1%3a005-3_i386.deb) ...
Selecting previously unselected package vim-runtime.
Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.547-7_all.deb) ...
Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
Selecting previously unselected package vim.
Unpacking vim (from .../vim_2%3a7.3.547-7_i386.deb) ...
Selecting previously unselected package zsh.
Unpacking zsh (from .../archives/zsh_4.3.17-1_i386.deb) ...
Selecting previously unselected package os-prober.
Unpacking os-prober (from .../os-prober_1.58_i386.deb) ...
Selecting previously unselected package postfix.
Unpacking postfix (from .../postfix_2.9.6-2_i386.deb) ...
Selecting previously unselected package ssh.
Unpacking ssh (from .../ssh_1%3a6.0p1-4+deb7u2_all.deb) ...
Selecting previously unselected package sysfsutils.
Unpacking sysfsutils (from .../sysfsutils_2.1.0+repack-2_i386.deb) ...
Selecting previously unselected package vlan.
Unpacking vlan (from .../archives/vlan_1.9-3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libasprintf0c2:i386 (0.18.1.1-9) ...
Setting up libcap2:i386 (1:2.22-1.2) ...
Setting up libbsd0:i386 (0.4.2-1) ...
Setting up libedit2:i386 (2.11-20080614-5) ...
Setting up libgpm2:i386 (1.20.4-6) ...
Setting up libkeyutils1:i386 (1.5.5-3+deb7u1) ...
Setting up libkrb5support0:i386 (1.10.1+dfsg-5+deb7u2) ...
Setting up libk5crypto3:i386 (1.10.1+dfsg-5+deb7u2) ...
Setting up libkrb5-3:i386 (1.10.1+dfsg-5+deb7u2) ...
Setting up libgssapi-krb5-2:i386 (1.10.1+dfsg-5+deb7u2) ...
Setting up libmagic1:i386 (5.11-2+deb7u5) ...
Setting up libpci3:i386 (1:3.1.9-6) ...
Setting up libsasl2-2:i386 (2.1.25.dfsg1-6+deb7u1) ...
Setting up libwrap0:i386 (7.6.q-24) ...
Setting up console-data (2:1.12-2) ...
Looking for keymap to install:
NONE
Setting up kbd (1.15.3-9) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up console-common (0.7.87) ...
Looking for keymap to install:
NONE
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libexpat1:i386 (2.1.0-1+deb7u1) ...
Setting up libfreetype6:i386 (2.4.9-1.1) ...
Setting up libfuse2:i386 (2.9.0-2+deb7u1) ...
Setting up libreadline5:i386 (5.2+dfsg-2~deb7u1) ...
Setting up libsysfs2:i386 (2.1.0+repack-2) ...
Setting up libusb-1.0-0:i386 (2:1.0.11-1) ...
Setting up module-init-tools (9-3) ...
Setting up bzip2 (1.0.6-4) ...
Setting up file (5.11-2+deb7u5) ...
Setting up gettext-base (0.18.1.1-9) ...
Setting up less (444-4) ...
Setting up libclass-isa-perl (0.36-3) ...
Setting up libgc1c2 (1:7.1-9.1) ...
Setting up locales (2.13-38+deb7u6) ...
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Setting up mime-support (3.52-1) ...
Setting up openssh-client (1:6.0p1-4+deb7u2) ...
Setting up pciutils (1:3.1.9-6) ...
Setting up python2.7-minimal (2.7.3-6+deb7u2) ...
Setting up python2.7 (2.7.3-6+deb7u2) ...
Setting up python-minimal (2.7.3-4+deb7u1) ...
Setting up python (2.7.3-4+deb7u1) ...
Setting up ucf (3.0025+nmu3) ...
Setting up w3m (0.5.3-8) ...
Setting up acpid (1:2.0.16-1+deb7u1) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up acpi-support-base (0.140-5+deb7u3) ...
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up bridge-utils (1.5-6) ...
Setting up ifenslave-2.6 (1.1.0-20) ...
update-alternatives: using /sbin/ifenslave-2.6 to provide /sbin/ifenslave (ifenslave) in auto mode
Setting up lsb-release (4.1+Debian8+deb7u1) ...
Setting up mdadm (3.2.5-5) ...
Generating array device nodes... done.
Generating mdadm.conf... done.
update-initramfs: deferring update (trigger activated)
invoke-rc.d: policy-rc.d denied execution of start.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up most (5.0.0a-2.1) ...
Setting up openssh-server (1:6.0p1-4+deb7u2) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up openssl (1.0.1e-2+deb7u12) ...
Setting up resolvconf (1.67) ...
Setting up rsync (3.0.9-4) ...
update-rc.d: using dependency based boot sequencing
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up screen (4.1.0~20120320gitdb59704-7) ...
Setting up ssl-cert (1.0.32) ...
hostname: Name or service not known
make-ssl-cert: Could not get FQDN, using "debian".
make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite
make-ssl-cert: again.
Setting up strace (4.5.20-2.3) ...
Setting up usbutils (1:005-3) ...
Setting up vim-runtime (2:7.3.547-7) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.3.547-7) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
Setting up zsh (4.3.17-1) ...
update-alternatives: using /bin/zsh4 to provide /bin/zsh (zsh) in auto mode
update-alternatives: using /bin/zsh4 to provide /bin/rzsh (rzsh) in auto mode
update-alternatives: using /bin/zsh4 to provide /bin/ksh (ksh) in auto mode
Setting up os-prober (1.58) ...
Setting up postfix (2.9.6-2) ...
Adding group `postfix' (GID 105) ...
Done.
Adding system user `postfix' (UID 102) ...
Adding new user `postfix' (UID 102) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 106) ...
Done.
setting myhostname: debian.Speedport_W_500
setting alias maps
setting alias database
mailname is not a fully qualified domain name.  Not changing /etc/mailname.
setting destinations: localdomain, localhost, localhost.localdomain, localhost
setting relayhost: 
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix is now set up with a default configuration.  If you need to make 
changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up ssh (1:6.0p1-4+deb7u2) ...
Setting up sysfsutils (2.1.0+repack-2) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up vlan (1.9-3) ...
Setting up libdevmapper1.02.1:i386 (2:1.02.74-8) ...
Setting up libdevmapper-event1.02.1:i386 (2:1.02.74-8) ...
Setting up libcryptsetup4 (2:1.4.3-4) ...
Setting up cryptsetup-bin (2:1.4.3-4) ...
Setting up grub-common (1.99-27+deb7u2) ...
Setting up grub2-common (1.99-27+deb7u2) ...
Setting up grub-pc-bin (1.99-27+deb7u2) ...
Setting up grub-pc (1.99-27+deb7u2) ...

Creating config file /etc/default/grub with new version
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
Setting up dmsetup (2:1.02.74-8) ...
update-initramfs: deferring update (trigger activated)
Setting up cryptsetup (2:1.4.3-4) ...
update-initramfs: deferring update (trigger activated)
Setting up lvm2 (2.02.95-8) ...
invoke-rc.d: policy-rc.d denied execution of start.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae
cryptsetup: WARNING: could not determine root device from /etc/fstab
setupcon is missing. Please install the 'console-setup' package.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
Processing triggers for resolvconf ...
E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/perl/perl_5.14.2-21+deb7u2_i386.deb: 500  Connection timeout

+ stage packages done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage extrapackages
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/extrapackages
+ echo '   Executing stage extrapackages'
   Executing stage extrapackages
+ return 0
+ extrapackages
+ '[' yes = yes ']'
++ find /etc/debootstrap/extrapackages -type f -name '*.deb'
+ PACKAGELIST=
+ '[' -n '' ']'
+ stage extrapackages done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage reconfigure
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/reconfigure
+ echo '   Executing stage reconfigure'
   Executing stage reconfigure
+ return 0
+ reconfigure
+ '[' -n console-data ']'
+ for package in '$RECONFIGURE'
+ grep -q '^ii'
+ dpkg --list console-data
+ stage reconfigure done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage hosts
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/hosts
+ echo '   Executing stage hosts'
   Executing stage hosts
+ return 0
+ hosts
+ '[' -f /etc/hosts ']'
+ sed -i 's#127.0.0.1 .*#127.0.0.1       localhost  host#' /etc/hosts
+ '[' -n host ']'
+ sed -i s/grml/host/g /etc/hosts
+ stage hosts done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage default_locales
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/default_locales
+ echo '   Executing stage default_locales'
   Executing stage default_locales
+ return 0
+ default_locales
+ '[' -n en_US.UTF-8 ']'
+ '[' -x /usr/sbin/update-locale ']'
+ /usr/sbin/update-locale LANGUAGE=en_US:en LANG=en_US.UTF-8
+ stage default_locales done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage timezone
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/timezone
+ echo '   Executing stage timezone'
   Executing stage timezone
+ return 0
+ timezone
+ '[' -n Europe/Vienna ']'
+ echo 'Adjusting /etc/localtime'
Adjusting /etc/localtime
+ ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime
+ stage timezone done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage fstab
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/fstab
+ echo '   Executing stage fstab'
   Executing stage fstab
+ return 0
+ fstab
+ '[' '!' -f /etc/fstab ']'
+ grep -q UNCONFIGURED /etc/fstab
+ createfstab
+ echo 'Setting up /etc/fstab'
Setting up /etc/fstab
+ '[' -n 97354d78-56a2-48b9-9cf1-2d4313522237 ']'
+ echo '/dev/disk/by-uuid/97354d78-56a2-48b9-9cf1-2d4313522237 /  auto    defaults,errors=remount-ro 0   1'
+ cat
+ stage fstab done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage hostname
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/hostname
+ echo '   Executing stage hostname'
   Executing stage hostname
+ return 0
+ hostname
+ '[' -n host ']'
+ echo 'Setting hostname to host.'
Setting hostname to host.
+ echo host
+ '[' -r /etc/postfix/main.cf ']'
+ sed -i s/grml/host/g /etc/postfix/main.cf
+ sed -i 's/^inet_interfaces = .*/inet_interfaces = loopback-only/' /etc/postfix/main.cf
+ grep -q inet_interfaces /etc/postfix/main.cf
+ '[' -r /etc/mailname ']'
+ stage hostname done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage initrd
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/initrd
+ echo '   Executing stage initrd'
   Executing stage initrd
+ return 0
+ initrd
++ head -1
++ ls -1 /boot/vmlinuz-3.2.0-4-686-pae
+ KERNELIMG=/boot/vmlinuz-3.2.0-4-686-pae
+ '[' -z /boot/vmlinuz-3.2.0-4-686-pae ']'
+ KERNELVER=3.2.0-4-686-pae
+ '[' -n yes ']'
+ echo 'Generating initrd.'
Generating initrd.
+ update-initramfs -c -t -k 3.2.0-4-686-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae
setupcon is missing. Please install the 'console-setup' package.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
+ stage initrd done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage grub_install
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/grub_install
+ echo '   Executing stage grub_install'
   Executing stage grub_install
+ return 0
+ grub_install
+ '[' -z '' ']'
+ echo 'Notice: $GRUB not defined, will not install grub inside chroot at this stage.'
Notice: $GRUB not defined, will not install grub inside chroot at this stage.
+ return 0
+ stage grub_install done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage passwords
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/passwords
+ echo '   Executing stage passwords'
   Executing stage passwords
+ return 0
+ passwords
+ '[' -n '' ']'
+ echo 'Activating shadow passwords.'
Activating shadow passwords.
+ shadowconfig on
Shadow passwords are now on.
+ CHPASSWD_OPTION=
+ grep -q -- -m,
+ chpasswd --help
+ CHPASSWD_OPTION=-m
+ '[' -n changeme ']'
+ chpasswd -m
+ echo root:changeme
+ export ROOTPASSWORD=
+ ROOTPASSWORD=
+ stage passwords done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage custom_scripts
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/custom_scripts
+ echo '   Executing stage custom_scripts'
   Executing stage custom_scripts
+ return 0
+ custom_scripts
+ '[' -d /etc/debootstrap/chroot-scripts/ ']'
+ return 0
+ stage custom_scripts done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage upgrade_system
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/upgrade_system
+ echo '   Executing stage upgrade_system'
   Executing stage upgrade_system
+ return 0
+ upgrade_system
+ '[' yes = yes ']'
+ echo 'Running update + upgrade'
Running update + upgrade
+ aptitude update
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
Get: 3 http://ftp.us.debian.org wheezy/main i386 Packages [5858 kB]
Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 9874 kB in 4s (2346 kB/s)                       

+ DEBIAN_FRONTEND=noninteractive
+ aptitude -y safe-upgrade
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

+ stage upgrade_system done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage remove_apt_cache
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/remove_apt_cache
+ echo '   Executing stage remove_apt_cache'
   Executing stage remove_apt_cache
+ return 0
+ remove_apt_cache
+ '[' yes = yes ']'
+ echo 'Cleaning apt cache.'
Cleaning apt cache.
+ apt-get clean
+ stage remove_apt_cache done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage services
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/services
+ echo '   Executing stage services'
   Executing stage services
+ return 0
+ services
+ for service in ssh mdadm mdadm-raid
+ '[' -x /etc/init.d/ssh ']'
+ /etc/init.d/ssh stop
[ ok ] Stopping OpenBSD Secure Shell server: sshd.
+ for service in ssh mdadm mdadm-raid
+ '[' -x /etc/init.d/mdadm ']'
+ /etc/init.d/mdadm stop
+ for service in ssh mdadm mdadm-raid
+ '[' -x /etc/init.d/mdadm-raid ']'
+ /etc/init.d/mdadm-raid stop
+ stage services done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage remove_chrootmirror
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/remove_chrootmirror
+ echo '   Executing stage remove_chrootmirror'
   Executing stage remove_chrootmirror
+ return 0
+ remove_chrootmirror
+ '[' -n yes ']'
+ echo 'KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage.'
KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage.
+ return
+ stage remove_chrootmirror done
+ '[' -n done ']'
+ echo done
+ return 0
+ finalize
+ rm -f /etc/debootstrap/variables
+ '[' -n 1 ']'
+ rm -f /usr/sbin/policy-rc.d
+ umount /proc
+ echo 'Finished chroot installation, exiting.'
Finished chroot installation, exiting.
+ exit 0
+ RC=0
+ umount /mnt/debootstrap.20659/dev
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ grep -q GRML_CHROOT_SCRIPT_MARKER /mnt/debootstrap.20659/bin/chroot-script
+ einfo 'Removing chroot-script again'
+ trap error_handler ERR
+ einfon 'Removing chroot-script again\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing chroot-script again\n'
 * Removing chroot-script again
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rm -f /mnt/debootstrap.20659/bin/chroot-script
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage chrootscript done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/chrootscript
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage execute_scripts
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/execute_scripts
+ execute_scripts
+ trap error_handler ERR
+ export MNTPOINT
+ '[' -d '' ']'
+ '[' yes = yes ']'
+ '[' -d '' ']'
+ scripts=/etc/debootstrap/scripts/
+ for script in '${scripts}/*'
+ '[' -x '/etc/debootstrap/scripts//*' ']'
+ stage execute_scripts done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/execute_scripts
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage umount_chroot
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/umount_chroot
+ umount_chroot
+ trap error_handler ERR
+ '[' -n /etc/debootstrap/install_notes ']'
+ '[' -r /mnt/debootstrap.20659//etc/debootstrap/install_notes ']'
+ '[' -n '' ']'
+ grep -q /mnt/debootstrap.20659 /proc/mounts
+ '[' -n 1 ']'
+ einfo 'Unmount /mnt/debootstrap.20659'
+ trap error_handler ERR
+ einfon 'Unmount /mnt/debootstrap.20659\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Unmount /mnt/debootstrap.20659\n'
 * Unmount /mnt/debootstrap.20659
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ umount /mnt/debootstrap.20659
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage umount_chroot done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/umount_chroot
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage finalize_vm
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/finalize_vm
+ finalize_vm
+ trap error_handler ERR
+ '[' -z 1 ']'
+ mount /dev/mapper/loop0p1 /mnt/debootstrap.20659
+ einfo 'Installing Grub as bootloader.'
+ trap error_handler ERR
+ einfon 'Installing Grub as bootloader.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Installing Grub as bootloader.\n'
 * Installing Grub as bootloader.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ mount -t proc none /mnt/debootstrap.20659/proc
+ mount -t sysfs none /mnt/debootstrap.20659/sys
+ mount --bind /dev /mnt/debootstrap.20659/dev
+ mkdir -p /mnt/debootstrap.20659/boot/grub
+ '[' -d /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ ']'
+ cp /mnt/debootstrap.20659/usr/lib/grub/i386-pc/915resolution.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/acpi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/adler32.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/affs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/afs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/afs_be.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/aout.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/at_keyboard.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ata.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ata_pthru.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/befs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/befs_be.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/biosdisk.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/bitmap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/bitmap_scale.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/blocklist.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/boot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/boot.mod /mnt/debootstrap.
20659/usr/lib/grub/i386-pc/bsd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/btrfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/bufio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cat.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cdboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/chain.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cmostest.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cmp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/command.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/config.h /mnt/debootstrap.20659/usr/lib/grub/i386-pc/configfile.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cpio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cpuid.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/crypto.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/crypto.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cs5536.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/date.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/datehook.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/datetime.mod /
mnt/debootstrap.20659/usr/lib/grub/i386-pc/diskboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/dm_nv.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/drivemap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/echo.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/efiemu.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/efiemu32.o /mnt/debootstrap.20659/usr/lib/grub/i386-pc/efiemu64.o /mnt/debootstrap.20659/usr/lib/grub/i386-pc/elf.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/example_functional_test.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ext2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/extcmd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/fat.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/font.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/fs.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/fshelp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/functional_test.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/g2hdr.bin /mnt/debootstrap.20659/usr/lib/grub/i386-pc/g2hdr.img /mnt/debootstrap.20659/
usr/lib/grub/i386-pc/g2ldr.mbr /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_arcfour.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_blowfish.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_camellia.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_cast5.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_crc.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_des.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_md4.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_md5.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_rfc2268.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_rijndael.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_rmd160.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_seed.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_serpent.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_sha1.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_sha256.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_sha512.mod /mnt/debootstrap.20659/usr/lib/grub/i386-
pc/gcry_tiger.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_twofish.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_whirlpool.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gettext.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gfxmenu.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gfxterm.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gptsync.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grldr.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-install /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-mknetdir /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-ntldr-img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-setup /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gzio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/halt.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hashsum.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hdparm.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hello.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/help.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/
hexdump.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hfsplus.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/iorw.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/iso9660.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/jfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/jpeg.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/kernel.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/keylayouts.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/keystatus.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/legacycfg.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/linux.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/linux16.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lnxboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/loadenv.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/loopback.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ls.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lsacpi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lsapm.mod /mnt/debootstrap.
20659/usr/lib/grub/i386-pc/lsmmap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lspci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lvm.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lzopio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/mdraid09.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/mdraid1x.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/memdisk.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/memrw.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/minicmd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/minix.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/minix2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/mmap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/moddep.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/msdospart.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/multiboot.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/multiboot2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/nilfs2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/normal.mod /mnt/debootstrap.20659/usr/lib/grub/i386-
pc/ntfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ntfscomp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ntldr.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ohci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_acorn.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_amiga.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_apple.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_bsd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_gpt.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_msdos.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_sun.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_sunpc.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/partmap.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/parttool.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/parttool.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/password.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/password_pbkdf2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pbkdf2.mod /mnt/debootstrap.20659/usr/lib/grub/
i386-pc/pci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/play.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/png.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/probe.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pxe.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pxeboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pxecmd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/raid.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/raid5rec.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/raid6rec.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/read.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/reboot.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/regexp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/reiserfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/relocator.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/scsi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/search.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/search_fs_file.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/search_fs_uuid.mod /mnt/
debootstrap.20659/usr/lib/grub/i386-pc/search_label.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/sendkey.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/serial.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/setjmp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/setpci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/sfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/sleep.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/squash4.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/tar.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/terminal.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/terminal.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/terminfo.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/test.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/test_blockarg.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/testload.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/tga.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/trig.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/true.mod /mnt/debootstrap.20659/usr/lib/
grub/i386-pc/udf.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ufs1.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ufs2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/uhci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usb.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usb_keyboard.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbms.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbserial_common.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbserial_ftdi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbserial_pl2303.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbtest.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/vbe.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/vga.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/vga_text.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video_bochs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video_cirrus.mod /mnt/debootstrap.20659/usr/lib/grub/
i386-pc/video_fb.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/videoinfo.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/videotest.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xnu.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xnu_uuid.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xzio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/zfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/zfsinfo.mod /mnt/debootstrap.20659/boot/grub/
+ chroot /mnt/debootstrap.20659 grub-mkimage -O i386-pc -p '(hd0,msdos1)/boot/grub' -o /tmp/core.img biosdisk part_msdos ext2
+ dd if=/mnt/debootstrap.20659/tmp/core.img of=./test.raw conv=notrunc seek=4
50+1 records in
50+1 records out
25958 bytes (26 kB) copied, 0.00685482 s, 3.8 MB/s
+ rm -f /mnt/debootstrap.20659/tmp/core.img
+ einfo 'Updating grub configuration file.'
+ trap error_handler ERR
+ einfon 'Updating grub configuration file.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Updating grub configuration file.\n'
 * Updating grub configuration file.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ '[' -n '' ']'
+ chroot /mnt/debootstrap.20659 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
  No volume groups found
done
+ umount /mnt/debootstrap.20659/proc
+ umount /mnt/debootstrap.20659/sys
+ umount /mnt/debootstrap.20659/dev
+ einfo 'Adjusting grub.cfg for successful boot sequence.'
+ trap error_handler ERR
+ einfon 'Adjusting grub.cfg for successful boot sequence.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Adjusting grub.cfg for successful boot sequence.\n'
 * Adjusting grub.cfg for successful boot sequence.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ sed -i 's;set root=.*;set root='\''(hd0,msdos1)'\'';' /mnt/debootstrap.20659/boot/grub/grub.cfg
+ sed -i 's;root=[^ ]\+;root=/dev/sda1;' /mnt/debootstrap.20659/boot/grub/grub.cfg
+ umount /mnt/debootstrap.20659
+ kpartx -d ./test.raw
+ stage finalize_vm done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/finalize_vm
+ for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
+ stage fscktool
+ trap error_handler ERR
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_test.raw/fscktool
+ fscktool
+ trap error_handler ERR
+ '[' -n 1 ']'
+ einfo 'Skipping filesystem check because we deploy a virtual machine.'
+ trap error_handler ERR
+ einfon 'Skipping filesystem check because we deploy a virtual machine.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Skipping filesystem check because we deploy a virtual machine.\n'
 * Skipping filesystem check because we deploy a virtual machine.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ return 0
+ stage fscktool done
+ trap error_handler ERR
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_test.raw/fscktool
+ cleanup
+ trap error_handler ERR
+ '[' -n /var/cache/grml-debootstrap/variables_test.raw ']'
+ einfo 'Removing /var/cache/grml-debootstrap/variables_test.raw'
+ trap error_handler ERR
+ einfon 'Removing /var/cache/grml-debootstrap/variables_test.raw\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing /var/cache/grml-debootstrap/variables_test.raw\n'
 * Removing /var/cache/grml-debootstrap/variables_test.raw
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rm /var/cache/grml-debootstrap/variables_test.raw
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n /var/cache/grml-debootstrap/stages_test.raw ']'
+ einfo 'Removing /var/cache/grml-debootstrap/stages_test.raw'
+ trap error_handler ERR
+ einfon 'Removing /var/cache/grml-debootstrap/stages_test.raw\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing /var/cache/grml-debootstrap/stages_test.raw\n'
 * Removing /var/cache/grml-debootstrap/stages_test.raw
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rmdir /var/cache/grml-debootstrap/stages_test.raw
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ grep -q '/mnt/debootstrap\.'
+ echo /mnt/debootstrap.20659
+ rmdir /mnt/debootstrap.20659
+ '[' -n /mnt/debootstrap.20659 ']'
+ grep -q /mnt/debootstrap.20659 /proc/mounts
+ '[' -n ./test.raw ']'
+ einfo 'Removing loopback mount of file ./test.raw.'
+ trap error_handler ERR
+ einfon 'Removing loopback mount of file ./test.raw.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Removing loopback mount of file ./test.raw.\n'
 * Removing loopback mount of file ./test.raw.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ kpartx -d ./test.raw
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n '' ']'
+ einfo 'Finished execution of grml-debootstrap. Enjoy your Debian system.'
+ trap error_handler ERR
+ einfon 'Finished execution of grml-debootstrap. Enjoy your Debian system.\n'
+ trap error_handler ERR
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' * Finished execution of grml-debootstrap. Enjoy your Debian system.\n'
 * Finished execution of grml-debootstrap. Enjoy your Debian system.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ eend 0
+ trap error_handler ERR
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
tester@debian:~$ 
adrelanos commented 9 years ago

For your convenience, the diff.

21,22c21
< >          --debopt "--verbose --include=grub-pc,locales" \
< >          --nopackages
---
> >          --debopt "--verbose"
35c34
< + MNTPOINT=/mnt/debootstrap.3127
---
> + MNTPOINT=/mnt/debootstrap.20659
41,42c40,41
< + DEBCONF=yes                                                                                                                                                                       
< + '[' -n '' ']'
---
> + DEBCONF=yes
> + '[' -n '' ']'                                                                                                                                                                     
118,119c117,118
< +++ getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt '--verbose --include=grub-pc,locales' --nopackages
< ++ _opt_temp=' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose --include=grub-pc,locales'\'' --nopackages --'
---
> +++ getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt --verbose
> ++ _opt_temp=' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose'\'' --'
121,122c120,121
< ++ eval set -- ' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose --include=grub-pc,locales'\'' --nopackages --'
< +++ set -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt '--verbose --include=grub-pc,locales' --nopackages --
---
> ++ eval set -- ' --debug --verbose --arch '\''i386'\'' --filesystem '\''ext4'\'' --force --hostname '\''host'\'' --mirror '\''http://ftp.us.debian.org/debian'\'' --keep_src_list --password '\''changeme'\'' --release '\''wheezy'\'' --verbose --vmfile --vmsize '\'''\'' --target '\''./test.raw'\'' --debopt '\''--verbose'\'' --'
> +++ set -- --debug --verbose --arch i386 --filesystem ext4 --force --hostname host --mirror http://ftp.us.debian.org/debian --keep_src_list --password changeme --release wheezy --verbose --vmfile --vmsize '' --target ./test.raw --debopt --verbose --
193,197c192
< ++ _opt_debopt='--verbose --include=grub-pc,locales'
< ++ shift
< ++ :
< ++ case "$1" in
< ++ _opt_nopackages=T
---
> ++ _opt_debopt=--verbose
217,218c212,213
< + '[' '--verbose --include=grub-pc,locales' ']'
< + DEBOOTSTRAP_OPT='--verbose --include=grub-pc,locales'
---
> + '[' --verbose ']'
> + DEBOOTSTRAP_OPT=--verbose
224,225c219
< + '[' T ']'
< + PACKAGES=
---
> + '[' '' ']'
385c379
< 512 bytes (512 B) copied, 0.0161063 s, 31.8 kB/s
---
> 512 bytes (512 B) copied, 0.0209535 s, 24.4 kB/s
389c383
< 64 bytes (64 B) copied, 0.0012685 s, 50.5 kB/s
---
> 64 bytes (64 B) copied, 0.00154434 s, 41.4 kB/s
469,471c463,465
< + eval ID_FS_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ID_FS_UUID_ENC=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ID_FS_TYPE=ext4
< ++ ID_FS_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
< ++ ID_FS_UUID_ENC=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
---
> + eval ID_FS_UUID=97354d78-56a2-48b9-9cf1-2d4313522237 ID_FS_UUID_ENC=97354d78-56a2-48b9-9cf1-2d4313522237 ID_FS_TYPE=ext4
> ++ ID_FS_UUID=97354d78-56a2-48b9-9cf1-2d4313522237
> ++ ID_FS_UUID_ENC=97354d78-56a2-48b9-9cf1-2d4313522237
473,474c467,468
< + '[' -n 6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ']'
< + TARGET_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
---
> + '[' -n 97354d78-56a2-48b9-9cf1-2d4313522237 ']'
> + TARGET_UUID=97354d78-56a2-48b9-9cf1-2d4313522237
533c527
< + '[' -d /mnt/debootstrap.3127 ']'
---
> + '[' -d /mnt/debootstrap.20659 ']'
535c529
< + einfo 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127'
---
> + einfo 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659'
537c531
< + einfon 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127\n'
---
> + einfon 'Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659\n'
541,542c535,536
< + printf ' * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127\n'
<  * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.3127
---
> + printf ' * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659\n'
>  * Mounting /dev/mapper/loop0p1 to /mnt/debootstrap.20659
546,547c540,541
< + mkdir -p /mnt/debootstrap.3127
< + mount -o rw,suid,dev /dev/mapper/loop0p1 /mnt/debootstrap.3127
---
> + mkdir -p /mnt/debootstrap.20659
> + mount -o rw,suid,dev /dev/mapper/loop0p1 /mnt/debootstrap.20659
569c563
< + grep -q /mnt/debootstrap.3127 /proc/mounts
---
> + grep -q /mnt/debootstrap.20659 /proc/mounts
572c566
< + einfo 'Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian'
---
> + einfo 'Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian'
574c568
< + einfon 'Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
---
> + einfon 'Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
578,579c572,573
< + printf ' * Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
<  * Running debootstrap --verbose --include=grub-pc,locales for release wheezy (i386) using http://ftp.us.debian.org/debian
---
> + printf ' * Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian\n'
>  * Running debootstrap --verbose for release wheezy (i386) using http://ftp.us.debian.org/debian
583c577
< + einfo 'Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian'
---
> + einfo 'Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian'
585c579
< + einfon 'Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian\n'
---
> + einfon 'Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian\n'
589,590c583,584
< + printf ' * Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian\n'
<  * Executing: debootstrap --arch i386  --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian
---
> + printf ' * Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian\n'
>  * Executing: debootstrap --arch i386  --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian
594c588
< + debootstrap --arch i386 --verbose --include=grub-pc,locales wheezy /mnt/debootstrap.3127 http://ftp.us.debian.org/debian
---
> + debootstrap --arch i386 --verbose wheezy /mnt/debootstrap.20659 http://ftp.us.debian.org/debian
604c598
< I: Found additional base dependencies: dmsetup gettext-base grub-common grub-pc-bin grub2-common libasprintf0c2 libdevmapper1.02.1 libept1.4.12 libfreetype6 libfuse2 libgcrypt11 libgnutls26 libgpg-error0 libidn11 libnfnetlink0 libp11-kit0 libsqlite3-0 libtasn1-3 libxapian22 ucf 
---
> I: Found additional base dependencies: libept1.4.12 libgcrypt11 libgnutls26 libgpg-error0 libidn11 libnfnetlink0 libp11-kit0 libsqlite3-0 libtasn1-3 libxapian22 
674,675d667
< I: Retrieving locales
< I: Validating locales
680,683d671
< I: Retrieving libfreetype6
< I: Validating libfreetype6
< I: Retrieving libfuse2
< I: Validating libfuse2
692,695d679
< I: Retrieving gettext-base
< I: Validating gettext-base
< I: Retrieving libasprintf0c2
< I: Validating libasprintf0c2
706,713d689
< I: Retrieving grub-common
< I: Validating grub-common
< I: Retrieving grub-pc
< I: Validating grub-pc
< I: Retrieving grub-pc-bin
< I: Validating grub-pc-bin
< I: Retrieving grub2-common
< I: Validating grub2-common
774,777d749
< I: Retrieving dmsetup
< I: Validating dmsetup
< I: Retrieving libdevmapper1.02.1
< I: Validating libdevmapper1.02.1
866,867d837
< I: Retrieving ucf
< I: Validating ucf
1123,1125d1092
< I: Unpacking locales...
< I: Unpacking libfreetype6:i386...
< I: Unpacking libfuse2:i386...
1128,1129d1094
< I: Unpacking gettext-base...
< I: Unpacking libasprintf0c2:i386...
1134,1137d1098
< I: Unpacking grub-common...
< I: Unpacking grub-pc...
< I: Unpacking grub-pc-bin...
< I: Unpacking grub2-common...
1156,1157d1116
< I: Unpacking dmsetup...
< I: Unpacking libdevmapper1.02.1:i386...
1181d1139
< I: Unpacking ucf...
1189d1146
< I: Configuring libfreetype6:i386...
1195d1151
< I: Configuring libfuse2:i386...
1199d1154
< I: Configuring ucf...
1208d1162
< I: Configuring locales...
1234,1235d1187
< I: Configuring libasprintf0c2:i386...
< I: Configuring gettext-base...
1262,1267d1213
< I: Configuring libdevmapper1.02.1:i386...
< I: Configuring dmsetup...
< I: Configuring grub-common...
< I: Configuring grub-pc-bin...
< I: Configuring grub2-common...
< I: Configuring grub-pc...
1348c1294,1295
< + '[' -n '' ']'
---
> + '[' -n yes ']'
> + echo 'PACKAGES="yes"'
1368,1369c1315,1316
< + '[' -n 6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f ']'
< + echo 'TARGET_UUID="6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f"'
---
> + '[' -n 97354d78-56a2-48b9-9cf1-2d4313522237 ']'
> + echo 'TARGET_UUID="97354d78-56a2-48b9-9cf1-2d4313522237"'
1380,1389c1327,1336
< + cp -v /etc/debootstrap/chroot-script /mnt/debootstrap.3127/bin/chroot-script
< `/etc/debootstrap/chroot-script' -> `/mnt/debootstrap.3127/bin/chroot-script'
< + chmod 755 /mnt/debootstrap.3127/bin/chroot-script
< + '[' -d /mnt/debootstrap.3127/etc/debootstrap/ ']'
< + mkdir /mnt/debootstrap.3127/etc/debootstrap/
< + cp -v /etc/debootstrap/config /mnt/debootstrap.3127/etc/debootstrap/
< `/etc/debootstrap/config' -> `/mnt/debootstrap.3127/etc/debootstrap/config'
< + sed -i 's#RELEASE=.*#RELEASE="wheezy"#' /mnt/debootstrap.3127/etc/debootstrap/config
< + sed -i 's#TARGET=.*#TARGET="/dev/mapper/loop0p1"#' /mnt/debootstrap.3127/etc/debootstrap/config
< + sed -i 's#GRUB=.*#GRUB=""#' /mnt/debootstrap.3127/etc/debootstrap/config
---
> + cp -v /etc/debootstrap/chroot-script /mnt/debootstrap.20659/bin/chroot-script
> `/etc/debootstrap/chroot-script' -> `/mnt/debootstrap.20659/bin/chroot-script'
> + chmod 755 /mnt/debootstrap.20659/bin/chroot-script
> + '[' -d /mnt/debootstrap.20659/etc/debootstrap/ ']'
> + mkdir /mnt/debootstrap.20659/etc/debootstrap/
> + cp -v /etc/debootstrap/config /mnt/debootstrap.20659/etc/debootstrap/
> `/etc/debootstrap/config' -> `/mnt/debootstrap.20659/etc/debootstrap/config'
> + sed -i 's#RELEASE=.*#RELEASE="wheezy"#' /mnt/debootstrap.20659/etc/debootstrap/config
> + sed -i 's#TARGET=.*#TARGET="/dev/mapper/loop0p1"#' /mnt/debootstrap.20659/etc/debootstrap/config
> + sed -i 's#GRUB=.*#GRUB=""#' /mnt/debootstrap.20659/etc/debootstrap/config
1392,1393c1339,1340
< + cp -v /etc/debootstrap/packages /mnt/debootstrap.3127/etc/debootstrap/packages
< `/etc/debootstrap/packages' -> `/mnt/debootstrap.3127/etc/debootstrap/packages'
---
> + cp -v /etc/debootstrap/packages /mnt/debootstrap.20659/etc/debootstrap/packages
> `/etc/debootstrap/packages' -> `/mnt/debootstrap.20659/etc/debootstrap/packages'
1398,1403c1345,1350
< + cp -v /var/cache/grml-debootstrap/variables_test.raw /mnt/debootstrap.3127/etc/debootstrap/variables
< `/var/cache/grml-debootstrap/variables_test.raw' -> `/mnt/debootstrap.3127/etc/debootstrap/variables'
< + cp -v -a -L /etc/debootstrap/extrapackages/ /mnt/debootstrap.3127/etc/debootstrap/
< `/etc/debootstrap/extrapackages/' -> `/mnt/debootstrap.3127/etc/debootstrap/extrapackages'
< + '[' -f /mnt/debootstrap.3127/etc/resolv.conf ']'
< + '[' -f /mnt/debootstrap.3127/etc/hosts ']'
---
> + cp -v /var/cache/grml-debootstrap/variables_test.raw /mnt/debootstrap.20659/etc/debootstrap/variables
> `/var/cache/grml-debootstrap/variables_test.raw' -> `/mnt/debootstrap.20659/etc/debootstrap/variables'
> + cp -v -a -L /etc/debootstrap/extrapackages/ /mnt/debootstrap.20659/etc/debootstrap/
> `/etc/debootstrap/extrapackages/' -> `/mnt/debootstrap.20659/etc/debootstrap/extrapackages'
> + '[' -f /mnt/debootstrap.20659/etc/resolv.conf ']'
> + '[' -f /mnt/debootstrap.20659/etc/hosts ']'
1405,1407c1352,1354
< + cp -v /etc/debootstrap/locale.gen /mnt/debootstrap.3127/etc/locale.gen
< `/etc/debootstrap/locale.gen' -> `/mnt/debootstrap.3127/etc/locale.gen'
< + cd /mnt/debootstrap.3127/dev
---
> + cp -v /etc/debootstrap/locale.gen /mnt/debootstrap.20659/etc/locale.gen
> `/etc/debootstrap/locale.gen' -> `/mnt/debootstrap.20659/etc/locale.gen'
> + cd /mnt/debootstrap.20659/dev
1470c1417
< + '[' -r /etc/network/interfaces.examples -a '!' -r /mnt/debootstrap.3127/etc/network/interfaces.examples ']'
---
> + '[' -r /etc/network/interfaces.examples -a '!' -r /mnt/debootstrap.20659/etc/network/interfaces.examples ']'
1510,1511c1457,1458
< + '[' -r /mnt/debootstrap.3127/bin/chroot-script ']'
< + '[' -x /mnt/debootstrap.3127/bin/chroot-script ']'
---
> + '[' -r /mnt/debootstrap.20659/bin/chroot-script ']'
> + '[' -x /mnt/debootstrap.20659/bin/chroot-script ']'
1523c1470
< + mount --bind /dev /mnt/debootstrap.3127/dev
---
> + mount --bind /dev /mnt/debootstrap.20659/dev
1525c1472
< + chroot /mnt/debootstrap.3127 /bin/bash -x /bin/chroot-script
---
> + chroot /mnt/debootstrap.20659 /bin/bash -x /bin/chroot-script
1545a1493
> ++ PACKAGES=yes
1555c1503
< ++ TARGET_UUID=6ffa2a7e-8b59-4e10-a5b7-5b8fe002a04f
---
> ++ TARGET_UUID=97354d78-56a2-48b9-9cf1-2d4313522237
1651c1599
< Fetched 9874 kB in 4s (2236 kB/s)                           
---
> Fetched 9874 kB in 6s (1560 kB/s)                                                                                                                                                   
1724,1728c1672,1676
< Get: 7 http://ftp.us.debian.org/debian/ wheezy/main busybox i386 1:1.20.0-7 [441 kB]                                                                                                
< Get: 8 http://ftp.us.debian.org/debian/ wheezy/main firmware-linux-free all 3.2 [20.7 kB]                                                                                           
< Get: 9 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686-pae i386 3.2+46 [5814 B]                                                                                        
< Get: 10 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686 i386 3.2+46 [7986 B]                                                                                           
< Fetched 23.8 MB in 14s (1680 kB/s)                                                                                                                                                  
---
> Get: 7 http://ftp.us.debian.org/debian/ wheezy/main busybox i386 1:1.20.0-7 [441 kB]
> Get: 8 http://ftp.us.debian.org/debian/ wheezy/main firmware-linux-free all 3.2 [20.7 kB]
> Get: 9 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686-pae i386 3.2+46 [5814 B]
> Get: 10 http://ftp.us.debian.org/debian/ wheezy/main linux-image-686 i386 3.2+46 [7986 B]
> Fetched 23.8 MB in 2s (9771 kB/s)
1732c1680
< (Reading database ... 10358 files and directories currently installed.)
---
> (Reading database ... 9312 files and directories currently installed.)
1765,1772d1712
< run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-4-686-pae /boot/vmlinuz-3.2.0-4-686-pae
< Generating grub.cfg ...
< cat: /boot/grub/video.lst: No such file or directory
< Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
< Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
< /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
< /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
< done
1794c1734,2167
< + '[' '' = yes ']'
---
> + '[' yes = yes ']'
> + '[' -r /etc/debootstrap/packages ']'
> + aptitude update
> Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
> Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
> Get: 3 http://ftp.us.debian.org wheezy/main i386 Packages [5858 kB]
> Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
> Fetched 9874 kB in 5s (1736 kB/s)                          
>                             
> ++ grep -v '^#' /etc/debootstrap/packages
> + DEBIAN_FRONTEND=noninteractive
> + aptitude -y --without-recommends install locales console-data console-common initramfs-tools mdadm lvm2 grub-pc os-prober bzip2 file less lsof most pciutils resolvconf screen ssh strace sysfsutils usbutils vim w3m zsh rsync postfix lsb-release acpi-support-base vlan bridge-utils ifenslave cryptsetup isc-dhcp-client
> Note: selecting "ifenslave-2.6" instead of the
>       virtual package "ifenslave"
> The following NEW packages will be installed:
>   acpi-support-base acpid{a} bridge-utils bzip2 console-common console-data cryptsetup cryptsetup-bin{a} dmsetup{a} file gettext-base{a} grub-common{a} grub-pc grub-pc-bin{a} 
>   grub2-common{a} ifenslave-2.6 kbd{a} less libasprintf0c2{a} libbsd0{a} libcap2{a} libclass-isa-perl{a} libcryptsetup4{a} libdevmapper-event1.02.1{a} libdevmapper1.02.1{a} 
>   libedit2{a} libexpat1{a} libfreetype6{a} libfuse2{a} libgc1c2{a} libgpm2{a} libgssapi-krb5-2{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libmagic1{a} 
>   libpci3{a} libperl4-corelibs-perl{a} libreadline5{a} libsasl2-2{a} libswitch-perl{a} libsysfs2{a} libusb-1.0-0{a} libwrap0{a} locales lsb-release lsof lvm2 mdadm 
>   mime-support{a} module-init-tools{a} most openssh-client{a} openssh-server{a} openssl{a} os-prober pciutils perl{a} perl-modules{a} postfix python{a} python-minimal{a} 
>   python2.7{a} python2.7-minimal{a} resolvconf rsync screen ssh ssl-cert{a} strace sysfsutils ucf{a} usbutils vim vim-runtime{a} vlan w3m zsh 
> The following packages are RECOMMENDED but will NOT be installed:
>   ca-certificates console-setup consolekit krb5-locales libpcre3 libsasl2-modules ncurses-term openssh-blacklist openssh-blacklist-extra tcpd xauth 
> 0 packages upgraded, 79 newly installed, 0 to remove and 0 not upgraded.
> Need to get 43.9 MB of archives. After unpacking 133 MB will be used.
> Get: 1 http://ftp.us.debian.org/debian/ wheezy/main libasprintf0c2 i386 0.18.1.1-9 [26.7 kB]
> Get: 2 http://ftp.us.debian.org/debian/ wheezy/main libcap2 i386 1:2.22-1.2 [14.0 kB]
> Get: 3 http://ftp.us.debian.org/debian/ wheezy/main libbsd0 i386 0.4.2-1 [60.3 kB]
> Get: 4 http://ftp.us.debian.org/debian/ wheezy/main libedit2 i386 2.11-20080614-5 [71.5 kB]
> Get: 5 http://ftp.us.debian.org/debian/ wheezy/main libgpm2 i386 1.20.4-6 [35.9 kB]
> Get: 6 http://ftp.us.debian.org/debian/ wheezy/main libkeyutils1 i386 1.5.5-3+deb7u1 [8678 B]
> Get: 7 http://ftp.us.debian.org/debian/ wheezy/main libkrb5support0 i386 1.10.1+dfsg-5+deb7u2 [49.6 kB]
> Get: 8 http://ftp.us.debian.org/debian/ wheezy/main libk5crypto3 i386 1.10.1+dfsg-5+deb7u2 [109 kB]
> Get: 9 http://ftp.us.debian.org/debian/ wheezy/main libkrb5-3 i386 1.10.1+dfsg-5+deb7u2 [402 kB]
> Get: 10 http://ftp.us.debian.org/debian/ wheezy/main libgssapi-krb5-2 i386 1.10.1+dfsg-5+deb7u2 [149 kB]
> Get: 11 http://ftp.us.debian.org/debian/ wheezy/main libmagic1 i386 5.11-2+deb7u5 [205 kB]
> Get: 12 http://ftp.us.debian.org/debian/ wheezy/main libpci3 i386 1:3.1.9-6 [58.3 kB]
> Get: 13 http://ftp.us.debian.org/debian/ wheezy/main libsasl2-2 i386 2.1.25.dfsg1-6+deb7u1 [120 kB]
> Get: 14 http://ftp.us.debian.org/debian/ wheezy/main libwrap0 i386 7.6.q-24 [62.2 kB]
> Get: 15 http://ftp.us.debian.org/debian/ wheezy/main console-data all 2:1.12-2 [1192 kB]
> Get: 16 http://ftp.us.debian.org/debian/ wheezy/main kbd i386 1.15.3-9 [451 kB]
> Get: 17 http://ftp.us.debian.org/debian/ wheezy/main console-common all 0.7.87 [128 kB]
> Get: 18 http://ftp.us.debian.org/debian/ wheezy/main dmsetup i386 2:1.02.74-8 [68.2 kB]
> Get: 19 http://ftp.us.debian.org/debian/ wheezy/main libdevmapper1.02.1 i386 2:1.02.74-8 [125 kB]
> Get: 20 http://ftp.us.debian.org/debian/ wheezy/main libdevmapper-event1.02.1 i386 2:1.02.74-8 [32.4 kB]
> Get: 21 http://ftp.us.debian.org/debian/ wheezy/main libexpat1 i386 2.1.0-1+deb7u1 [139 kB]
> Get: 22 http://ftp.us.debian.org/debian/ wheezy/main libfreetype6 i386 2.4.9-1.1 [454 kB]
> Get: 23 http://ftp.us.debian.org/debian/ wheezy/main libfuse2 i386 2.9.0-2+deb7u1 [148 kB]
> Get: 24 http://ftp.us.debian.org/debian/ wheezy/main libreadline5 i386 5.2+dfsg-2~deb7u1 [146 kB]
> Get: 25 http://ftp.us.debian.org/debian/ wheezy/main libsysfs2 i386 2.1.0+repack-2 [31.6 kB]
> Get: 26 http://ftp.us.debian.org/debian/ wheezy/main libusb-1.0-0 i386 2:1.0.11-1 [40.6 kB]
> Get: 27 http://ftp.us.debian.org/debian/ wheezy/main module-init-tools all 9-3 [1796 B]
> Get: 28 http://ftp.us.debian.org/debian/ wheezy/main bzip2 i386 1.0.6-4 [49.5 kB]
> Get: 29 http://ftp.us.debian.org/debian/ wheezy/main file i386 5.11-2+deb7u5 [52.3 kB]
> Get: 30 http://ftp.us.debian.org/debian/ wheezy/main gettext-base i386 0.18.1.1-9 [131 kB]
> Get: 31 http://ftp.us.debian.org/debian/ wheezy/main less i386 444-4 [134 kB]
> Get: 32 http://ftp.us.debian.org/debian/ wheezy/main libclass-isa-perl all 0.36-3 [12.3 kB]
> Get: 33 http://ftp.us.debian.org/debian/ wheezy/main libgc1c2 i386 1:7.1-9.1 [137 kB]
> Get: 34 http://ftp.us.debian.org/debian/ wheezy/main perl-modules all 5.14.2-21+deb7u2 [3442 kB]
> Err http://ftp.us.debian.org/debian/ wheezy/main perl i386 5.14.2-21+deb7u2                                                                                                         
>   500  Connection timeout
> Get: 35 http://ftp.us.debian.org/debian/ wheezy/main libswitch-perl all 2.16-2 [21.0 kB]
> Get: 36 http://ftp.us.debian.org/debian/ wheezy/main locales all 2.13-38+deb7u6 [5652 kB]
> Get: 37 http://ftp.us.debian.org/debian/ wheezy/main libperl4-corelibs-perl all 0.003-1 [43.6 kB]
> Get: 38 http://ftp.us.debian.org/debian/ wheezy/main lsof i386 4.86+dfsg-1 [312 kB]
> Get: 39 http://ftp.us.debian.org/debian/ wheezy/main mime-support all 3.52-1 [35.5 kB]
> Get: 40 http://ftp.us.debian.org/debian/ wheezy/main openssh-client i386 1:6.0p1-4+deb7u2 [1045 kB]
> Get: 41 http://ftp.us.debian.org/debian/ wheezy/main pciutils i386 1:3.1.9-6 [281 kB]
> Get: 42 http://ftp.us.debian.org/debian/ wheezy/main python2.7-minimal i386 2.7.3-6+deb7u2 [1715 kB]
> Get: 43 http://ftp.us.debian.org/debian/ wheezy/main python2.7 i386 2.7.3-6+deb7u2 [2687 kB]
> Get: 44 http://ftp.us.debian.org/debian/ wheezy/main python-minimal all 2.7.3-4+deb7u1 [42.8 kB]
> Get: 45 http://ftp.us.debian.org/debian/ wheezy/main python all 2.7.3-4+deb7u1 [181 kB]
> Get: 46 http://ftp.us.debian.org/debian/ wheezy/main ucf all 3.0025+nmu3 [70.8 kB]
> Get: 47 http://ftp.us.debian.org/debian/ wheezy/main w3m i386 0.5.3-8 [1246 kB]
> Get: 48 http://ftp.us.debian.org/debian/ wheezy/main acpid i386 1:2.0.16-1+deb7u1 [56.6 kB]
> Get: 49 http://ftp.us.debian.org/debian/ wheezy/main acpi-support-base all 0.140-5+deb7u3 [22.8 kB]
> Get: 50 http://ftp.us.debian.org/debian/ wheezy/main bridge-utils i386 1.5-6 [35.5 kB]
> Get: 51 http://ftp.us.debian.org/debian/ wheezy/main libcryptsetup4 i386 2:1.4.3-4 [96.7 kB]
> Get: 52 http://ftp.us.debian.org/debian/ wheezy/main cryptsetup-bin i386 2:1.4.3-4 [155 kB]
> Get: 53 http://ftp.us.debian.org/debian/ wheezy/main cryptsetup i386 2:1.4.3-4 [128 kB]
> Get: 54 http://ftp.us.debian.org/debian/ wheezy/main grub-common i386 1.99-27+deb7u2 [1534 kB]
> Get: 55 http://ftp.us.debian.org/debian/ wheezy/main grub2-common i386 1.99-27+deb7u2 [94.3 kB]
> Get: 56 http://ftp.us.debian.org/debian/ wheezy/main grub-pc-bin i386 1.99-27+deb7u2 [636 kB]
> Get: 57 http://ftp.us.debian.org/debian/ wheezy/main grub-pc i386 1.99-27+deb7u2 [170 kB]
> Get: 58 http://ftp.us.debian.org/debian/ wheezy/main ifenslave-2.6 i386 1.1.0-20 [20.7 kB]
> Get: 59 http://ftp.us.debian.org/debian/ wheezy/main lsb-release all 4.1+Debian8+deb7u1 [27.2 kB]
> Get: 60 http://ftp.us.debian.org/debian/ wheezy/main lvm2 i386 2.02.95-8 [596 kB]
> Get: 61 http://ftp.us.debian.org/debian/ wheezy/main mdadm i386 3.2.5-5 [566 kB]
> Get: 62 http://ftp.us.debian.org/debian/ wheezy/main most i386 5.0.0a-2.1 [51.3 kB]
> Get: 63 http://ftp.us.debian.org/debian/ wheezy/main openssh-server i386 1:6.0p1-4+deb7u2 [343 kB]
> Get: 64 http://ftp.us.debian.org/debian/ wheezy/main openssl i386 1.0.1e-2+deb7u12 [694 kB]
> Get: 65 http://ftp.us.debian.org/debian/ wheezy/main resolvconf all 1.67 [69.0 kB]
> Get: 66 http://ftp.us.debian.org/debian/ wheezy/main rsync i386 3.0.9-4 [357 kB]
> Get: 67 http://ftp.us.debian.org/debian/ wheezy/main screen i386 4.1.0~20120320gitdb59704-7 [654 kB]
> Get: 68 http://ftp.us.debian.org/debian/ wheezy/main ssl-cert all 1.0.32 [19.5 kB]
> Get: 69 http://ftp.us.debian.org/debian/ wheezy/main strace i386 4.5.20-2.3 [122 kB]
> Get: 70 http://ftp.us.debian.org/debian/ wheezy/main usbutils i386 1:005-3 [228 kB]
> Get: 71 http://ftp.us.debian.org/debian/ wheezy/main vim-runtime all 2:7.3.547-7 [4607 kB]
> Get: 72 http://ftp.us.debian.org/debian/ wheezy/main vim i386 2:7.3.547-7 [778 kB]
> Get: 73 http://ftp.us.debian.org/debian/ wheezy/main zsh i386 4.3.17-1 [4868 kB]
> Get: 74 http://ftp.us.debian.org/debian/ wheezy/main os-prober i386 1.58 [30.3 kB]
> Get: 75 http://ftp.us.debian.org/debian/ wheezy/main postfix i386 2.9.6-2 [1546 kB]
> Get: 76 http://ftp.us.debian.org/debian/ wheezy/main ssh all 1:6.0p1-4+deb7u2 [1248 B]
> Get: 77 http://ftp.us.debian.org/debian/ wheezy/main sysfsutils i386 2.1.0+repack-2 [25.2 kB]
> Get: 78 http://ftp.us.debian.org/debian/ wheezy/main vlan i386 1.9-3 [39.6 kB]
> Fetched 40.2 MB in 1min 4s (622 kB/s)
> Extracting templates from packages: 100%
> Preconfiguring packages ...
> Can not write log, openpty() failed (/dev/pts not mounted?)
> Selecting previously unselected package libasprintf0c2:i386.
> (Reading database ... 13192 files and directories currently installed.)
> Unpacking libasprintf0c2:i386 (from .../libasprintf0c2_0.18.1.1-9_i386.deb) ...
> Selecting previously unselected package libcap2:i386.
> Unpacking libcap2:i386 (from .../libcap2_1%3a2.22-1.2_i386.deb) ...
> Selecting previously unselected package libbsd0:i386.
> Unpacking libbsd0:i386 (from .../libbsd0_0.4.2-1_i386.deb) ...
> Selecting previously unselected package libedit2:i386.
> Unpacking libedit2:i386 (from .../libedit2_2.11-20080614-5_i386.deb) ...
> Selecting previously unselected package libgpm2:i386.
> Unpacking libgpm2:i386 (from .../libgpm2_1.20.4-6_i386.deb) ...
> Selecting previously unselected package libkeyutils1:i386.
> Unpacking libkeyutils1:i386 (from .../libkeyutils1_1.5.5-3+deb7u1_i386.deb) ...
> Selecting previously unselected package libkrb5support0:i386.
> Unpacking libkrb5support0:i386 (from .../libkrb5support0_1.10.1+dfsg-5+deb7u2_i386.deb) ...
> Selecting previously unselected package libk5crypto3:i386.
> Unpacking libk5crypto3:i386 (from .../libk5crypto3_1.10.1+dfsg-5+deb7u2_i386.deb) ...
> Selecting previously unselected package libkrb5-3:i386.
> Unpacking libkrb5-3:i386 (from .../libkrb5-3_1.10.1+dfsg-5+deb7u2_i386.deb) ...
> Selecting previously unselected package libgssapi-krb5-2:i386.
> Unpacking libgssapi-krb5-2:i386 (from .../libgssapi-krb5-2_1.10.1+dfsg-5+deb7u2_i386.deb) ...
> Selecting previously unselected package libmagic1:i386.
> Unpacking libmagic1:i386 (from .../libmagic1_5.11-2+deb7u5_i386.deb) ...
> Selecting previously unselected package libpci3:i386.
> Unpacking libpci3:i386 (from .../libpci3_1%3a3.1.9-6_i386.deb) ...
> Selecting previously unselected package libsasl2-2:i386.
> Unpacking libsasl2-2:i386 (from .../libsasl2-2_2.1.25.dfsg1-6+deb7u1_i386.deb) ...
> Selecting previously unselected package libwrap0:i386.
> Unpacking libwrap0:i386 (from .../libwrap0_7.6.q-24_i386.deb) ...
> Selecting previously unselected package console-data.
> Unpacking console-data (from .../console-data_2%3a1.12-2_all.deb) ...
> Selecting previously unselected package kbd.
> Unpacking kbd (from .../archives/kbd_1.15.3-9_i386.deb) ...
> update-rc.d: using dependency based boot sequencing
> Selecting previously unselected package console-common.
> Unpacking console-common (from .../console-common_0.7.87_all.deb) ...
> Selecting previously unselected package dmsetup.
> Unpacking dmsetup (from .../dmsetup_2%3a1.02.74-8_i386.deb) ...
> Selecting previously unselected package libdevmapper1.02.1:i386.
> Unpacking libdevmapper1.02.1:i386 (from .../libdevmapper1.02.1_2%3a1.02.74-8_i386.deb) ...
> Selecting previously unselected package libdevmapper-event1.02.1:i386.
> Unpacking libdevmapper-event1.02.1:i386 (from .../libdevmapper-event1.02.1_2%3a1.02.74-8_i386.deb) ...
> Selecting previously unselected package libexpat1:i386.
> Unpacking libexpat1:i386 (from .../libexpat1_2.1.0-1+deb7u1_i386.deb) ...
> Selecting previously unselected package libfreetype6:i386.
> Unpacking libfreetype6:i386 (from .../libfreetype6_2.4.9-1.1_i386.deb) ...
> Selecting previously unselected package libfuse2:i386.
> Unpacking libfuse2:i386 (from .../libfuse2_2.9.0-2+deb7u1_i386.deb) ...
> Selecting previously unselected package libreadline5:i386.
> Unpacking libreadline5:i386 (from .../libreadline5_5.2+dfsg-2~deb7u1_i386.deb) ...
> Selecting previously unselected package libsysfs2:i386.
> Unpacking libsysfs2:i386 (from .../libsysfs2_2.1.0+repack-2_i386.deb) ...
> Selecting previously unselected package libusb-1.0-0:i386.
> Unpacking libusb-1.0-0:i386 (from .../libusb-1.0-0_2%3a1.0.11-1_i386.deb) ...
> Selecting previously unselected package module-init-tools.
> Unpacking module-init-tools (from .../module-init-tools_9-3_all.deb) ...
> Selecting previously unselected package bzip2.
> Unpacking bzip2 (from .../bzip2_1.0.6-4_i386.deb) ...
> Selecting previously unselected package file.
> Unpacking file (from .../file_5.11-2+deb7u5_i386.deb) ...
> Selecting previously unselected package gettext-base.
> Unpacking gettext-base (from .../gettext-base_0.18.1.1-9_i386.deb) ...
> Selecting previously unselected package less.
> Unpacking less (from .../archives/less_444-4_i386.deb) ...
> Selecting previously unselected package libclass-isa-perl.
> Unpacking libclass-isa-perl (from .../libclass-isa-perl_0.36-3_all.deb) ...
> Selecting previously unselected package libgc1c2.
> Unpacking libgc1c2 (from .../libgc1c2_1%3a7.1-9.1_i386.deb) ...
> Selecting previously unselected package locales.
> Unpacking locales (from .../locales_2.13-38+deb7u6_all.deb) ...
> Selecting previously unselected package mime-support.
> Unpacking mime-support (from .../mime-support_3.52-1_all.deb) ...
> Selecting previously unselected package openssh-client.
> Unpacking openssh-client (from .../openssh-client_1%3a6.0p1-4+deb7u2_i386.deb) ...
> Selecting previously unselected package pciutils.
> Unpacking pciutils (from .../pciutils_1%3a3.1.9-6_i386.deb) ...
> Selecting previously unselected package python2.7-minimal.
> Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3-6+deb7u2_i386.deb) ...
> Selecting previously unselected package python2.7.
> Unpacking python2.7 (from .../python2.7_2.7.3-6+deb7u2_i386.deb) ...
> Selecting previously unselected package python-minimal.
> Unpacking python-minimal (from .../python-minimal_2.7.3-4+deb7u1_all.deb) ...
> Selecting previously unselected package python.
> Unpacking python (from .../python_2.7.3-4+deb7u1_all.deb) ...
> Selecting previously unselected package ucf.
> Unpacking ucf (from .../ucf_3.0025+nmu3_all.deb) ...
> Moving old data out of the way
> Selecting previously unselected package w3m.
> Unpacking w3m (from .../archives/w3m_0.5.3-8_i386.deb) ...
> Selecting previously unselected package acpid.
> Unpacking acpid (from .../acpid_1%3a2.0.16-1+deb7u1_i386.deb) ...
> Selecting previously unselected package acpi-support-base.
> Unpacking acpi-support-base (from .../acpi-support-base_0.140-5+deb7u3_all.deb) ...
> Selecting previously unselected package bridge-utils.
> Unpacking bridge-utils (from .../bridge-utils_1.5-6_i386.deb) ...
> Selecting previously unselected package libcryptsetup4.
> Unpacking libcryptsetup4 (from .../libcryptsetup4_2%3a1.4.3-4_i386.deb) ...
> Selecting previously unselected package cryptsetup-bin.
> Unpacking cryptsetup-bin (from .../cryptsetup-bin_2%3a1.4.3-4_i386.deb) ...
> Selecting previously unselected package cryptsetup.
> Unpacking cryptsetup (from .../cryptsetup_2%3a1.4.3-4_i386.deb) ...
> Selecting previously unselected package grub-common.
> Unpacking grub-common (from .../grub-common_1.99-27+deb7u2_i386.deb) ...
> Selecting previously unselected package grub2-common.
> Unpacking grub2-common (from .../grub2-common_1.99-27+deb7u2_i386.deb) ...
> Selecting previously unselected package grub-pc-bin.
> Unpacking grub-pc-bin (from .../grub-pc-bin_1.99-27+deb7u2_i386.deb) ...
> Selecting previously unselected package grub-pc.
> Unpacking grub-pc (from .../grub-pc_1.99-27+deb7u2_i386.deb) ...
> Selecting previously unselected package ifenslave-2.6.
> Unpacking ifenslave-2.6 (from .../ifenslave-2.6_1.1.0-20_i386.deb) ...
> Selecting previously unselected package lsb-release.
> Unpacking lsb-release (from .../lsb-release_4.1+Debian8+deb7u1_all.deb) ...
> Selecting previously unselected package lvm2.
> Unpacking lvm2 (from .../lvm2_2.02.95-8_i386.deb) ...
> Selecting previously unselected package mdadm.
> Unpacking mdadm (from .../mdadm_3.2.5-5_i386.deb) ...
> Selecting previously unselected package most.
> Unpacking most (from .../most_5.0.0a-2.1_i386.deb) ...
> Selecting previously unselected package openssh-server.
> Unpacking openssh-server (from .../openssh-server_1%3a6.0p1-4+deb7u2_i386.deb) ...
> Selecting previously unselected package openssl.
> Unpacking openssl (from .../openssl_1.0.1e-2+deb7u12_i386.deb) ...
> Selecting previously unselected package resolvconf.
> Unpacking resolvconf (from .../resolvconf_1.67_all.deb) ...
> Selecting previously unselected package rsync.
> Unpacking rsync (from .../rsync_3.0.9-4_i386.deb) ...
> Selecting previously unselected package screen.
> Unpacking screen (from .../screen_4.1.0~20120320gitdb59704-7_i386.deb) ...
> Selecting previously unselected package ssl-cert.
> Unpacking ssl-cert (from .../ssl-cert_1.0.32_all.deb) ...
> Selecting previously unselected package strace.
> Unpacking strace (from .../strace_4.5.20-2.3_i386.deb) ...
> Selecting previously unselected package usbutils.
> Unpacking usbutils (from .../usbutils_1%3a005-3_i386.deb) ...
> Selecting previously unselected package vim-runtime.
> Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.547-7_all.deb) ...
> Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
> Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
> Selecting previously unselected package vim.
> Unpacking vim (from .../vim_2%3a7.3.547-7_i386.deb) ...
> Selecting previously unselected package zsh.
> Unpacking zsh (from .../archives/zsh_4.3.17-1_i386.deb) ...
> Selecting previously unselected package os-prober.
> Unpacking os-prober (from .../os-prober_1.58_i386.deb) ...
> Selecting previously unselected package postfix.
> Unpacking postfix (from .../postfix_2.9.6-2_i386.deb) ...
> Selecting previously unselected package ssh.
> Unpacking ssh (from .../ssh_1%3a6.0p1-4+deb7u2_all.deb) ...
> Selecting previously unselected package sysfsutils.
> Unpacking sysfsutils (from .../sysfsutils_2.1.0+repack-2_i386.deb) ...
> Selecting previously unselected package vlan.
> Unpacking vlan (from .../archives/vlan_1.9-3_i386.deb) ...
> Processing triggers for man-db ...
> Processing triggers for install-info ...
> Can not write log, openpty() failed (/dev/pts not mounted?)
> Setting up libasprintf0c2:i386 (0.18.1.1-9) ...
> Setting up libcap2:i386 (1:2.22-1.2) ...
> Setting up libbsd0:i386 (0.4.2-1) ...
> Setting up libedit2:i386 (2.11-20080614-5) ...
> Setting up libgpm2:i386 (1.20.4-6) ...
> Setting up libkeyutils1:i386 (1.5.5-3+deb7u1) ...
> Setting up libkrb5support0:i386 (1.10.1+dfsg-5+deb7u2) ...
> Setting up libk5crypto3:i386 (1.10.1+dfsg-5+deb7u2) ...
> Setting up libkrb5-3:i386 (1.10.1+dfsg-5+deb7u2) ...
> Setting up libgssapi-krb5-2:i386 (1.10.1+dfsg-5+deb7u2) ...
> Setting up libmagic1:i386 (5.11-2+deb7u5) ...
> Setting up libpci3:i386 (1:3.1.9-6) ...
> Setting up libsasl2-2:i386 (2.1.25.dfsg1-6+deb7u1) ...
> Setting up libwrap0:i386 (7.6.q-24) ...
> Setting up console-data (2:1.12-2) ...
> Looking for keymap to install:
> NONE
> Setting up kbd (1.15.3-9) ...
> invoke-rc.d: policy-rc.d denied execution of start.
> Setting up console-common (0.7.87) ...
> Looking for keymap to install:
> NONE
> invoke-rc.d: policy-rc.d denied execution of start.
> Setting up libexpat1:i386 (2.1.0-1+deb7u1) ...
> Setting up libfreetype6:i386 (2.4.9-1.1) ...
> Setting up libfuse2:i386 (2.9.0-2+deb7u1) ...
> Setting up libreadline5:i386 (5.2+dfsg-2~deb7u1) ...
> Setting up libsysfs2:i386 (2.1.0+repack-2) ...
> Setting up libusb-1.0-0:i386 (2:1.0.11-1) ...
> Setting up module-init-tools (9-3) ...
> Setting up bzip2 (1.0.6-4) ...
> Setting up file (5.11-2+deb7u5) ...
> Setting up gettext-base (0.18.1.1-9) ...
> Setting up less (444-4) ...
> Setting up libclass-isa-perl (0.36-3) ...
> Setting up libgc1c2 (1:7.1-9.1) ...
> Setting up locales (2.13-38+deb7u6) ...
> Generating locales (this might take a while)...
>   en_US.UTF-8... done
> Generation complete.
> Setting up mime-support (3.52-1) ...
> Setting up openssh-client (1:6.0p1-4+deb7u2) ...
> Setting up pciutils (1:3.1.9-6) ...
> Setting up python2.7-minimal (2.7.3-6+deb7u2) ...
> Setting up python2.7 (2.7.3-6+deb7u2) ...
> Setting up python-minimal (2.7.3-4+deb7u1) ...
> Setting up python (2.7.3-4+deb7u1) ...
> Setting up ucf (3.0025+nmu3) ...
> Setting up w3m (0.5.3-8) ...
> Setting up acpid (1:2.0.16-1+deb7u1) ...
> invoke-rc.d: policy-rc.d denied execution of start.
> Setting up acpi-support-base (0.140-5+deb7u3) ...
> invoke-rc.d: policy-rc.d denied execution of restart.
> Setting up bridge-utils (1.5-6) ...
> Setting up ifenslave-2.6 (1.1.0-20) ...
> update-alternatives: using /sbin/ifenslave-2.6 to provide /sbin/ifenslave (ifenslave) in auto mode
> Setting up lsb-release (4.1+Debian8+deb7u1) ...
> Setting up mdadm (3.2.5-5) ...
> Generating array device nodes... done.
> Generating mdadm.conf... done.
> update-initramfs: deferring update (trigger activated)
> invoke-rc.d: policy-rc.d denied execution of start.
> invoke-rc.d: policy-rc.d denied execution of start.
> Setting up most (5.0.0a-2.1) ...
> Setting up openssh-server (1:6.0p1-4+deb7u2) ...
> Creating SSH2 RSA key; this may take some time ...
> Creating SSH2 DSA key; this may take some time ...
> Creating SSH2 ECDSA key; this may take some time ...
> invoke-rc.d: policy-rc.d denied execution of restart.
> Setting up openssl (1.0.1e-2+deb7u12) ...
> Setting up resolvconf (1.67) ...
> Setting up rsync (3.0.9-4) ...
> update-rc.d: using dependency based boot sequencing
> invoke-rc.d: policy-rc.d denied execution of restart.
> Setting up screen (4.1.0~20120320gitdb59704-7) ...
> Setting up ssl-cert (1.0.32) ...
> hostname: Name or service not known
> make-ssl-cert: Could not get FQDN, using "debian".
> make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
> make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite
> make-ssl-cert: again.
> Setting up strace (4.5.20-2.3) ...
> Setting up usbutils (1:005-3) ...
> Setting up vim-runtime (2:7.3.547-7) ...
> Processing /usr/share/vim/addons/doc
> Setting up vim (2:7.3.547-7) ...
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
> update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
> Setting up zsh (4.3.17-1) ...
> update-alternatives: using /bin/zsh4 to provide /bin/zsh (zsh) in auto mode
> update-alternatives: using /bin/zsh4 to provide /bin/rzsh (rzsh) in auto mode
> update-alternatives: using /bin/zsh4 to provide /bin/ksh (ksh) in auto mode
> Setting up os-prober (1.58) ...
> Setting up postfix (2.9.6-2) ...
> Adding group `postfix' (GID 105) ...
> Done.
> Adding system user `postfix' (UID 102) ...
> Adding new user `postfix' (UID 102) with group `postfix' ...
> Not creating home directory `/var/spool/postfix'.
> Creating /etc/postfix/dynamicmaps.cf
> Adding tcp map entry to /etc/postfix/dynamicmaps.cf
> Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
> Adding group `postdrop' (GID 106) ...
> Done.
> setting myhostname: debian.Speedport_W_500
> setting alias maps
> setting alias database
> mailname is not a fully qualified domain name.  Not changing /etc/mailname.
> setting destinations: localdomain, localhost, localhost.localdomain, localhost
> setting relayhost: 
> setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> setting mailbox_size_limit: 0
> setting recipient_delimiter: +
> setting inet_interfaces: all
> /etc/aliases does not exist, creating it.
> WARNING: /etc/aliases exists, but does not have a root alias.
> 
> Postfix is now set up with a default configuration.  If you need to make 
> changes, edit
> /etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
> values, see postconf(1).
> 
> After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
> 
> Running newaliases
> invoke-rc.d: policy-rc.d denied execution of restart.
> Setting up ssh (1:6.0p1-4+deb7u2) ...
> Setting up sysfsutils (2.1.0+repack-2) ...
> invoke-rc.d: policy-rc.d denied execution of start.
> Setting up vlan (1.9-3) ...
> Setting up libdevmapper1.02.1:i386 (2:1.02.74-8) ...
> Setting up libdevmapper-event1.02.1:i386 (2:1.02.74-8) ...
> Setting up libcryptsetup4 (2:1.4.3-4) ...
> Setting up cryptsetup-bin (2:1.4.3-4) ...
> Setting up grub-common (1.99-27+deb7u2) ...
> Setting up grub2-common (1.99-27+deb7u2) ...
> Setting up grub-pc-bin (1.99-27+deb7u2) ...
> Setting up grub-pc (1.99-27+deb7u2) ...
> 
> Creating config file /etc/default/grub with new version
> device node not found
> device node not found
> device node not found
> device node not found
> device node not found
> device node not found
> device node not found
> device node not found
> Setting up dmsetup (2:1.02.74-8) ...
> update-initramfs: deferring update (trigger activated)
> Setting up cryptsetup (2:1.4.3-4) ...
> update-initramfs: deferring update (trigger activated)
> Setting up lvm2 (2.02.95-8) ...
> invoke-rc.d: policy-rc.d denied execution of start.
> update-initramfs: deferring update (trigger activated)
> Processing triggers for initramfs-tools ...
> update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae
> cryptsetup: WARNING: could not determine root device from /etc/fstab
> setupcon is missing. Please install the 'console-setup' package.
> W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
> W: mdadm: no arrays defined in configuration file.
> Processing triggers for resolvconf ...
> E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/perl/perl_5.14.2-21+deb7u2_i386.deb: 500  Connection timeout
>                                          
1858,1862c2231,2465
< *** update-locale: Error: invalid locale settings:  LANGUAGE=en_US:en LANG=en_US.UTF-8
< + exit 1
< + RC=1
< + umount /mnt/debootstrap.3127/dev
< + eend 1
---
> + stage default_locales done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage timezone
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/timezone
> + echo '   Executing stage timezone'
>    Executing stage timezone
> + return 0
> + timezone
> + '[' -n Europe/Vienna ']'
> + echo 'Adjusting /etc/localtime'
> Adjusting /etc/localtime
> + ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime
> + stage timezone done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage fstab
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/fstab
> + echo '   Executing stage fstab'
>    Executing stage fstab
> + return 0
> + fstab
> + '[' '!' -f /etc/fstab ']'
> + grep -q UNCONFIGURED /etc/fstab
> + createfstab
> + echo 'Setting up /etc/fstab'
> Setting up /etc/fstab
> + '[' -n 97354d78-56a2-48b9-9cf1-2d4313522237 ']'
> + echo '/dev/disk/by-uuid/97354d78-56a2-48b9-9cf1-2d4313522237 /  auto    defaults,errors=remount-ro 0   1'
> + cat
> + stage fstab done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage hostname
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/hostname
> + echo '   Executing stage hostname'
>    Executing stage hostname
> + return 0
> + hostname
> + '[' -n host ']'
> + echo 'Setting hostname to host.'
> Setting hostname to host.
> + echo host
> + '[' -r /etc/postfix/main.cf ']'
> + sed -i s/grml/host/g /etc/postfix/main.cf
> + sed -i 's/^inet_interfaces = .*/inet_interfaces = loopback-only/' /etc/postfix/main.cf
> + grep -q inet_interfaces /etc/postfix/main.cf
> + '[' -r /etc/mailname ']'
> + stage hostname done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage initrd
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/initrd
> + echo '   Executing stage initrd'
>    Executing stage initrd
> + return 0
> + initrd
> ++ head -1
> ++ ls -1 /boot/vmlinuz-3.2.0-4-686-pae
> + KERNELIMG=/boot/vmlinuz-3.2.0-4-686-pae
> + '[' -z /boot/vmlinuz-3.2.0-4-686-pae ']'
> + KERNELVER=3.2.0-4-686-pae
> + '[' -n yes ']'
> + echo 'Generating initrd.'
> Generating initrd.
> + update-initramfs -c -t -k 3.2.0-4-686-pae
> update-initramfs: Generating /boot/initrd.img-3.2.0-4-686-pae
> setupcon is missing. Please install the 'console-setup' package.
> W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
> W: mdadm: no arrays defined in configuration file.
> + stage initrd done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage grub_install
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/grub_install
> + echo '   Executing stage grub_install'
>    Executing stage grub_install
> + return 0
> + grub_install
> + '[' -z '' ']'
> + echo 'Notice: $GRUB not defined, will not install grub inside chroot at this stage.'
> Notice: $GRUB not defined, will not install grub inside chroot at this stage.
> + return 0
> + stage grub_install done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage passwords
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/passwords
> + echo '   Executing stage passwords'
>    Executing stage passwords
> + return 0
> + passwords
> + '[' -n '' ']'
> + echo 'Activating shadow passwords.'
> Activating shadow passwords.
> + shadowconfig on
> Shadow passwords are now on.
> + CHPASSWD_OPTION=
> + grep -q -- -m,
> + chpasswd --help
> + CHPASSWD_OPTION=-m
> + '[' -n changeme ']'
> + chpasswd -m
> + echo root:changeme
> + export ROOTPASSWORD=
> + ROOTPASSWORD=
> + stage passwords done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage custom_scripts
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/custom_scripts
> + echo '   Executing stage custom_scripts'
>    Executing stage custom_scripts
> + return 0
> + custom_scripts
> + '[' -d /etc/debootstrap/chroot-scripts/ ']'
> + return 0
> + stage custom_scripts done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage upgrade_system
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/upgrade_system
> + echo '   Executing stage upgrade_system'
>    Executing stage upgrade_system
> + return 0
> + upgrade_system
> + '[' yes = yes ']'
> + echo 'Running update + upgrade'
> Running update + upgrade
> + aptitude update
> Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1655 B]
> Get: 2 http://ftp.us.debian.org wheezy Release [168 kB]
> Get: 3 http://ftp.us.debian.org wheezy/main i386 Packages [5858 kB]
> Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
> Fetched 9874 kB in 4s (2346 kB/s)                       
>                             
> + DEBIAN_FRONTEND=noninteractive
> + aptitude -y safe-upgrade
> No packages will be installed, upgraded, or removed.
> 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B of archives. After unpacking 0 B will be used.
>                                          
> + stage upgrade_system done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage remove_apt_cache
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/remove_apt_cache
> + echo '   Executing stage remove_apt_cache'
>    Executing stage remove_apt_cache
> + return 0
> + remove_apt_cache
> + '[' yes = yes ']'
> + echo 'Cleaning apt cache.'
> Cleaning apt cache.
> + apt-get clean
> + stage remove_apt_cache done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage services
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/services
> + echo '   Executing stage services'
>    Executing stage services
> + return 0
> + services
> + for service in ssh mdadm mdadm-raid
> + '[' -x /etc/init.d/ssh ']'
> + /etc/init.d/ssh stop
> [ ok ] Stopping OpenBSD Secure Shell server: sshd.
> + for service in ssh mdadm mdadm-raid
> + '[' -x /etc/init.d/mdadm ']'
> + /etc/init.d/mdadm stop
> + for service in ssh mdadm mdadm-raid
> + '[' -x /etc/init.d/mdadm-raid ']'
> + /etc/init.d/mdadm-raid stop
> + stage services done
> + '[' -n done ']'
> + echo done
> + return 0
> + for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
> + stage remove_chrootmirror
> + '[' -n '' ']'
> + grep -q done /etc/debootstrap/stages/remove_chrootmirror
> + echo '   Executing stage remove_chrootmirror'
>    Executing stage remove_chrootmirror
> + return 0
> + remove_chrootmirror
> + '[' -n yes ']'
> + echo 'KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage.'
> KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage.
> + return
> + stage remove_chrootmirror done
> + '[' -n done ']'
> + echo done
> + return 0
> + finalize
> + rm -f /etc/debootstrap/variables
> + '[' -n 1 ']'
> + rm -f /usr/sbin/policy-rc.d
> + umount /proc
> + echo 'Finished chroot installation, exiting.'
> Finished chroot installation, exiting.
> + exit 0
> + RC=0
> + umount /mnt/debootstrap.20659/dev
> + eend 0
1864c2467
< + local retval=1
---
> + local retval=0
1866,1870c2469,2471
< + '[' 1 -gt 0 ']'
< + printf ' -> Failed (rc=1)\n'
<  -> Failed (rc=1)
< + return 1
< + grep -q GRML_CHROOT_SCRIPT_MARKER /mnt/debootstrap.3127/bin/chroot-script
---
> + '[' 0 -gt 0 ']'
> + return 0
> + grep -q GRML_CHROOT_SCRIPT_MARKER /mnt/debootstrap.20659/bin/chroot-script
1882c2483
< + rm -f /mnt/debootstrap.3127/bin/chroot-script
---
> + rm -f /mnt/debootstrap.20659/bin/chroot-script
1923c2524
< + '[' -r /mnt/debootstrap.3127//etc/debootstrap/install_notes ']'
---
> + '[' -r /mnt/debootstrap.20659//etc/debootstrap/install_notes ']'
1925c2526
< + grep -q /mnt/debootstrap.3127 /proc/mounts
---
> + grep -q /mnt/debootstrap.20659 /proc/mounts
1927c2528
< + einfo 'Unmount /mnt/debootstrap.3127'
---
> + einfo 'Unmount /mnt/debootstrap.20659'
1929c2530
< + einfon 'Unmount /mnt/debootstrap.3127\n'
---
> + einfon 'Unmount /mnt/debootstrap.20659\n'
1933,1934c2534,2535
< + printf ' * Unmount /mnt/debootstrap.3127\n'
<  * Unmount /mnt/debootstrap.3127
---
> + printf ' * Unmount /mnt/debootstrap.20659\n'
>  * Unmount /mnt/debootstrap.20659
1938,1942c2539,2540
< + umount /mnt/debootstrap.3127
< umount: /mnt/debootstrap.3127: device is busy.
<         (In some cases useful info about processes that use
<          the device is found by lsof(8) or fuser(1))
< + eend 1
---
> + umount /mnt/debootstrap.20659
> + eend 0
1944c2542
< + local retval=1
---
> + local retval=0
1946,1950c2544,2546
< + '[' 1 -gt 0 ']'
< + printf ' -> Failed (rc=1)\n'
<  -> Failed (rc=1)
< + return 1
< + bailout 2 umount_chroot
---
> + '[' 0 -gt 0 ']'
> + return 0
> + stage umount_chroot done
1952c2548,2553
< + cleanup
---
> + '[' -n done ']'
> + echo done
> + return 0
> + rm -f /var/cache/grml-debootstrap/stages_test.raw/umount_chroot
> + for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
> + stage finalize_vm
1954,1955c2555,2557
< + '[' -n /var/cache/grml-debootstrap/variables_test.raw ']'
< + einfo 'Removing /var/cache/grml-debootstrap/variables_test.raw'
---
> + '[' -n '' ']'
> + grep -q done /var/cache/grml-debootstrap/stages_test.raw/finalize_vm
> + finalize_vm
1957c2559,2563
< + einfon 'Removing /var/cache/grml-debootstrap/variables_test.raw\n'
---
> + '[' -z 1 ']'
> + mount /dev/mapper/loop0p1 /mnt/debootstrap.20659
> + einfo 'Installing Grub as bootloader.'
> + trap error_handler ERR
> + einfon 'Installing Grub as bootloader.\n'
1961,1962c2567,2568
< + printf ' * Removing /var/cache/grml-debootstrap/variables_test.raw\n'
<  * Removing /var/cache/grml-debootstrap/variables_test.raw
---
> + printf ' * Installing Grub as bootloader.\n'
>  * Installing Grub as bootloader.
1966,1967c2572,2584
< + rm /var/cache/grml-debootstrap/variables_test.raw
< + eend 0
---
> + mount -t proc none /mnt/debootstrap.20659/proc
> + mount -t sysfs none /mnt/debootstrap.20659/sys
> + mount --bind /dev /mnt/debootstrap.20659/dev
> + mkdir -p /mnt/debootstrap.20659/boot/grub
> + '[' -d /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ ']'
> + cp /mnt/debootstrap.20659/usr/lib/grub/i386-pc/915resolution.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/acpi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/adler32.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/affs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/afs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/afs_be.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/aout.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/at_keyboard.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ata.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ata_pthru.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/befs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/befs_be.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/biosdisk.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/bitmap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/bitmap_scale.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/blocklist.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/boot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/boot.mod /mnt/debootstrap.
20659/usr/lib/grub/i386-pc/bsd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/btrfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/bufio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cat.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cdboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/chain.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cmostest.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cmp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/command.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/config.h /mnt/debootstrap.20659/usr/lib/grub/i386-pc/configfile.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cpio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cpuid.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/crypto.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/crypto.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/cs5536.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/date.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/datehook.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/datetime.mod /
mnt/debootstrap.20659/usr/lib/grub/i386-pc/diskboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/dm_nv.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/drivemap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/echo.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/efiemu.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/efiemu32.o /mnt/debootstrap.20659/usr/lib/grub/i386-pc/efiemu64.o /mnt/debootstrap.20659/usr/lib/grub/i386-pc/elf.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/example_functional_test.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ext2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/extcmd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/fat.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/font.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/fs.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/fshelp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/functional_test.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/g2hdr.bin /mnt/debootstrap.20659/usr/lib/grub/i386-pc/g2hdr.img /mnt/debootstrap.20659/
usr/lib/grub/i386-pc/g2ldr.mbr /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_arcfour.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_blowfish.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_camellia.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_cast5.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_crc.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_des.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_md4.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_md5.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_rfc2268.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_rijndael.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_rmd160.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_seed.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_serpent.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_sha1.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_sha256.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_sha512.mod /mnt/debootstrap.20659/usr/lib/grub/i386-
pc/gcry_tiger.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_twofish.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gcry_whirlpool.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gettext.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gfxmenu.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gfxterm.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gptsync.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grldr.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-install /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-mknetdir /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-ntldr-img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/grub-setup /mnt/debootstrap.20659/usr/lib/grub/i386-pc/gzio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/halt.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hashsum.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hdparm.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hello.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/help.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/
hexdump.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/hfsplus.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/iorw.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/iso9660.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/jfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/jpeg.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/kernel.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/keylayouts.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/keystatus.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/legacycfg.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/linux.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/linux16.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lnxboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/loadenv.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/loopback.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ls.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lsacpi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lsapm.mod /mnt/debootstrap.
20659/usr/lib/grub/i386-pc/lsmmap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lspci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lvm.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/lzopio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/mdraid09.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/mdraid1x.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/memdisk.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/memrw.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/minicmd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/minix.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/minix2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/mmap.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/moddep.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/msdospart.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/multiboot.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/multiboot2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/nilfs2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/normal.mod /mnt/debootstrap.20659/usr/lib/grub/i386-
pc/ntfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ntfscomp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ntldr.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ohci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_acorn.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_amiga.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_apple.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_bsd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_gpt.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_msdos.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_sun.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/part_sunpc.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/partmap.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/parttool.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/parttool.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/password.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/password_pbkdf2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pbkdf2.mod /mnt/debootstrap.20659/usr/lib/grub/
i386-pc/pci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/play.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/png.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/probe.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pxe.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pxeboot.img /mnt/debootstrap.20659/usr/lib/grub/i386-pc/pxecmd.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/raid.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/raid5rec.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/raid6rec.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/read.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/reboot.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/regexp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/reiserfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/relocator.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/scsi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/search.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/search_fs_file.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/search_fs_uuid.mod /mnt/
debootstrap.20659/usr/lib/grub/i386-pc/search_label.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/sendkey.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/serial.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/setjmp.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/setpci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/sfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/sleep.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/squash4.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/tar.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/terminal.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/terminal.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/terminfo.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/test.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/test_blockarg.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/testload.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/tga.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/trig.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/true.mod /mnt/debootstrap.20659/usr/lib/
grub/i386-pc/udf.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ufs1.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/ufs2.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/uhci.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usb.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usb_keyboard.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbms.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbserial_common.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbserial_ftdi.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbserial_pl2303.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/usbtest.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/vbe.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/vga.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/vga_text.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video.lst /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video_bochs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/video_cirrus.mod /mnt/debootstrap.20659/usr/lib/grub/
i386-pc/video_fb.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/videoinfo.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/videotest.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xnu.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xnu_uuid.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/xzio.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/zfs.mod /mnt/debootstrap.20659/usr/lib/grub/i386-pc/zfsinfo.mod /mnt/debootstrap.20659/boot/grub/
> + chroot /mnt/debootstrap.20659 grub-mkimage -O i386-pc -p '(hd0,msdos1)/boot/grub' -o /tmp/core.img biosdisk part_msdos ext2
> + dd if=/mnt/debootstrap.20659/tmp/core.img of=./test.raw conv=notrunc seek=4
> 50+1 records in
> 50+1 records out
> 25958 bytes (26 kB) copied, 0.00685482 s, 3.8 MB/s
> + rm -f /mnt/debootstrap.20659/tmp/core.img
> + einfo 'Updating grub configuration file.'
1969,1971c2586,2592
< + local retval=0
< + shift
< + '[' 0 -gt 0 ']'
---
> + einfon 'Updating grub configuration file.\n'
> + trap error_handler ERR
> + '[' '' '!=' yes ']'
> + '[' einfon = ebegin ']'
> + printf ' * Updating grub configuration file.\n'
>  * Updating grub configuration file.
> + LAST_E_CMD=einfon
1973,1974c2594,2607
< + '[' -n /var/cache/grml-debootstrap/stages_test.raw ']'
< + einfo 'Removing /var/cache/grml-debootstrap/stages_test.raw'
---
> + return 0
> + '[' -n '' ']'
> + chroot /mnt/debootstrap.20659 update-grub
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
> Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
> /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
> /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  Check your device.map.
>   No volume groups found
> done
> + umount /mnt/debootstrap.20659/proc
> + umount /mnt/debootstrap.20659/sys
> + umount /mnt/debootstrap.20659/dev
> + einfo 'Adjusting grub.cfg for successful boot sequence.'
1976c2609
< + einfon 'Removing /var/cache/grml-debootstrap/stages_test.raw\n'
---
> + einfon 'Adjusting grub.cfg for successful boot sequence.\n'
1980,1981c2613,2614
< + printf ' * Removing /var/cache/grml-debootstrap/stages_test.raw\n'
<  * Removing /var/cache/grml-debootstrap/stages_test.raw
---
> + printf ' * Adjusting grub.cfg for successful boot sequence.\n'
>  * Adjusting grub.cfg for successful boot sequence.
1985,1986c2618,2622
< + rmdir /var/cache/grml-debootstrap/stages_test.raw
< + eend 0
---
> + sed -i 's;set root=.*;set root='\''(hd0,msdos1)'\'';' /mnt/debootstrap.20659/boot/grub/grub.cfg
> + sed -i 's;root=[^ ]\+;root=/dev/sda1;' /mnt/debootstrap.20659/boot/grub/grub.cfg
> + umount /mnt/debootstrap.20659
> + kpartx -d ./test.raw
> + stage finalize_vm done
1988,1990c2624,2625
< + local retval=0
< + shift
< + '[' 0 -gt 0 ']'
---
> + '[' -n done ']'
> + echo done
1992,2081c2627,2630
< + grep -q '/mnt/debootstrap\.'
< + echo /mnt/debootstrap.3127
< + rmdir /mnt/debootstrap.3127
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='rmdir "$MNTPOINT" 2> /dev/null'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + '[' -n /mnt/debootstrap.3127 ']'
< + grep -q /mnt/debootstrap.3127 /proc/mounts
< + '[' -x /mnt/debootstrap.3127/etc/init.d/ssh ']'
< + '[' -x /mnt/debootstrap.3127/etc/init.d/mdadm ']'
< + '[' -x /mnt/debootstrap.3127/bin/umount ']'
< + chroot /mnt/debootstrap.3127 umount -a
< + for ARG in /sys /proc /proc /dev /dev
< + '[' -x /mnt/debootstrap.3127/bin/umount ']'
< + chroot /mnt/debootstrap.3127 umount /sys
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + umount /mnt/debootstrap.3127//sys
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + for ARG in /sys /proc /proc /dev /dev
< + '[' -x /mnt/debootstrap.3127/bin/umount ']'
< + chroot /mnt/debootstrap.3127 umount /proc
< + umount /mnt/debootstrap.3127//proc
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + for ARG in /sys /proc /proc /dev /dev
< + '[' -x /mnt/debootstrap.3127/bin/umount ']'
< + chroot /mnt/debootstrap.3127 umount /proc
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + umount /mnt/debootstrap.3127//proc
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + for ARG in /sys /proc /proc /dev /dev
< + '[' -x /mnt/debootstrap.3127/bin/umount ']'
< + chroot /mnt/debootstrap.3127 umount /dev
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + umount /mnt/debootstrap.3127//dev
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + for ARG in /sys /proc /proc /dev /dev
< + '[' -x /mnt/debootstrap.3127/bin/umount ']'
< + chroot /mnt/debootstrap.3127 umount /dev
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='chroot "$MNTPOINT" umount $ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + umount /mnt/debootstrap.3127//dev
< ++ error_handler
< ++ last_exit_code=1
< ++ last_bash_command='umount "$MNTPOINT"/$ARG > /dev/null 2>&1'
< ++ '[' no = yes ']'
< ++ '[' '!' no = yes ']'
< ++ return
< + '[' -n '' ']'
---
> + rm -f /var/cache/grml-debootstrap/stages_test.raw/finalize_vm
> + for i in prepare_vm mkfs tunefs mount_target debootstrap_system preparechroot execute_pre_scripts chrootscript execute_scripts umount_chroot finalize_vm fscktool
> + stage fscktool
> + trap error_handler ERR
2083c2632,2633
< + einfo 'Unmounting /mnt/debootstrap.3127'
---
> + grep -q done /var/cache/grml-debootstrap/stages_test.raw/fscktool
> + fscktool
2085c2635,2638
< + einfon 'Unmounting /mnt/debootstrap.3127\n'
---
> + '[' -n 1 ']'
> + einfo 'Skipping filesystem check because we deploy a virtual machine.'
> + trap error_handler ERR
> + einfon 'Skipping filesystem check because we deploy a virtual machine.\n'
2089,2090c2642,2643
< + printf ' * Unmounting /mnt/debootstrap.3127\n'
<  * Unmounting /mnt/debootstrap.3127
---
> + printf ' * Skipping filesystem check because we deploy a virtual machine.\n'
>  * Skipping filesystem check because we deploy a virtual machine.
2094c2647,2668
< + umount /mnt/debootstrap.3127
---
> + return 0
> + stage fscktool done
> + trap error_handler ERR
> + '[' -n done ']'
> + echo done
> + return 0
> + rm -f /var/cache/grml-debootstrap/stages_test.raw/fscktool
> + cleanup
> + trap error_handler ERR
> + '[' -n /var/cache/grml-debootstrap/variables_test.raw ']'
> + einfo 'Removing /var/cache/grml-debootstrap/variables_test.raw'
> + trap error_handler ERR
> + einfon 'Removing /var/cache/grml-debootstrap/variables_test.raw\n'
> + trap error_handler ERR
> + '[' '' '!=' yes ']'
> + '[' einfon = ebegin ']'
> + printf ' * Removing /var/cache/grml-debootstrap/variables_test.raw\n'
>  * Removing /var/cache/grml-debootstrap/variables_test.raw
> + LAST_E_CMD=einfon
> + return 0
> + return 0
> + rm /var/cache/grml-debootstrap/variables_test.raw
2102,2108c2676
< + echo -n 'Removing stages directory /var/cache/grml-debootstrap/stages_test.raw: '
< Removing stages directory /var/cache/grml-debootstrap/stages_test.raw: + rm -rf /var/cache/grml-debootstrap/stages_test.raw
< + echo done
< done
< + grep -q '/mnt/debootstrap\.'
< + echo /mnt/debootstrap.3127
< + einfo 'Removing directory /mnt/debootstrap.3127'
---
> + einfo 'Removing /var/cache/grml-debootstrap/stages_test.raw'
2110c2678
< + einfon 'Removing directory /mnt/debootstrap.3127\n'
---
> + einfon 'Removing /var/cache/grml-debootstrap/stages_test.raw\n'
2114,2115c2682,2683
< + printf ' * Removing directory /mnt/debootstrap.3127\n'
<  * Removing directory /mnt/debootstrap.3127
---
> + printf ' * Removing /var/cache/grml-debootstrap/stages_test.raw\n'
>  * Removing /var/cache/grml-debootstrap/stages_test.raw
2119c2687
< + rmdir /mnt/debootstrap.3127
---
> + rmdir /var/cache/grml-debootstrap/stages_test.raw
2125a2694,2698
> + grep -q '/mnt/debootstrap\.'
> + echo /mnt/debootstrap.20659
> + rmdir /mnt/debootstrap.20659
> + '[' -n /mnt/debootstrap.20659 ']'
> + grep -q /mnt/debootstrap.20659 /proc/mounts
2139d2711
< loop deleted : /dev/loop0
2146,2149c2718,2719
< + '[' -n 2 ']'
< + EXIT=2
< + '[' -n umount_chroot ']'
< + einfo 'Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage'
---
> + '[' -n '' ']'
> + einfo 'Finished execution of grml-debootstrap. Enjoy your Debian system.'
2151c2721
< + einfon 'Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage\n'
---
> + einfon 'Finished execution of grml-debootstrap. Enjoy your Debian system.\n'
2155,2156c2725,2726
< + printf ' * Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage\n'
<  * Notice: remove /var/cache/grml-debootstrap/stages_test.raw/umount_chroot to reexecute the stage
---
> + printf ' * Finished execution of grml-debootstrap. Enjoy your Debian system.\n'
>  * Finished execution of grml-debootstrap. Enjoy your Debian system.
2160c2730,2735
< + exit 2
---
> + eend 0
> + trap error_handler ERR
> + local retval=0
> + shift
> + '[' 0 -gt 0 ']'
> + return 0
hartwork commented 9 years ago

I believe this report needs a re-write if for a realistic chance to ever get fixed.

mika commented 9 years ago

Possibly that's caused by LANGUAGE being set in your environment but grml-debootstrap doesn't reset it. I'll push an according change, unsure whether this really addresses the issue but that's the best I think we can do about it.

mika commented 9 years ago

Ah this still causes an error:

*** update-locale: Error: invalid locale settings:  LANG=en_US.UTF-8 LANGUAGE=en_US:en
 -> Failed (rc=1)
 * Removing chroot-script again
mika commented 9 years ago

Ah, this is of course caused because of:

/usr/sbin/update-locale LANGUAGE="$DEFAULT_LANGUAGE" LANG="$DEFAULT_LOCALES"

with DEFAULT_LANGUAGE being set to en_US:en by default and $DEFAULT_LOCALES being set to en_US.UTF-8 (as reported in the error message as well). I don't think there's good way to fix this for the --debopt "--include=locales" use case though. If you're setting DEFAULT_LANGUAGE + DEFAULT_LOCALES but they aren't available this should reflect in an error and we shouldn't overwrite that and also not ignore that error. I think that's a very special situation and I don't plan to invest too much time into it, if someone comes up with a PR I'd happily accept it though of course.