mirror of
https://github.com/opnsense/src.git
synced 2026-05-21 09:25:59 -04:00
nuageinit: Silence an fstyp(8) warning
Silence a warning emitted by fread(3) in fstyp(8)'s read_buf(), when
detecting the file system type of the cloud-init device:
% fstyp /dev/iso9660/cidata
fstyp: fread: Invalid argument
cd9660
Also rephrase slightly a comment while here.
Signed-off-by: Jose Luis Duran <jlduran@gmail.com>
(cherry picked from commit d71e2c037c942dbe2a9fd2630d5cf155dd1bf7db)
This commit is contained in:
parent
68c7c28d0e
commit
c96dbfbd1b
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue