at the end. This is a general-purpose change that should be applied to all flavors and archs, but at the moment it's only needed on armhf+raspi2 to work around the raspberrypi2-firmware postinst calling sync, which is actually warranted in the normal case.ubuntu/yakkety
parent
861a95b69b
commit
691a0ca08f
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ARCH=$(dpkg --print-architecture)
|
||||||
|
|
||||||
|
dpkg-divert --quiet --add --divert /bin/sync.REAL --rename /bin/sync
|
||||||
|
cat > /bin/sync <<'EOF'
|
||||||
|
#! /bin/sh
|
||||||
|
echo "$0: diverted by livecd-rootfs" >&2
|
||||||
|
exit 0
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x /bin/sync
|
@ -0,0 +1,5 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -f /bin/sync
|
||||||
|
dpkg-divert --quiet --remove --rename /bin/sync
|
Loading…
Reference in new issue