Bug#539744: chroot to lenny /target in debootstrap segfaults
reassign 539744 base-installer
tags 539744 pending
thanks
On Tuesday 04 August 2009, Frans Pop wrote:
> One, IMO fairly logical, solution to this could be to not let partman
> create /etc/fstab *in* /target, but instead create it somewhere in the
> the D-I environment and then let a base-installer.d script copy it over
> to /target.
> This would also be more in line with how other components do things.
This oneliner change would fix the issue as well:
+++ b/packages/base-installer/debian/bootstrap-base.postinst
@@ -88,7 +88,7 @@ install_base_system () {
# so make a backup to be restored later
copied_fstab=true
cp /target/etc/fstab /target/etc/fstab.orig
- echo "# UNCONFIGURED FSTAB FOR BASE SYSTEM" >> /target/etc/fstab
+ echo "# UNCONFIGURED FSTAB FOR BASE SYSTEM" > /target/etc/fstab
fi
if [ "$PROTOCOL" = "http" ]; then
And it even makes more sense than the current code...
I'll go ahead and commit this.
Reply to: