diskimage-builder/diskimage_builder/elements/zypper-minimal
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
..
post-install.d opensuse-minimal: install glibc-locale 2017-07-17 22:50:25 +02:00
pre-install.d Disable recommended package installations for zypper-minimal 2017-05-26 09:47:07 +02:00
root.d Fix /dev/pts mount options handling 2017-11-24 07:14:56 +00:00
element-deps Run dib-run-parts out of /tmp 2017-04-05 13:11:22 +10:00
package-installs.yaml elements: zypper-minimal: Install tar package 2017-07-25 16:27:25 +01:00
README.rst elements: openstack-ci-mirrors: Use openSUSE mirrors for gating jobs 2017-07-17 10:54:03 +01:00

==============
zypper-minimal
==============
Base element for creating minimal SUSE-based images

This element is incomplete by itself so you probably want to use it along
with the opensuse-minimal one. It requires 'zypper' to be installed on the
host.