mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 17:31:38 +00:00
Only use tmpfs on amd64, due to space restrictions on the current
build machines.
This commit is contained in:
parent
b02d040cde
commit
32711a8aa2
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
livecd-rootfs (1.117) maverick; urgency=low
|
||||||
|
|
||||||
|
* Only use tmpfs on amd64, due to space restrictions on the current
|
||||||
|
build machines.
|
||||||
|
|
||||||
|
-- LaMont Jones <lamont@ubuntu.com> Sat, 05 Jun 2010 06:50:24 -0600
|
||||||
|
|
||||||
livecd-rootfs (1.116) maverick; urgency=low
|
livecd-rootfs (1.116) maverick; urgency=low
|
||||||
|
|
||||||
[Michael Casadevall]
|
[Michael Casadevall]
|
||||||
|
@ -203,8 +203,8 @@ for FS in "$@"; do
|
|||||||
umount ${ROOT} || true
|
umount ${ROOT} || true
|
||||||
rm -rf ${ROOT}
|
rm -rf ${ROOT}
|
||||||
mkdir ${ROOT}
|
mkdir ${ROOT}
|
||||||
# if we have > 1GB of RAM, use a tmpfs
|
# if we are on amd64 and have > 1GB of RAM, use a tmpfs
|
||||||
if awk '/^MemTotal:/ { exit !(int($2/1024) > 1024)}' /proc/meminfo; then
|
if test $(uname -m) = x86_64 && awk '/^MemTotal:/ { exit !(int($2/1024) > 1024)}' /proc/meminfo; then
|
||||||
mount -t tmpfs -o size=8192M tmpfs ${ROOT} && echo using tmpfs
|
mount -t tmpfs -o size=8192M tmpfs ${ROOT} && echo using tmpfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user