Erich Focht wrote:
> Hi Ole,
> 
> systemconfigurator doesn't support currently labels, and it looks like
> you're using labels. During the testing phase of the RPM build the grub
> test fails because it is using the partitioning info from the host.
> 
> Could you please post the content of your /etc/fstab and /proc/partitions?
> And the output of blkid?
> 
> By the way, do you have selinux enabled on your system? Not sure, but that
> could have some impact on running under chroot.
> 
> I just realize that the test doesn't copy /sbin/lbkid to the mini-chroot
> used for testing. Maybe you want to try adding
> 
> copy("/sbin/blkid","$root/usr/sbin/blkid") or ($skip = 1);
> 
> to t/boot_grub.t in the systemconfigurator tarball. I'd be curious about the
> result.
> 

BTW in t/boot_grub.t there's another issue that fails during `make test`:

Boot::install_config() calls find_grub_root() that calls dev2biosarr() that
calls device_map() that performs a "/bin/cp /proc/mounts /etc/mtab", that fails
if you run it as non-privileged user. During `make rpm` it should simply print
a warning...

Erich what do you think about the following patch?

-Andrea

Index: lib/Boot/Grub.pm
===================================================================
--- lib/Boot/Grub.pm    (revision 679)
+++ lib/Boot/Grub.pm    (working copy)
@@ -267,7 +267,7 @@
     }
     
     !system("/bin/cp /proc/mounts /etc/mtab")
-       or croak("Couldn't copy /proc/mounts. Is /proc mounted?");
+       or warn("Couldn't copy /proc/mounts. Is /proc mounted?");
     my $cmd = "$$this{grub} $$this{nofloppy} --batch --device-map=$file < 
/dev/null > /dev/null";
     !system($cmd) or croak("Couldn't run $cmd");
     

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to