aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@gmail.com>2024-07-26 01:59:36 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2024-10-08 07:04:01 +0000
commitc96dbfbd1b5274cd0cdcdffacfe365f7be1d2d79 (patch)
tree9e627eca3d16dafea412a6267ac789473dff7771 /libexec
parent68c7c28d0e65a3c59810a1b2d441c74bfaeab81a (diff)
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/rc/rc.d/nuageinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit
index 8da0b1aed741..a44761ea1d9e 100755
--- a/libexec/rc/rc.d/nuageinit
+++ b/libexec/rc/rc.d/nuageinit
@@ -18,8 +18,8 @@ nuageinit_start()
{
local citype
# detect cloud init provider
- # according to the specification of the config drive
- # it either formatted in vfat or iso9660 and labeled
+ # according to the specification, the config drive
+ # is either formatted in vfat or iso9660 and labeled
# config-2
for f in iso9660 msdosfs; do
drive="/dev/$f/[cC][oO][nN][fF][iI][gG]-2"
@@ -39,7 +39,7 @@ nuageinit_start()
err 1 "Impossible to find a cloud init provider"
fi
mkdir -p /media/nuageinit
- fs=$(fstyp $drive)
+ fs=$(fstyp $drive 2> /dev/null)
mount -t $fs $drive /media/nuageinit
# according to the specification, the content is either
# in the openstack or ec2 directory