Skip to contentSkip to conversation

image generation failure (rm .. error)

Buildroot [email protected] 2 participants 2 messages May 14, 2022

lore
Share & tools
lore
#0 lore raw

FYI, fresh download of buildroot-2022.02-rc3.tar.gz fails to complete the image generation on Debian/sid with

Generating filesystem image rootfs.ext2
...
rm: refusing to remove '.' or '..' directory: skipping '[...]/buildroot-2022.02-rc3_CM4/output/build/buildroot-fs/ext2/target/run/..'
rm: refusing to remove '.' or '..' directory: skipping '[...]/buildroot-2022.02-rc3_CM4/output/build/buildroot-fs/ext2/target/tmp/..'

I had to comment
echo "rm -rf $$(TARGET_DIR)/run/* $$(TARGET_DIR)/run/.[^.]* $$(TARGET_DIR)/tmp/* $$(TARGET_DIR)/tmp/.[^.]*" >> $$(FAKEROOT_SCRIPT)
in fs/common.mk to complete the functional image generation.

Jean-Michel
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw

Jean-Michel, All,

On 2022-05-14 09:57 +0200, [email protected] spake thusly:

Quoted 1 line

FYI, fresh download of buildroot-2022.02-rc3.tar.gz fails to complete the image generation on Debian/sid with

2022.02-rc3 is an old release candidate (rc); it is not meant to be used except for testing purposes. 2022.02 has been released since then, and it includes commit 38c4f6b807e9 (fs/common.mk: use find instead of shell glob patterns) which fixes exactly that problem.

Please update.

Regards,
Yann E. MORIN.

Quoted 14 lines

Generating filesystem image rootfs.ext2
...
rm: refusing to remove '.' or '..' directory: skipping '[...]/buildroot-2022.02-rc3_CM4/output/build/buildroot-fs/ext2/target/run/..'
rm: refusing to remove '.' or '..' directory: skipping '[...]/buildroot-2022.02-rc3_CM4/output/build/buildroot-fs/ext2/target/tmp/..'

I had to comment
echo "rm -rf $$(TARGET_DIR)/run/* $$(TARGET_DIR)/run/.[^.]* $$(TARGET_DIR)/tmp/* $$(TARGET_DIR)/tmp/.[^.]*" >> $$(FAKEROOT_SCRIPT)
in fs/common.mk to complete the functional image generation.

Jean-Michel
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot