Only use tmpfs on amd64, due to space restrictions on the current

build machines.
ubuntu/precise 1.117
LaMont Jones 15 years ago
parent b02d040cde
commit 32711a8aa2

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
[Michael Casadevall]

@ -203,8 +203,8 @@ for FS in "$@"; do
umount ${ROOT} || true
rm -rf ${ROOT}
mkdir ${ROOT}
# if we have > 1GB of RAM, use a tmpfs
if awk '/^MemTotal:/ { exit !(int($2/1024) > 1024)}' /proc/meminfo; then
# if we are on amd64 and have > 1GB of RAM, use a tmpfs
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
fi

Loading…
Cancel
Save