Hi,
Using latest libguestfs won't be possible since I want NTFS support too.
And I don't want to compile libguestfs separately for CentOS 7 Unless I can
comfortably use the libguestfs which I compiled on CentOS 8 and use it for
CentOS 7.
Symlink also won't help ?
/usr/sbin/resize2fs -> /my-dir/my-resize2fs
Latest resize2fs is helping in solving my issue but not the stock one
present in CentOS 7
On Tue, 13 Sep, 2022, 8:19 pm Richard W.M. Jones, <rjones(a)redhat.com> wrote:
On Tue, Sep 13, 2022 at 07:50:35PM +0530, Jevin Gala wrote:
> Hi,
>
>
> Thank you for your response.
>
> You mean path : /usr/lib64/guestfs/supermin.d/
> So I can include my binary (viz : e2fsck/resize2fs) which is compiled in
some
> other path as well using file : hostfiles ?
If there are particular files that you want to copy to the appliance
you might do something like:
# cat > /usr/lib64/supermin.d/guestfs/zz-extra-files <<EOF
/path/to/my/file1
/path/to/my/file2
/path/to/my/other*
EOF
However this might not help to include standard utilities like
resize2fs. supermin will normally copy the host file
(eg. /usr/sbin/resize2fs) to the appliance, and that will probably be
the old version of the utility, unless you can update it on the host.
Very much depends what exactly you are trying to do.
Rich.
>
> On Tue, Sep 13, 2022 at 7:20 PM Richard W.M. Jones <rjones(a)redhat.com>
wrote:
>
> On Mon, Sep 12, 2022 at 06:52:34PM +0530, Jevin Gala wrote:
> > Hi,
> >
> >
> > I wanted to use a higher version of e2fsprogs (1.45) with
libguestfs
> 1.28.
> > Can I get some information on how I can proceed or use the one
compiled
> on the
> > server separately ?
>
> Supermin just uses whatever version of e2fsprogs is installed
> on the host and copies it into the guest.
>
> If you cannot upgrade that, you can add arbitrary files into the
> appliance by listing them in a file under
> /usr/lib64/supermin.d/guestfs/ See:
>
>
https://libguestfs.org/supermin.1.html#SUPERMIN-APPLIANCES
>
> libguestfs 1.28 is very old indeed (released 8 years ago).
> Is there no option to upgrade it?
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/
> ~rjones
> Read my programming and virtualization blog:
http://rwmj.wordpress.com
> virt-top is 'top' for virtual machines. Tiny program with many
> powerful monitoring features, net stats, disk stats, logging, etc.
>
http://people.redhat.com/~rjones/virt-top
>
>
>
>
> --
> Regards,
> Jevin Gala
>
> Virtualizor support - Softaculous Ltd.
> _______________________________________________
> Libguestfs mailing list
> Libguestfs(a)redhat.com
>
https://listman.redhat.com/mailman/listinfo/libguestfs
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW