* Don't put /var and /nix on ephemeral storage if we're booting
from EBS. svn path=/nixos/trunk/; revision=33716
This commit is contained in:
parent
849d136aa6
commit
83679c99b1
@ -115,11 +115,13 @@ with pkgs.lib;
|
||||
mkdir -m 1777 -p $targetRoot/$diskForAufs/root/tmp $targetRoot/tmp
|
||||
mount --bind $targetRoot/$diskForAufs/root/tmp $targetRoot/tmp
|
||||
|
||||
mkdir -m 755 -p $targetRoot/$diskForAufs/root/var $targetRoot/var
|
||||
mount --bind $targetRoot/$diskForAufs/root/var $targetRoot/var
|
||||
if [ ! -e $targetRoot/.ebs ]; then
|
||||
mkdir -m 755 -p $targetRoot/$diskForAufs/root/var $targetRoot/var
|
||||
mount --bind $targetRoot/$diskForAufs/root/var $targetRoot/var
|
||||
|
||||
mkdir -m 755 -p $targetRoot/$diskForAufs/root/nix
|
||||
mount -t aufs -o dirs=$targetRoot/$diskForAufs/root/nix=rw:$targetRoot/nix=rr none $targetRoot/nix
|
||||
mkdir -m 755 -p $targetRoot/$diskForAufs/root/nix
|
||||
mount -t aufs -o dirs=$targetRoot/$diskForAufs/root/nix=rw:$targetRoot/nix=rr none $targetRoot/nix
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user