Hi Daniel,
On 12/16/25 14:35, Gross, Daniel wrote:
> Hello Stefano,
>
> we have been using swupdate in combination with yocto for quite some
> time now and are very satisfied.
>
:-)
> However, I do have one question:
>
Please think that for general free of charger questions you should use
the Mailing List only, and answer can be useful to other users, too.
> We run the resize2fs tool as postupdatecmd. When an update is installed
> remotely and you look at the “messages,” you repeatedly see the
> following error.
Not the best thing as this modifies the filesystem, anyway. If you need
rw, just set ROOTFS_EXTRA_SPACE.
>
> Snippet from remote update messages output:
>
> [read_lines_notify] : run resize2fs to rootfs partition
>
> ERROR util.c : read_lines_notify : 1118 : resize2fs 1.47.0 (5-Feb-2023)
>
> [read_lines_notify] : Resizing the filesystem on /dev/mmcblk0p2 to
> 256000 (4k) blocks.
>
> [read_lines_notify] : The filesystem on /dev/mmcblk0p2 is now 256000
> (4k) blocks long
>
> Why does read_lines_notify interpret this as an error?
Because resize2fs write to stderr instead of stdout, and SWUpdate
intercepts them and map ERROR for stderr and TRACE for stdout.
>
> Resize2fs may not do anything here, but it is not an error either.
>
> Even if resize2fs is called unnecessarily and does nothing, it is
> interpreted as an error.
>
> Is there anything specific to note or a workaround so that
> read_lines_notify does not interpret this as an error?
Fix resize2fs.
284 add_error_table(&et_ext2_error_table);
285
286 fprintf (stderr, "resize2fs %s (%s)\n",
287 E2FSPROGS_VERSION, E2FSPROGS_DATE);
288 if (argc && *argv)
Best regards,
Stefano Babic
>
> Kindly Regards
>
> Daniel Gross
>
> Mit freundlichen Grüßen,
> Best regards,
>
> *Daniel Gross
> *Entwicklung
>
> Phone:
+49 6233 3789-0
> Email:
gr...@rohmann.de <mailto:
gr...@rohmann.de>
> Web:
www.rohmann.de <
http://www.rohmann.de>
>
> <
https://www.xing.com/companies/rohmanngmbh> <
https://www.linkedin.com/
> company/rohmanngmbh> <
https://www.instagram.com/rohmann_gmbh/> <https://
>
www.facebook.com/elotest/> <
https://www.youtube.com/user/RohmannGmbH/
> videos>
>
> Weihnachtsmailing_2025.jpg
> __
> _*ROHMANN GMBH* >> Carl-Benz-Str. 23 >> 67227 Frankenthal >> Germany >>
> Geschäftsführer: Petra Rohmann >> Registergericht Ludwigshafen HRB 21207
> _
> DSGVO - Link zur Information der personenbezogenen Daten:
>
https://www.rohmann.de/datenschutzerklaerung/ <
https://www.rohmann.de/
> datenschutzerklaerung/>
https://www.rohmann.de/en/privacy-policy/
> <
https://www.rohmann.de/en/privacy-policy/>
>
> <
https://www.rohmann.de/download/>
> Hinweis: Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder dieses E-
> Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> die unbefugte Weitergabe dieser Mail ist nicht gestattet. --- NOTICE:
> This e-mail may contain confidential or privileged material and is
> intended for use solely by the above-referenced recipient. Any review,
> copying, printing, disclosure, distribution, or other use by any other
> person or entity is strictly prohibited. If you are not the named
> recipient, or believe you have received this e-mail in error, please
> reply to the sender and delete the copy you received. Thank you.
>