Bug#380629: setup_harddisks does not preserve partition without mount point

2006-07-31 Thread Thomas Lange
Package: fai
Version: 2.10.5
Severity: normal
Tag: patch
setup_harddisks does not preserve partitions with no mount point.


From: Alexius Ludeman [EMAIL PROTECTED]
when the partition config read:
  primary  - 9000-   preserve4; preserve

mke2fs would still execute.  This patch should solve this.

*** setup_harddisks 2006-07-25 11:43:41.0 -0700
--- /usr/sbin/setup_harddisks   2006-07-25 11:10:27.0 -0700
***
*** 784,790 
$mountpointname = $mountpoint;
}
# preserved partition
!   if ( ($mountpoint =~ /^no/) || ($MPPreserve{$mountpoint} eq
yes)  ($MPOptions{$mountpoint} !~ /\bformat\b/i)){
print Preserve partition $device;
  if ($mountpoint =~ /^no$1/){
  print  with no mountpoint\n;
--- 784,790 
$mountpointname = $mountpoint;
}
# preserved partition
!   if ( ($MPPreserve{$mountpoint} eq yes) 
($MPOptions{$mountpoint} !~ /\bformat\b/i)){
print Preserve partition $device;
  if ($mountpoint =~ /^no$1/){
  print  with no mountpoint\n;
-- 
regards Thomas


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



Bug#380629: setup_harddisks does not preserve partition without mount point

2006-07-31 Thread Thomas Lange
I'm not sure if the patch really solves this problem. Maybe it
preserved ALL partitions without a mount point. Someone has to test this.
-- 
regards Thomas


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