Generated code for debug command.
[libguestfs.git] / make-initramfs.sh.in
index a9e25bf..6ff6e69 100755 (executable)
@@ -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]
@@ -74,6 +78,9 @@ find initramfs/lib/modules/*/kernel \
   -a ! -name '8139cp.ko' \
   -a ! -name 'ext2.ko' \
   -a ! -name 'ext4.ko' \
+  -a ! -name 'crc16.ko' \
+  -a ! -name 'jbd2.ko' \
+  -a ! -name 'fuse.ko' \
   -a -delete
 
 # Pull the kernel out into the current directory.  We don't want it in