Re: Loading gzipped mfsroot

2005-11-29 Thread Iasen Kostov
On Mon, 2005-11-28 at 19:19 +0200, Ruslan Ermilov wrote:
 On Mon, Nov 28, 2005 at 04:38:11PM +0200, Iasen Kostov wrote:
  On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote:
   From: Iasen Kostov [EMAIL PROTECTED]
   
I've seen a lot of examples where peeple load gzipped mfsroot images
and everything looks fine for them, but not for me. It loads
uncompressed image and boots ok, it loads compressed image and does not
uncompress it and then tries to mount ufs directly on it which fails
ofcourse. As I saw bay default loader(and pxeboot porbably - its a
diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT
defined so I think I should have gzip support in loader.
   
Here is the loader.conf:
   
rootfs_load=YES
rootfs_name=dlroot.gz
rootfs_type=mfs_root
   
   I've not users this in quite a while, so I may be wrong here, but I think 
   what you need is:
   
   rootfs_name=dlroot
   
   If gzip support is compiled in, it will automatically try to fetch 
   dlroot.gz first and if it succeeds, it will uncompress and use it. The 
   way you have configured it, it tries dlroot.gz.gz, which fails, so then 
   it tried to load dlroot.gz as an uncompressed file.
   
   David
   
  
  Thanks a lot ! That do the trick :)
  It will realy be good if this is documented somewhere - probably in
  loader(8) manual page ... And will save people some hours of blessing
  loader(8) :)
  
 loader(8) has no business documenting this; it's already documented
 (though not too verbose) in the libstand(3) manpage.
 
 
Yaik I don't think thats obvious to the normal user :)
It should be somewhere in handbook atleast around diskless operations
chapter. Probably this will make it searchable via google and etc...

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Loading gzipped mfsroot

2005-11-28 Thread David S. Madole

From: Iasen Kostov [EMAIL PROTECTED]


I've seen a lot of examples where peeple load gzipped mfsroot images
and everything looks fine for them, but not for me. It loads
uncompressed image and boots ok, it loads compressed image and does not
uncompress it and then tries to mount ufs directly on it which fails
ofcourse. As I saw bay default loader(and pxeboot porbably - its a
diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT
defined so I think I should have gzip support in loader.

Here is the loader.conf:

rootfs_load=YES
rootfs_name=dlroot.gz
rootfs_type=mfs_root


I've not users this in quite a while, so I may be wrong here, but I think 
what you need is:


rootfs_name=dlroot

If gzip support is compiled in, it will automatically try to fetch 
dlroot.gz first and if it succeeds, it will uncompress and use it. The 
way you have configured it, it tries dlroot.gz.gz, which fails, so then 
it tried to load dlroot.gz as an uncompressed file.


David

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Loading gzipped mfsroot

2005-11-28 Thread Iasen Kostov
On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote:
 From: Iasen Kostov [EMAIL PROTECTED]
 
  I've seen a lot of examples where peeple load gzipped mfsroot images
  and everything looks fine for them, but not for me. It loads
  uncompressed image and boots ok, it loads compressed image and does not
  uncompress it and then tries to mount ufs directly on it which fails
  ofcourse. As I saw bay default loader(and pxeboot porbably - its a
  diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT
  defined so I think I should have gzip support in loader.
 
  Here is the loader.conf:
 
  rootfs_load=YES
  rootfs_name=dlroot.gz
  rootfs_type=mfs_root
 
 I've not users this in quite a while, so I may be wrong here, but I think 
 what you need is:
 
 rootfs_name=dlroot
 
 If gzip support is compiled in, it will automatically try to fetch 
 dlroot.gz first and if it succeeds, it will uncompress and use it. The 
 way you have configured it, it tries dlroot.gz.gz, which fails, so then 
 it tried to load dlroot.gz as an uncompressed file.
 
 David
 

Thanks a lot ! That do the trick :)
It will realy be good if this is documented somewhere - probably in
loader(8) manual page ... And will save people some hours of blessing
loader(8) :)


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Loading gzipped mfsroot

2005-11-28 Thread Ruslan Ermilov
On Mon, Nov 28, 2005 at 04:38:11PM +0200, Iasen Kostov wrote:
 On Mon, 2005-11-28 at 09:18 -0500, David S. Madole wrote:
  From: Iasen Kostov [EMAIL PROTECTED]
  
   I've seen a lot of examples where peeple load gzipped mfsroot images
   and everything looks fine for them, but not for me. It loads
   uncompressed image and boots ok, it loads compressed image and does not
   uncompress it and then tries to mount ufs directly on it which fails
   ofcourse. As I saw bay default loader(and pxeboot porbably - its a
   diskless machine which boots over ethernet) have LOADER_GZIP_SUPPORT
   defined so I think I should have gzip support in loader.
  
   Here is the loader.conf:
  
   rootfs_load=YES
   rootfs_name=dlroot.gz
   rootfs_type=mfs_root
  
  I've not users this in quite a while, so I may be wrong here, but I think 
  what you need is:
  
  rootfs_name=dlroot
  
  If gzip support is compiled in, it will automatically try to fetch 
  dlroot.gz first and if it succeeds, it will uncompress and use it. The 
  way you have configured it, it tries dlroot.gz.gz, which fails, so then 
  it tried to load dlroot.gz as an uncompressed file.
  
  David
  
 
   Thanks a lot ! That do the trick :)
 It will realy be good if this is documented somewhere - probably in
 loader(8) manual page ... And will save people some hours of blessing
 loader(8) :)
 
loader(8) has no business documenting this; it's already documented
(though not too verbose) in the libstand(3) manpage.


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgpcn5ZjfD1SF.pgp
Description: PGP signature