diskimage-builder/diskimage_builder/lib
Andreas Florath 46a07de480 Fix /dev/pts mount options handling
The current implementation - as introduced in
Iee44703297a15b14c715f4bfb7bae67f613aceee - has some shortcomings / bugs,
like:

* the 'grep' check is too sloppy
* when /dev/pts is already mounted multiple times the current implementation
  fails:
  $ mount | grep devpts | sed 's/.*(\(.*\))/\1/'
  rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
  rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
  rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
* code duplication
* Using the undocumented and non-robust output
  of 'mount'.

This patch fixed the above problems.

Change-Id: Ib0c7358772480c56d405659a6a32afd60c311686
Signed-off-by: Andreas Florath <andreas@florath.net>
2017-11-24 07:14:56 +00:00
..
common-defaults Support for Cloud Images on ppc64le for rhel7 and centos7 2017-06-29 15:44:26 +10:00
common-functions Fix /dev/pts mount options handling 2017-11-24 07:14:56 +00:00
dib-run-parts Add timestamp output filter 2017-06-16 15:58:50 +10:00
die Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
disk-image-create Move to a common lock-file directory 2017-10-26 16:27:59 +11:00
img-defaults Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
img-functions Move fstrim to block device layer 2017-09-28 17:48:59 +10:00
outfilter.py Add timestamp output filter 2017-06-16 15:58:50 +10:00
ramdisk-defaults Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
ramdisk-functions Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ramdisk-image-create Move diskimage-image-create to an entry point 2016-11-02 05:12:11 +00:00