diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-06-28 15:48:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-02 22:23:48 +0100 |
commit | 2ed1c03b2459054f0145a77e065b0304bc5da9cb (patch) | |
tree | 4133b66af62a2f863015625d505aa87fe44fa8a5 /meta/recipes-core | |
parent | 28786ec6ccb61e558eeb2a32287f57e601d72d79 (diff) | |
download | poky-2ed1c03b2459054f0145a77e065b0304bc5da9cb.tar.gz |
base-files: remove the unnecessary /media/xxx directories
A few directories under /media were created by default, /media/card,
/media/ram, /media/realroot, etc.
These directories actually have no real usage now, thus removing them.
The /media/ram entry in the fstab is also removed, as mounting a tmpfs
over /media/ram in our system brings no benefit.
Note that a duplicate '/mnt' entry in dirs755 are also removed.
[Yocto #4774]
(From OE-Core rev: 458e76e470966d759067b2f6e6f00fa75a2963f3)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/base-files/base-files/fstab | 1 | ||||
-rw-r--r-- | meta/recipes-core/base-files/base-files_3.0.14.bb | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/meta/recipes-core/base-files/base-files/fstab b/meta/recipes-core/base-files/base-files/fstab index dd613a1953..e625ebc8ff 100644 --- a/meta/recipes-core/base-files/base-files/fstab +++ b/meta/recipes-core/base-files/base-files/fstab | |||
@@ -6,7 +6,6 @@ devpts /dev/pts devpts mode=0620,gid=5 0 0 | |||
6 | usbdevfs /proc/bus/usb usbdevfs noauto 0 0 | 6 | usbdevfs /proc/bus/usb usbdevfs noauto 0 0 |
7 | tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 | 7 | tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 |
8 | tmpfs /var/volatile tmpfs defaults 0 0 | 8 | tmpfs /var/volatile tmpfs defaults 0 0 |
9 | tmpfs /media/ram tmpfs defaults 0 0 | ||
10 | 9 | ||
11 | # uncomment this if your device has a SD/MMC/Transflash slot | 10 | # uncomment this if your device has a SD/MMC/Transflash slot |
12 | #/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0 | 11 | #/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0 |
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb index 88d1ac9eaa..054fefa050 100644 --- a/meta/recipes-core/base-files/base-files_3.0.14.bb +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb | |||
@@ -43,9 +43,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ | |||
43 | /sys ${localstatedir}/lib/misc ${localstatedir}/spool \ | 43 | /sys ${localstatedir}/lib/misc ${localstatedir}/spool \ |
44 | ${localstatedir}/volatile \ | 44 | ${localstatedir}/volatile \ |
45 | ${localstatedir}/volatile/log \ | 45 | ${localstatedir}/volatile/log \ |
46 | /mnt /media /media/card /media/cf /media/net /media/ram \ | 46 | /media" |
47 | /media/union /media/realroot /media/hdd \ | ||
48 | /media/mmc1" | ||
49 | dirs3755 = "/srv \ | 47 | dirs3755 = "/srv \ |
50 | ${prefix}/local ${prefix}/local/bin ${prefix}/local/games \ | 48 | ${prefix}/local ${prefix}/local/bin ${prefix}/local/games \ |
51 | ${prefix}/local/include ${prefix}/local/lib ${prefix}/local/sbin \ | 49 | ${prefix}/local/include ${prefix}/local/lib ${prefix}/local/sbin \ |
@@ -79,9 +77,6 @@ do_install () { | |||
79 | for d in ${volatiles}; do | 77 | for d in ${volatiles}; do |
80 | ln -sf volatile/$d ${D}${localstatedir}/$d | 78 | ln -sf volatile/$d ${D}${localstatedir}/$d |
81 | done | 79 | done |
82 | for d in card cf net ram; do | ||
83 | ln -sf /media/$d ${D}/mnt/$d | ||
84 | done | ||
85 | ln -snf ../run ${D}${localstatedir}/run | 80 | ln -snf ../run ${D}${localstatedir}/run |
86 | ln -snf ../run/lock ${D}${localstatedir}/lock | 81 | ln -snf ../run/lock ${D}${localstatedir}/lock |
87 | 82 | ||