provide fixed list of mkfs subcommands because guestfsd can not export such list

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=62
This commit is contained in:
Olaf Hering 2012-09-03 16:05:00 +00:00 committed by Git OBS Bridge
parent 03c60de8f5
commit f7ec0a4bc3

View File

@ -362,6 +362,25 @@ test -n "$ext_cmds"
# #
> ext_cmds.txt > ext_cmds.txt
> missing_cmds.txt > missing_cmds.txt
# guestfs may call mkfs, but it cant tell in advance which filesystems
# it must support. Collect a manual list of possible filesystems so that
# the commands get included in the initrd.
for fs in \
ext2 \
ext3 \
ext4 \
ntfs \
reiserfs \
jfs \
gfs \
gfs2 \
vfat \
msdos \
ufs \
; do
echo mkfs.$fs
done >> ext_cmds.txt
#
for cmd in ls $ext_cmds for cmd in ls $ext_cmds
do do
if test -n "` PATH=$PATH:/sbin:/usr/sbin type -p $cmd `" if test -n "` PATH=$PATH:/sbin:/usr/sbin type -p $cmd `"