Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Latest debian:jessie breaks the build #440

Closed
bjaglin opened this issue Jul 23, 2014 · 5 comments
Closed

Latest debian:jessie breaks the build #440

bjaglin opened this issue Jul 23, 2014 · 5 comments

Comments

@bjaglin
Copy link
Contributor

bjaglin commented Jul 23, 2014

It seems that the latest base image (updated via docker-library/official-images@315a69e) prevents the creation of the ISO:

19:40:04 Step 0 : FROM debian:jessie
19:40:04  ---> e37f23ad4689
19:40:04 Step 1 : MAINTAINER Steeve Morin "steeve.morin@gmail.com"
19:40:05  ---> Using cache
19:40:05  ---> ccde1c1ad9a3
19:40:05 Step 2 : RUN apt-get update && apt-get -y install  unzip                         xz-utils                         curl                         bc                         git                         build-essential                         cpio                         gcc-multilib libc6-i386 libc6-dev-i386                         kmod                         squashfs-tools                         genisoimage                         xorriso                         syslinux                         automake                         pkg-config                         p7zip-full
19:40:05  ---> Using cache
19:40:05  ---> 8afb95bc48f4
19:40:05 Step 3 : ENV KERNEL_VERSION  3.15.3
19:40:06  ---> Using cache
19:40:06  ---> 7b3cb774c72e
19:40:06 Step 4 : ENV AUFS_BRANCH     aufs3.15
19:40:06  ---> Using cache
19:40:06  ---> 5fb869e1bd0a
19:40:06 Step 5 : RUN curl --retry 10 https://www.kernel.org/pub/linux/kernel/v3.x/linux-$KERNEL_VERSION.tar.xz | tar -C / -xJ &&     mv /linux-$KERNEL_VERSION /linux-kernel
19:40:06  ---> Using cache
19:40:06  ---> 415da77e91f0
19:40:06 Step 6 : RUN git clone git://git.code.sf.net/p/aufs/aufs3-standalone &&     cd aufs3-standalone &&     git checkout $AUFS_BRANCH &&     cd /linux-kernel &&     for patch in aufs3-kbuild aufs3-base aufs3-mmap aufs3-standalone; do         patch -p1 < /aufs3-standalone/$patch.patch;     done &&     cp -r /aufs3-standalone/Documentation /linux-kernel &&     cp -r /aufs3-standalone/fs /linux-kernel &&     cp -r /aufs3-standalone/include/uapi/linux/aufs_type.h /linux-kernel/include/uapi/linux/
19:40:07  ---> Using cache
19:40:07  ---> d34dfc2190ca
19:40:07 Step 7 : ADD kernel_config /linux-kernel/.config
19:40:07  ---> Using cache
19:40:07  ---> ce775569af2d
19:40:07 Step 8 : RUN jobs=$(nproc);     cd /linux-kernel &&     make -j ${jobs} oldconfig &&     make -j ${jobs} bzImage &&     make -j ${jobs} modules
19:40:07  ---> Using cache
19:40:07  ---> b4f362bdab77
19:40:07 Step 9 : ENV ROOTFS          /rootfs
19:40:08  ---> Using cache
19:40:08  ---> b18cb0ce2d48
19:40:08 Step 10 : ENV VBOX_VERSION    4.3.12
19:40:08  ---> Using cache
19:40:08  ---> b07b3a5b7228
19:40:08 Step 11 : ENV TCL_REPO_BASE   http://tinycorelinux.net/5.x/x86
19:40:08  ---> Using cache
19:40:08  ---> bbc940e99282
19:40:08 Step 12 : ENV TCZ_DEPS        iptables                     iproute2                     openssh openssl-1.0.0                     tar                     gcc_libs                     acpid                     xz liblzma                     git expat2 libiconv libidn libgpg-error libgcrypt libssh2                     nfs-utils tcp_wrappers portmap rpcbind libtirpc                     curl ntpclient
19:40:09  ---> Using cache
19:40:09  ---> b864e74a28c1
19:40:09 Step 13 : RUN mkdir -p $ROOTFS
19:40:09  ---> Using cache
19:40:09  ---> 9a6334acee84
19:40:09 Step 14 : RUN cd /linux-kernel &&     make INSTALL_MOD_PATH=$ROOTFS modules_install firmware_install
19:40:09  ---> Using cache
19:40:09  ---> 07d4ee3f42ed
19:40:09 Step 15 : RUN cd $ROOTFS/lib/modules &&     rm -rf ./*/kernel/sound/* &&     rm -rf ./*/kernel/drivers/gpu/* &&     rm -rf ./*/kernel/drivers/infiniband/* &&     rm -rf ./*/kernel/drivers/isdn/* &&     rm -rf ./*/kernel/drivers/media/* &&     rm -rf ./*/kernel/drivers/staging/lustre/* &&     rm -rf ./*/kernel/drivers/staging/comedi/* &&     rm -rf ./*/kernel/fs/ocfs2/* &&     rm -rf ./*/kernel/net/bluetooth/* &&     rm -rf ./*/kernel/net/mac80211/* &&     rm -rf ./*/kernel/net/wireless/*
19:40:10  ---> Using cache
19:40:10  ---> a80431fc21b7
19:40:10 Step 16 : RUN curl -L ftp://ftp.fr.debian.org/debian/pool/main/libc/libcap2/libcap2_2.22.orig.tar.gz | tar -C / -xz &&     cd /libcap-2.22 &&     sed -i 's/LIBATTR := yes/LIBATTR := no/' Make.Rules &&     sed -i 's/\(^CFLAGS := .*\)/\1 -m32/' Make.Rules &&     make &&     mkdir -p output &&     make prefix=`pwd`/output install &&     mkdir -p $ROOTFS/usr/local/lib &&     cp -av `pwd`/output/lib64/* $ROOTFS/usr/local/lib
19:40:10  ---> Using cache
19:40:10  ---> 27a745f46b5c
19:40:10 Step 17 : RUN cd /linux-kernel &&     make INSTALL_HDR_PATH=/tmp/kheaders headers_install &&     cd / &&     git clone git://git.code.sf.net/p/aufs/aufs-util &&     cd /aufs-util &&     git checkout aufs3.9 &&     CPPFLAGS="-m32 -I/tmp/kheaders/include" CLFAGS=$CPPFLAGS LDFLAGS=$CPPFLAGS make &&     DESTDIR=$ROOTFS make install &&     rm -rf /tmp/kheaders
19:40:10  ---> Using cache
19:40:10  ---> 472d8c807442
19:40:10 Step 18 : RUN mkdir -p /vboxguest &&     cd /vboxguest &&     curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/${VBOX_VERSION}/VBoxGuestAdditions_${VBOX_VERSION}.iso &&     7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' &&     sh VBoxLinuxAdditions.run --noexec --target . &&     mkdir x86 && cd x86 && tar xvjf ../VBoxGuestAdditions-x86.tar.bz2 && cd .. &&     mkdir amd64 && cd amd64 && tar xvjf ../VBoxGuestAdditions-amd64.tar.bz2 && cd .. &&     cd amd64/src/vboxguest-${VBOX_VERSION} && KERN_DIR=/linux-kernel/ make && cd ../../.. &&     cp amd64/src/vboxguest-${VBOX_VERSION}/*.ko $ROOTFS/lib/modules/$KERNEL_VERSION-tinycore64 &&     mkdir -p $ROOTFS/sbin && cp x86/lib/VBoxGuestAdditions/mount.vboxsf $ROOTFS/sbin/
19:40:10  ---> Using cache
19:40:10  ---> c1bc08c83b9a
19:40:10 Step 19 : RUN curl -L -o /tcl_rootfs.gz $TCL_REPO_BASE/release/distribution_files/rootfs.gz
19:40:11  ---> Using cache
19:40:11  ---> 269faba86141
19:40:11 Step 20 : RUN for dep in $TCZ_DEPS; do  echo "Download $TCL_REPO_BASE/tcz/$dep.tcz" &&        curl -L -o /tmp/$dep.tcz $TCL_REPO_BASE/tcz/$dep.tcz &&         unsquashfs -f -d $ROOTFS /tmp/$dep.tcz &&         rm -f /tmp/$dep.tcz ;    done
19:40:11  ---> Using cache
19:40:11  ---> c8a3c86962f0
19:40:11 Step 21 : RUN depmod -a -b $ROOTFS $KERNEL_VERSION-tinycore64
19:40:11  ---> Using cache
19:40:11  ---> abe212da3567
19:40:11 Step 22 : ADD rootfs/isolinux /isolinux
19:40:12  ---> Using cache
19:40:12  ---> 3d10a712018b
19:40:12 Step 23 : ADD rootfs/make_iso.sh /
19:40:12  ---> Using cache
19:40:12  ---> 5075e6fa7068
19:40:12 Step 24 : ADD rootfs/rootfs $ROOTFS
19:40:13  ---> Using cache
19:40:13  ---> 279a7a08a873
19:40:13 Step 25 : RUN find $ROOTFS/etc/rc.d/ -exec chmod +x {} \; &&     find $ROOTFS/usr/local/etc/init.d/ -exec chmod +x {} \;
19:40:13  ---> Using cache
19:40:13  ---> c46856e9e170
19:40:13 Step 26 : RUN curl -L -o $ROOTFS/usr/local/bin/docker https://get.docker.io/builds/Linux/x86_64/docker-latest &&     chmod +x $ROOTFS/usr/local/bin/docker &&     ( $ROOTFS/usr/local/bin/docker version || true )
19:40:13  ---> Using cache
19:40:13  ---> 40f5b4edbe83
19:40:13 Step 27 : ADD . /gitrepo
19:40:21  ---> ff52d0dcfcd7
19:40:21 Removing intermediate container 3a4998425706
19:40:21 Step 28 : RUN cd /gitrepo &&     GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) &&     GITSHA1=$(git rev-parse --short HEAD) &&     DATE=$(date) &&     echo "${GIT_BRANCH} : ${GITSHA1} - ${DATE}" > $ROOTFS/etc/boot2docker
19:40:22  ---> Running in 888515567fe3
19:40:29  ---> fc950a831ae8
19:40:29 Removing intermediate container 888515567fe3
19:40:29 Step 29 : RUN cd $ROOTFS && zcat /tcl_rootfs.gz | cpio -f -i -H newc -d --no-absolute-filenames
19:40:30  ---> Running in 6bc1ca47f059
19:40:30 �[91mcpio: usr/share/udhcpc/default.script not created: newer or same age version exists
19:40:30 �[0m�[91m10011 blocks
19:40:30 �[0m ---> 2f4e51092907
19:40:37 Removing intermediate container 6bc1ca47f059
19:40:37 Step 30 : RUN mv $ROOTFS/usr/local/etc/motd $ROOTFS/etc/motd
19:40:38  ---> Running in 9d1498f1daa4
19:40:45  ---> 0ca28c2c65da
19:40:45 Removing intermediate container 9d1498f1daa4
19:40:45 Step 31 : RUN mv $ROOTFS/bootsync.sh $ROOTFS/opt/bootsync.sh
19:40:46  ---> Running in 5b7ad415e87e
19:40:53  ---> 275002e80e44
19:40:53 Removing intermediate container 5b7ad415e87e
19:40:53 Step 32 : RUN chmod +x $ROOTFS/opt/bootsync.sh
19:40:54  ---> Running in a0f144032fe2
19:41:01  ---> 700273a06248
19:41:01 Removing intermediate container a0f144032fe2
19:41:01 Step 33 : RUN mv $ROOTFS/shutdown.sh $ROOTFS/opt/shutdown.sh
19:41:02  ---> Running in 1fbe1a84a474
19:41:09  ---> a10bcfb697ee
19:41:09 Removing intermediate container 1fbe1a84a474
19:41:09 Step 34 : RUN chmod +x $ROOTFS/opt/shutdown.sh
19:41:10  ---> Running in 1547be911b45
19:41:17  ---> 2bc86db8fbe1
19:41:17 Removing intermediate container 1547be911b45
19:41:17 Step 35 : RUN echo "ttyS0:2345:respawn:/sbin/getty -l /usr/local/bin/autologin 9600 ttyS0 vt100" >> $ROOTFS/etc/inittab
19:41:18  ---> Running in 69bbe5186cce
19:41:25  ---> 0569d102e631
19:41:25 Removing intermediate container 69bbe5186cce
19:41:25 Step 36 : RUN echo "#!/bin/sh" > $ROOTFS/usr/local/bin/autologin &&     echo "/bin/login -f docker" >> $ROOTFS/usr/local/bin/autologin &&     chmod 755 $ROOTFS/usr/local/bin/autologin
19:41:26  ---> Running in 497f8e6903c1
19:41:33  ---> e82d3fa7d2f1
19:41:33 Removing intermediate container 497f8e6903c1
19:41:33 Step 37 : RUN /make_iso.sh
19:41:34  ---> Running in b6d6b4330f5e
19:41:34 test -x "/opt/shutdown.sh" && /opt/shutdown.sh
19:41:34 '/linux-kernel/arch/x86_64/boot/bzImage' -> '/tmp/iso/boot/vmlinuz64'
19:41:34 '/isolinux' -> '/tmp/iso/boot/isolinux'
19:41:34 '/isolinux/boot.cat' -> '/tmp/iso/boot/isolinux/boot.cat'
19:41:34 '/isolinux/boot.msg' -> '/tmp/iso/boot/isolinux/boot.msg'
19:41:34 '/isolinux/f2' -> '/tmp/iso/boot/isolinux/f2'
19:41:34 '/isolinux/f3' -> '/tmp/iso/boot/isolinux/f3'
19:41:34 '/isolinux/f4' -> '/tmp/iso/boot/isolinux/f4'
19:41:34 '/isolinux/isolinux.bin' -> '/tmp/iso/boot/isolinux/isolinux.bin'
19:41:34 '/isolinux/isolinux.cfg' -> '/tmp/iso/boot/isolinux/isolinux.cfg'
19:42:34 �[91m411593 blocks
19:42:34 �[0m/
19:42:34 '/rootfs/etc/version' -> '/tmp/iso/version'
19:42:34 �[91mxorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.
19:42:34 
19:42:34 �[0m�[91mDrive current: -outdev 'stdio:/boot2docker.iso'
19:42:34 Media current: stdio file, overwriteable
19:42:34 Media status : is blank
19:42:34 Media summary: 0 sessions, 0 data blocks, 0 data, 42.6g free
19:42:34 �[0m�[91mxorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
19:42:34 �[0m�[91mAdded to ISO image: directory '/'='/tmp/iso'
19:42:34 xorriso : UPDATE : 12 files added in 1 seconds
19:42:34 �[0m�[91mxorriso : FAILURE : Given path does not exist on disk: -boot_image system_area='/usr/lib/syslinux/isohdpfx.bin'

The base that seems to cause the issue:

bjaglin@bob:~$ docker history debian:jessie
IMAGE               CREATED             CREATED BY                                      SIZE
e37f23ad4689        44 hours ago        /bin/sh -c #(nop) CMD [/bin/bash]               0 B
3bc42429e197        44 hours ago        /bin/sh -c #(nop) ADD file:132288af9d1c5d074e   89.59 MB
511136ea3c5a        13 months ago                                                       0 B

Note that this is a customized build, but with only minor tweaks in some of the rootfs files - parameter changes at "best", not in any way any system change.

@bjaglin
Copy link
Contributor Author

bjaglin commented Jul 23, 2014

According to https://lists.debian.org/debian-live/2014/06/msg00090.html, the location of that file has changed, from /usr/lib/syslinux/isohdppx.bin to /usr/lib/syslinux/mbr/isohdppx.bin, and I verified this was the case. PR coming up.

@SvenDowideit
Copy link
Contributor

oh, and @bjaglin nice work - thank you

@tianon
Copy link
Contributor

tianon commented Jul 23, 2014

Maybe we should switch over to Wheezy instead until the freeze for Jessie, so we don't run into this again until then?

@SvenDowideit
Copy link
Contributor

I'm switching to wheezy for 1.1.2 -

@bjaglin
Copy link
Contributor Author

bjaglin commented Jul 29, 2014

Fixed by 5026fee

@bjaglin bjaglin closed this as completed Jul 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants