mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
Newer versions of util-linux's mount utility will not show: /dev/loop0 on /some/path type ext3 (mount,opts) Instead, it finds out the file backing /dev/loop0 and outputs: /some/file on /some/path type ext3 (mount,opts) This breaks the make_image_bootable helper that attempts to look up the loop device that mount_gpt_image.sh happened to pick. Let's scuttle the idea of parsing `mount` and move directly to what the kernel has to say via /proc/mounts. Hopefully the ABI there should be quite a bit more stable. BUG=None TEST=build_image works with mount from util-linux-2.16 TEST=build_image (before change) fails with mount from util-linux-2.19 TEST=build_image works with mount from util-linux-2.19 Change-Id: I66908800e82ff2e106face9d57773721e400dc2a Reviewed-on: https://gerrit.chromium.org/gerrit/11869 Commit-Ready: Mike Frysinger <vapier@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>