Bug#598126: FTBFS on !linux
Hello Joey, On Sun, Sep 26, 2010 at 8:55 PM, Joey Hess wrote: > Otavio Salvador wrote: >> On Sun, Sep 26, 2010 at 6:36 PM, Joey Hess wrote: >> > Otavio Salvador wrote: >> >> This looks to be the best alternative IMO. We need to do that for >> >> /proc and /sys so /dev won't be a problem et all. >> > >> > Except that eg. pbuilder will mount /proc, but not /dev when using the >> > chroot. >> >> Yes but should be trivial to fix. > > Chasing down the issue in everything that uses debootstrap seems hard to > me.. All those tools are going to require the same fixes when adding support for kFreeBSD and Hurd so the right time to change it looks to be just after Squeeze. -- Otavio Salvador O.S. Systems E-mail: ota...@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikdvzoa4odt60whnoqiddn8dhcgxerkm2pmq...@mail.gmail.com
Bug#598126: FTBFS on !linux
Otavio Salvador wrote: > On Sun, Sep 26, 2010 at 6:36 PM, Joey Hess wrote: > > Otavio Salvador wrote: > >> This looks to be the best alternative IMO. We need to do that for > >> /proc and /sys so /dev won't be a problem et all. > > > > Except that eg. pbuilder will mount /proc, but not /dev when using the > > chroot. > > Yes but should be trivial to fix. Chasing down the issue in everything that uses debootstrap seems hard to me.. -- see shy jo signature.asc Description: Digital signature
Bug#598126: FTBFS on !linux
On Sun, Sep 26, 2010 at 6:36 PM, Joey Hess wrote: > Otavio Salvador wrote: >> This looks to be the best alternative IMO. We need to do that for >> /proc and /sys so /dev won't be a problem et all. > > Except that eg. pbuilder will mount /proc, but not /dev when using the > chroot. Yes but should be trivial to fix. -- Otavio Salvador O.S. Systems E-mail: ota...@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiksmi1vykbkcytke8z2ezsssgzceqbjdvf1p...@mail.gmail.com
Bug#598126: FTBFS on !linux
Otavio Salvador wrote: > Hello Joey, > > On Sun, Sep 26, 2010 at 2:09 PM, Joey Hess wrote: > > Alternatively, debootstrap could stop including the device tarball, > > and bind mounting /dev. (It already does something similar on kfreebsd.) > > However, this would mean a debootstrapped chroot would need to have its /dev > > remounted after reboot (like its /proc and /sys already need to be). > > This looks to be the best alternative IMO. We need to do that for > /proc and /sys so /dev won't be a problem et all. Except that eg. pbuilder will mount /proc, but not /dev when using the chroot. -- see shy jo signature.asc Description: Digital signature
Bug#598126: FTBFS on !linux
Hello Joey, On Sun, Sep 26, 2010 at 2:09 PM, Joey Hess wrote: > Alternatively, debootstrap could stop including the device tarball, > and bind mounting /dev. (It already does something similar on kfreebsd.) > However, this would mean a debootstrapped chroot would need to have its /dev > remounted after reboot (like its /proc and /sys already need to be). This looks to be the best alternative IMO. We need to do that for /proc and /sys so /dev won't be a problem et all. -- Otavio Salvador O.S. Systems E-mail: ota...@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikyc_gsp=snt8rt2br6yvkag70vv9kjct-ou...@mail.gmail.com
Bug#598126: FTBFS on !linux
Joey Hess wrote: > Assuming we want debootstrap to remain an arch-all package, which is > convenient as it allows updating debootstrap very quickly, we need > some way to build the linux-specific devices.tar.gz in a cross-platform way. > One way would be to add a switch or environment variable that made MAKEDEV > skip the non-Linux system check. > > Alternatively, debootstrap could stop including the device tarball, > and bind mounting /dev. (It already does something similar on kfreebsd.) > However, this would mean a debootstrapped chroot would need to have its /dev > remounted after reboot (like its /proc and /sys already need to be). Another option would be for debootstrap to drop devices.tar.gz and instead install into the chroot the makedev package and run MAKEDEV if /dev doesn't already contain console, stdin, null, and zero. makedev is extra priority, but it should be ok for it to be present in debootstrapped chroots. (And the admin can always remove it if desired.) If anyone expects to be able to take a netinst cd and manually run debootstrap against that, that would break it, as the netinst won't have makedev. (But they could bind mount /dev the way d-i does). -- see shy jo signature.asc Description: Digital signature
Bug#598126: FTBFS on !linux
Package: debootstrap Version: 1.0.25 Severity: normal debootstrap cannot currently be built on debian kfreebsd or hurd. While build dep makedev is installable there, it is a no-op. So, the devices.tar.gz creation code will make an empty tarball, and a check I've just added will cause the build to fail. (cd dev && /dev/MAKEDEV std ptmx fd consoleonly) Results undefined on non-Linux systems, aborting MAKEDEV invocation. tar cf - dev | gzip -9 >devices.tar.gz ** devices.tar.gz is empty! make: *** [devices.tar.gz] Error 1 (Note: Above dummied up. I have not really been building debootstrap on freebsd, if anyone was curious about that.) Assuming we want debootstrap to remain an arch-all package, which is convenient as it allows updating debootstrap very quickly, we need some way to build the linux-specific devices.tar.gz in a cross-platform way. One way would be to add a switch or environment variable that made MAKEDEV skip the non-Linux system check. Alternatively, debootstrap could stop including the device tarball, and bind mounting /dev. (It already does something similar on kfreebsd.) However, this would mean a debootstrapped chroot would need to have its /dev remounted after reboot (like its /proc and /sys already need to be). -- see shy jo signature.asc Description: Digital signature