* Some hacks to support running NixOS on Amazon EC2 (and other hosting
environment where you don't get to run stage 1 of the boot). svn path=/nixos/trunk/; revision=19579
This commit is contained in:
parent
8a6346e477
commit
6d21e00776
@ -3,6 +3,11 @@
|
|||||||
# !!! copied from stage 1; remove duplication
|
# !!! copied from stage 1; remove duplication
|
||||||
|
|
||||||
|
|
||||||
|
# If no `systemConfig' parameter is specified on the kernel command
|
||||||
|
# line, use `/system' as a fallback.
|
||||||
|
systemConfig=/system
|
||||||
|
|
||||||
|
|
||||||
# Print a greeting.
|
# Print a greeting.
|
||||||
echo
|
echo
|
||||||
echo -e "\e[1;32m<<< NixOS Stage 2 >>>\e[0m"
|
echo -e "\e[1;32m<<< NixOS Stage 2 >>>\e[0m"
|
||||||
@ -24,6 +29,13 @@ setPath() {
|
|||||||
setPath "@path@"
|
setPath "@path@"
|
||||||
|
|
||||||
|
|
||||||
|
# Normally, stage 1 mounts the root filesystem read/writable.
|
||||||
|
# However, in some environments (such as Amazon EC2), stage 2 is
|
||||||
|
# executed directly, and the root is read-only. So make it writable
|
||||||
|
# here.
|
||||||
|
mount -n -o remount,rw none /
|
||||||
|
|
||||||
|
|
||||||
# Mount special file systems.
|
# Mount special file systems.
|
||||||
mkdir -m 0755 -p /etc
|
mkdir -m 0755 -p /etc
|
||||||
test -e /etc/fstab || touch /etc/fstab # to shut up mount
|
test -e /etc/fstab || touch /etc/fstab # to shut up mount
|
||||||
|
Loading…
Reference in New Issue
Block a user