summaryrefslogtreecommitdiffstats
path: root/make-initramfs.sh.in
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-22 10:20:48 +0100
committerRichard Jones <rjones@redhat.com>2009-04-22 10:20:48 +0100
commitb837b64c74567b5291964005f691a18655396460 (patch)
tree81117309f76e7edc7c3b20d0e83d19bb12dc5e29 /make-initramfs.sh.in
parent94b95dc06c34d89cc56fb096b1e30b5e19d06c10 (diff)
downloadlibguestfs-b837b64c74567b5291964005f691a18655396460.tar.gz
libguestfs-b837b64c74567b5291964005f691a18655396460.tar.xz
libguestfs-b837b64c74567b5291964005f691a18655396460.zip
Create /tmp directory in the initramfs.
Diffstat (limited to 'make-initramfs.sh.in')
-rwxr-xr-xmake-initramfs.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/make-initramfs.sh.in b/make-initramfs.sh.in
index 952ccfa6..6ff6e698 100755
--- a/make-initramfs.sh.in
+++ b/make-initramfs.sh.in
@@ -45,6 +45,10 @@ rm -f $koutput
# /sysroot is where the guest root filesystem will be mounted.
mkdir initramfs/sysroot
+# Create /tmp if it is missing.
+mkdir -p initramfs/tmp
+@FEBOOTSTRAP_RUN@ initramfs -- chmod 0777 /tmp
+
# Make a safe 'install_file' function to install files into the
# filesystem. XXX We need a 'febootstrap-install' utility.
# Usage: install_file <local-file> <target-pathname> mode owner[.group]