Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2038 - [18.06.1] Installing package grep breaks /etc/preinit #8280

Closed
openwrt-bot opened this issue Jan 1, 2019 · 1 comment
Closed
Labels

Comments

@openwrt-bot
Copy link

eschoeller:

I receive this error during start-up:

/etc/preinit: line 1: grep: not found

After I have installed the 'grep - 2.26-1' package.

BusyBox has it's grep applet installed in /bin/grep, and the grep package removes this and installs the full version in /usr/bin/grep. For whatever reason /etc/preinit cannot find /usr/bin/grep despite the path being set and including /usr/bin.

Removing the 'grep - 2.26-1' package allows the system to revert back to BusyBox grep and /etc/preinit no longer reports an error.

@openwrt-bot
Copy link
Author

yousong:

Hi Eric, Sorry for the late reply. I couldn't figure out how the issue happened, both last time I saw this and now.

If it's read-only rootfs and grep installed on writable overlay, then at preinit stage the busybox grep symlink should be still there.

If it's writable rootfs without overlay, then just like your analysis it should just work ... I just tried to reproduce this with x86_64-combined-ext4 image, but the issue did not appear.

Please provide more info about the device, images, rootfs, etc. Is it possible that the image was glibc based and opkg installed from another libc-based package?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant