Re: mixing architectures with debootstrap

2007-07-03 Diskussionsfäden Thomas Lange
 On Mon, 2 Jul 2007 12:33:41 -0500, John Heim [EMAIL PROTECTED] said:

 So, if make-fai-nfsroot is supposed to create the nfsroot in 
 /sur/share/fai/nfsroot, I can just issue my own debootstrap command to 
 create an root directory there? 
make-fai-nfsroot does much more than just calling debootstrap. So it
will not work if you just install the kernel into the nfsroot.
-- 
regards Thomas


Re: mixing architectures with debootstrap

2007-07-03 Diskussionsfäden John Heim


- Original Message - 
From: Thomas Lange [EMAIL PROTECTED]

To: linux-fai linux-fai@uni-koeln.de
Sent: Tuesday, July 03, 2007 2:50 AM
Subject: Re: mixing architectures with debootstrap


On Mon, 2 Jul 2007 12:33:41 -0500, John Heim [EMAIL PROTECTED] 
said:


So, if make-fai-nfsroot is supposed to create the nfsroot in
/sur/share/fai/nfsroot, I can just issue my own debootstrap command 
to

create an root directory there?
make-fai-nfsroot does much more than just calling debootstrap. So it
will not work if you just install the kernel into the nfsroot.



Well, I got it to work but I don't know why. It seems to be some kind of 
wierdness in debootstrap.  From my make-fai-nfsroot.config file:


# Of course, the original line works:
#FAI_DEBOOTSTRAP_OPTS=--exclude=dhcp-client,info
#
# And this works:
FAI_DEBOOTSTRAP_OPTS=--arch i386
#
# But when you combine them, it does not work:
#FAI_DEBOOTSTRAP_OPTS=--arch=i386 --exclude=dhcp-client,info


I modified  make-fai-nfsroot to show the debootstrap command as it's really 
run, complete with options. Then I cut and pasted it into a terminal window 
so I was running it exactly as make-fai-nfsroot was running it.


# debootstrap --arch=i386 --exclude=dhcp-client,info etch 
/usr/share/fai/nfsroot http://ftp.debian.org/debian

E: No such script: http://ftp.debian.org/debian

Huh? The debootstrap command works withthe --arch arguement or with 
the --exclude argument but not with both.  So as far as i can tell, this is 
not a problem with fai but with debootstrap. Well, I am running sarge on a 
AMD64 machine and trying to create a root with etch






Re: mixing architectures with debootstrap

2007-07-03 Diskussionsfäden John Heim

From: John Heim [EMAIL PROTECTED]
Huh? The debootstrap command works withthe --arch arguement or with 
the --exclude argument but not with both.  So as far as i can tell, this 
is not a problem with fai but with debootstrap. Well, I am running sarge 
on a AMD64 machine and trying to create a root with etch



Replying to my own post with a minor correction... I am running etch on 
AMD64 and trying to create an etch i386 nfsroot. No sarge.




Re: mixing architectures with debootstrap

2007-07-03 Diskussionsfäden Andreas Klein
Hello

This works on my System:
FAI_DEBOOTSTRAP_OPTS=--arch i386 --exclude=dhcp-client,info

--arch and the architecture must be seperated with a space.

MfG
Andreas Klein

On Tue, 3 Jul 2007 08:44:24 -0500
John Heim [EMAIL PROTECTED] wrote:

 
 - Original Message - 
 From: Thomas Lange [EMAIL PROTECTED]
 To: linux-fai linux-fai@uni-koeln.de
 Sent: Tuesday, July 03, 2007 2:50 AM
 Subject: Re: mixing architectures with debootstrap
 
 
  On Mon, 2 Jul 2007 12:33:41 -0500, John Heim [EMAIL PROTECTED] 
  said:
 
  So, if make-fai-nfsroot is supposed to create the nfsroot in
  /sur/share/fai/nfsroot, I can just issue my own debootstrap command 
  to
  create an root directory there?
  make-fai-nfsroot does much more than just calling debootstrap. So it
  will not work if you just install the kernel into the nfsroot.
 
 
 Well, I got it to work but I don't know why. It seems to be some kind of 
 wierdness in debootstrap.  From my make-fai-nfsroot.config file:
 
 # Of course, the original line works:
 #FAI_DEBOOTSTRAP_OPTS=--exclude=dhcp-client,info
 #
 # And this works:
 FAI_DEBOOTSTRAP_OPTS=--arch i386
 #
 # But when you combine them, it does not work:
 #FAI_DEBOOTSTRAP_OPTS=--arch=i386 --exclude=dhcp-client,info
 
 
 I modified  make-fai-nfsroot to show the debootstrap command as it's really 
 run, complete with options. Then I cut and pasted it into a terminal window 
 so I was running it exactly as make-fai-nfsroot was running it.
 
 # debootstrap --arch=i386 --exclude=dhcp-client,info etch 
 /usr/share/fai/nfsroot http://ftp.debian.org/debian
 E: No such script: http://ftp.debian.org/debian
 
 Huh? The debootstrap command works withthe --arch arguement or with 
 the --exclude argument but not with both.  So as far as i can tell, this is 
 not a problem with fai but with debootstrap. Well, I am running sarge on a 
 AMD64 machine and trying to create a root with etch