aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2015-04-21 14:31:31 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2015-04-28 12:52:21 +0100
commit9b9b595afada32ad09f0c95148e233f9faa60028 (patch)
tree50717e94f2ab3e3269702c3dad3f97bf4855fa14
parent583d2eec2ba69be0ebf949bf65ec330b71194abe (diff)
Add a comment as to why replace /bin/cat
-rwxr-xr-xin-chroot.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/in-chroot.sh b/in-chroot.sh
index 5dd23d6..4fedc03 100755
--- a/in-chroot.sh
+++ b/in-chroot.sh
@@ -25,6 +25,10 @@ adduser --disabled-password --gecos "" ubuntu
echo "ubuntu:password" | chpasswd
echo "ubuntu ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers
sed -i -e 's/APT::Periodic::Update-Package-Lists "1"/APT::Periodic::Update-Package-Lists "0"/' /etc/apt/apt.conf.d/10periodic
+
+# Why do we futz with cat(z)?
+# https://bugs.linaro.org/show_bug.cgi?id=1275
+
mv /bin/cat /bin/cat.real
cat.real <<\EOF > /bin/cat
#!/bin/sh