From f7ec0a4bc3e7dbbfe7b6a63dc2d3772635eef6fe7b276bacc14bb8a87b9b7937 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 3 Sep 2012 16:05:00 +0000 Subject: [PATCH] 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 --- libguestfs.spec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libguestfs.spec b/libguestfs.spec index 8d8a624..07dd66a 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -362,6 +362,25 @@ test -n "$ext_cmds" # > ext_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 do if test -n "` PATH=$PATH:/sbin:/usr/sbin type -p $cmd `"