disk_var.sh SWAPLIST problem

Henning Glawe glaweh at physik.fu-berlin.de
Tue Jul 25 10:32:40 CEST 2006


On Fri, Jul 21, 2006 at 03:36:52PM +0200, Frederik Wagner wrote:
> Hi *,
> 
> I'm trying to set up a fai installation on a Software RAID1. It's
> working up to only little annoyance, which I cannot figure out:
> 
> I have a mountdisks hook, which makes out of a given disk_config for one
> harddisk a RAID1 (meaning copying the partition to the second disk and
> setting up the md devices).
> Also this script adjusts /tmp/fai/fstab and /tmp/fai/disk_var.sh. In
> particular in the latter SWAPLIST ist set to /dev/md1.
> 
> In the next step in the fai installation 'task_mountdisks', I have the
> problem that fai still tries to do swapon on the original in disk_config
> given swap, here:
> "swapon: /dev/sda5: Invalid argument"
> actually this step should take the SWAPLIST entries from disk_var.sh, or
> am I wrong here?

well, disk_var.sh ($diskvar) is currently sourced as the last step of 
task_partition into the fai environment.

so basically, you should make your mountdisks hook a sourced-in hook 
(by renaming it to $FAI/hooks/mountdisks.CLASS.source) and explicitely source
disk_var.sh there.

-- 
c u
henning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060725/7c3dab0b/attachment.bin 


More information about the linux-fai mailing list