AW: AW: Error message after installing via fai-cd before reboot with UBUNTU
Fabian Hartmann
fabian.hartmann at cloudguard.ch
Mon Jan 5 15:31:50 CET 2015
> -----Ursprüngliche Nachricht-----
> Von: linux-fai [mailto:linux-fai-bounces at uni-koeln.de] Im Auftrag von Holger
> Parplies
> Gesendet: Donnerstag, 4. Dezember 2014 11:10
> An: fully automatic installation for Linux
> Betreff: Re: AW: Error message after installing via fai-cd before reboot with
> UBUNTU
>
> Aren't hooks run *before* the task? I remember a tip I have read here and
> successfully used for emulating a post-hook:
>
> #!/bin/bash
>
> task_mountdisks
> skiptask mountdisks
>
> # your code goes here
>
>
> After all, making the directory and mounting the tmpfs *before* task
> mountdisks would explain why it's not visible ;-).
>
You're right, any hook is run *before* the task as documented in here: http://fai-project.org/fai-guide/_anchor_id_config_xreflabel_config_installation_details.html#hooks
Now I did move the script to faiend.DEFAULT, which fixed my issue!
# hooks/faiend.DEFAULT
#! /bin/bash
mkdir -p $target/tmp
mount -t tmpfs tmpfs $target/tmp
Thanks for your comments!
Regards
Fabian
More information about the linux-fai
mailing list