root/tags/6.2-3/packages/initramfs/init.h

Revision 1488, 0.9 kB (checked in by jhuntwork, 3 years ago)

Merged udev_update branch to trunk.

Line 
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <fcntl.h>
5 #include <unistd.h>
6 #include <errno.h>
7 #include <sys/mount.h>
8 #include <sys/types.h>
9 #include <sys/wait.h>
10 #include <sys/stat.h>
11 #include <sys/ioctl.h>
12 #include <linux/loop.h>
13 #include <linux/cdrom.h>
14 #include <linux/fs.h>
15 #include <sys/reboot.h>
16 #include <libdevmapper.h>
17 #include "iso9660.h"
18
19 #define TMPFS           "/.tmpfs"                       /* Mount point for tmpfs */
20 #define CDROM_MOUNT     "/.tmpfs/.cdrom"                /* Mount point for CD */
21 #define ROOT_FILE       "/.tmpfs/.cdrom/root.ext2"      /* Origin file for the root fs */
22 #define ROOT            "/.root"                        /* Mount point for the root fs */
23 #define OVERLAY         "/.tmpfs/.overlay"              /* Full path to overlay */
24
25 #define ISO_BLOCK_SIZE  2048
26 #define ISO_PD_BLOCK    0x10
27
28 #define CDROM_FSTYPE    "iso9660"               /* Filesystem of CD */
29 #define MAX_RETRIES     3                       /* How many times to retry scanning for the CD */
Note: See TracBrowser for help on using the browser.