** Summary changed: - mount can exit (success) when it fails + mount can exit 0 (success) when it fails
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to util-linux in Ubuntu. https://bugs.launchpad.net/bugs/1736556 Title: mount can exit 0 (success) when it fails Status in util-linux package in Ubuntu: Confirmed Bug description: I'm on softlayer in an official Ubuntu image and 'mount' exits success even when it fails. $ cat /etc/cloud/build.info build_name: server serial: 20171116 $ cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults,relatime 0 0 # Added by Cloud Image build process LABEL=cloudimg-bootfs /boot ext3 defaults,relatime 0 0 # CLOUD_IMG: This file was created/modified by the Cloud Image build process # Mount the metadata disk for cloud-init, if present LABEL=METADATA /var/lib/cloud/seed/config_drive vfat defaults,nofail 0 0 LABEL=SWAP-xvdb1 none swap sw,comment=cloudconfig 0 2 $ blkid /dev/xvda1: LABEL="cloudimg-bootfs" UUID="63ea63a7-f64c-493c-90d4-384adc196be9" TYPE="ext3" PARTUUID="3276fc6f-01" /dev/xvda2: LABEL="cloudimg-rootfs" UUID="82ca1e17-8bc2-4895-96bb-3c39e5863238" TYPE="ext4" PARTUUID="3276fc6f-02" /dev/xvdh: SEC_TYPE="msdos" LABEL="config-2" UUID="9796-932E" TYPE="vfat" /dev/xvdb1: LABEL="SWAP-xvdb1" UUID="d51fcca0-6b10-4934-a572-f3898dfd8840" TYPE="swap" PARTUUID="00025cdb-01" $ whoami root $ grep /var/lib/cloud/seed/config_drive /proc/mounts $ mount /var/lib/cloud/seed/config_drive $ echo $? 0 ## it exited 0 so it should be mounted, but it is not. $ ls /var/lib/cloud/seed/config_drive $ grep /var/lib/cloud/seed/config_drive /proc/mounts ## try somewhere else and with /dev/ path. it works. $ mount /dev/xvdh /mnt $ echo $? 0 $ grep /mnt /proc/mounts /dev/xvdh /mnt vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0 $ find /mnt/ /mnt/ /mnt/openstack /mnt/openstack/latest /mnt/openstack/latest/meta_data.json /mnt/openstack/latest/network_data.json /mnt/openstack/latest/user_data /mnt/openstack/latest/vendor_data.json $ journalctl -o short-monotonic --boot --no-pager | pastebinit http://paste.ubuntu.com/26119983/ ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: mount 2.27.1-6ubuntu3.3 ProcVersionSignature: Ubuntu 4.4.0-98.121-generic 4.4.90 Uname: Linux 4.4.0-98-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.12 Architecture: amd64 Date: Tue Dec 5 17:52:14 2017 ProcEnviron: TERM=screen PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: util-linux UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1736556/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp