Bug#620334: fai-cd: grub-install to USB device fails

2013-11-06 Thread Jeroen Akershoek
I think he means that the grub-probe now outputs information differently.

Line 278 in /usr/sbin/fai-cd is now:
 device=$(grub-probe -tdrive $usbdir | perl -ane 'm#(/dev/\w+),#  print
$1\n')

But with -tdrive you currently get something like:
# grub-probe -tdrive
(hd2,msdos1)

With the current grub -tdevice should be used, which returns the partition
device that is mounted, like this:
# grub-probe -tdevice
/dev/sdc1

Also, in order to correctly install grub we need to use the disk-device,
not the partition. So we take off the partition number with something like
this:
 device=$(grub-probe -tdevice $usbdir | perl -ane 'm#(/dev/\D+)#  print
$1\n')

Now the 'device' variable is properly formatted for use in grub-install

Kind regards,
Jeroen


Bug#335690: cfengine2: Copy fails with large (2GB) files

2005-10-25 Thread Jeroen Akershoek
Package: cfengine2
Version: 2.1.15-1
Severity: normal


When copying large (2GB) files we get the following error messages:

WARNING: new file /mydir/subdir1/large_file.mpeg.cfnew seems to have
been corrupted in transit (sizes 0 and -1494777856), aborting!
Purging /mydir/subdir1/large_file.mpeg.cfnew in copy dest directory

Transmission refused or failed statting /mydir/subdir2
Got:
(Can't stat /mydir/subdir2)
Transmission refused or failed statting /mydir/subdir3
Got:
(Can't stat /mydir/subdir3)
Transmission refused or failed statting /mydir/myfile.tar
Got:
(Can't stat /mydir/myfile.tar)


So basically, when encountering a large file, copy aborts and subsequent
files that are part of the same transfer fail
as well. Files that are processed before large_file.mpeg work fine. The
negative number btw matches exactly with
the filesize of large_file.mpeg minus 2^32.

Might be a cfengine bug and not necessarily debian specific, but I can't
be sure at this moment

Regards,
 Jeroen

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-insight
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cfengine2 depends on:
ii  debconf   1.4.58 Debian configuration
management sy
ii  debianutils   2.14.3 Miscellaneous utilities
specific t
ii  libc6 2.3.5-6GNU C Library: Shared
libraries an
ii  libdb4.2  4.2.52-18  Berkeley v4.2 Database
Libraries [
ii  libssl0.9.7   0.9.7g-2   SSL shared libraries
ii  perl  5.8.7-3Larry Wall's Practical
Extraction

cfengine2 recommends no packages.

-- debconf information:
* cfengine2/run_cfservd: true
* cfengine2/run_cfexecd: true
* cfengine2/run_cfenvd: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]