Comments (13)
See: #197
For me it prints out:
Pruning /lib/modules/5.4.42+
Pruning /lib/modules/5.4.28-v7l+
Pruning /lib/modules/4.19.79-v8+
Pruning /lib/modules/4.19.79+
Pruning /lib/modules/4.19.23-v7+
Pruning /lib/modules/4.19.84-v7l+
Pruning /lib/modules/4.19.84-v7+
Pruning /lib/modules/4.19.57+
Pruning /lib/modules/5.5.0-rc5+
Pruning /lib/modules/5.5.0-rc5-v7l+
Pruning /lib/modules/4.19.60-v7+
Pruning /lib/modules/4.19.57-v7+
Pruning /lib/modules/4.19.1-v7+
Pruning /lib/modules/4.19.85-v8+
Pruning /lib/modules/4.19.80-v8+
Pruning /lib/modules/4.19.105-v7l+
Pruning /lib/modules/4.19.56+
Pruning /lib/modules/4.19.37-v7+
Pruning /lib/modules/4.19.64-v7l+
Pruning /lib/modules/4.19.102-v8+
It deletes any directory in /lib/modules/*
whose content only include files of type *.ko
or modules.*
(i.e. default kernel modules)
from rpi-update.
I don't get that output or anything like that. I am using pi-hole on Raspbian. Is there something I should do to help troubleshoot?
from rpi-update.
Can you show me what you entered to run rpi-update?
from rpi-update.
sudo PRUNE_MODULES=1 rpi-update
from rpi-update.
Looking at #197 helped. I deleted the /root/.firmware_revision and re-ran, which worked. Is deleting /root/.firmware_revision a requirement?
from rpi-update.
It deletes all modules before installing the new ones. It will only do this if you actually updating. Otherwise you'd be left with no modules at all.
from rpi-update.
So I performed the command incorrectly? As I said, if I run, sudo PRUNE_MODULES=1 rpi-update on an up-to-date system, nothing happens for me. Only worked after I deleted /root/.firmware_revision.
from rpi-update.
It only deletes modules when it has an update to do. If you are up to date the script does nothing.
from rpi-update.
I guess I am confused. I thought running sudo PRUNE_MODULES=1 rpi-update on an up-to-date system would remove unneeded/unused files. But you are saying I have to run, sudo PRUNE_MODULES=1 rpi-update on an out of date system in order for it to work? Is there a way to do a uname -a and delete all that do not correspond to the current running kernel? At least that way it could remove unneeded/unused files on an up-to-date system while keeping those that are currently in use.
from rpi-update.
The description of PRUNE_MODULES is "Allows you to delete unused module directories when doing an update."
You need to have an update to do for it to do anything. As you discovered you can force an update by removing /root/.firmware_revision
.
There are no plans to change the behaviour.
If you always use PRUNE_MODULES=1
in the future when running rpi-update your sdcard space will no longer fill up with old modules.
from rpi-update.
But if I use PRUNE_MODULES=1 in the future, won't that delete a possible working version of my system? When I reboot and if I deleted the modules prior to the update, I would not be able to fix it since those files would be deleted?
Initially, I wasn't sure which files were 'needed', so I guess if you do not plan to change the behavior, I will just script a way to delete the unneeded directories after comparing it to a current running 'uname -a'. Since I now know modules that do not match the uname are not needed. Thanks.
from rpi-update.
PRUNE_MODULES=1
only deletes modules before it installs new ones. When you reboot it will use the new modules that have been installed (along with the new kernel which only works with the new modules).
from rpi-update.
I guess I am the only on that backs up their kernels. Feel free to close.
from rpi-update.
Related Issues (20)
- Invalid hash given HOT 8
- /boot/kernel7l.img needs to exist to get a V8 kernel installed HOT 5
- Firmware not activated - ubuntu HOT 2
- log file somewhere? HOT 7
- ssl error when runnung rpi-update on rpi3 HOT 6
- rpi-update on rpi4/8G results in soft FP libs installed HOT 4
- proxy support
- pi@raspberrypi:~ $ sudo rpi-update *** Github API is currently rate limited - please try again after HOT 3
- Boot fails in encrypted sdcard after running `rpi-update` HOT 5
- HDMI output hasn't worked since 78c1429cc1d5a200d824d2629c3ceba4ba4617fe HOT 9
- mismatch of "uname -m" output and "getconf LONG_BIT" HOT 3
- problem running SKIP_DOWNLOAD=1 rpi-update cannot stat '//root/.rpi-firmware/*.elf' issue HOT 9
- OpenCL support HOT 1
- PRUNE_MODULES only runs if there is an update HOT 3
- How would you upgrade/downgrade/restore the current stable "default" firmware? HOT 2
- t HOT 1
- Input output error HOT 2
- How to install new firmware from code (Uninterrupted by -y) ? HOT 2
- Latest firmware update showing 64bit on 32bit OS (armv7l vs aarch64) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-update.