-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error in /etc/mkinitcpio.conf FIXED MANUALLY #2
Comments
First of all, thank you for the feedback. It's great to know someone is actually using something I made! Also, I value any criticisms or praise so that I may make due improvements when possible. So, the setup problem may not actually be a problem. Running The problem adding items to the Thanks. |
So far I have been unable to duplicate the Also, the latest version of ramroot now has a |
I've just recently thought of setting up a system to use initramfs or possibly others to run from ram. Found your project during research. I'm running the AUR version in a full xfce4 DE in vbox.
Going to do a bit more testing and take a look at the ramroot script.... Very cool project!! BTW: you aware of recent changes to /etc/mkinitcpio.conf?
New format:
EDIT: |
Thanks for the heads up with the new /etc/mkinitcpio.conf. I'll be updating as soon as possible to fix this issue. |
New version of ramroot now uses the new array variables standard in /etc/mkinitcpio.conf. The AUR package has been updated as well. |
commit 454c1f2 |
First of all: I am writing this from a totally RAM loaded Arch, thanks to you 👍 I will provide some feedback elsewhere (positive), but here I will only describe the problem I encountered.
Setup
I have an up-to-date Arch and used
git clone <AUR link>
to clone ramroot package into~/builds/
then I obviously ran
makepkg
and after the script finished I realized it did not put ramroot binary and the lib content in the right directories. I therefore copiedcp ~/build/ramroot/usr/bin/* /usr/bin/
and did the same for the lib directory (was too lazy to copy the man pages).Problem
I ran
ramroot enable
and encountered an error. While I don't have the error log, and don't feel like messing up again once it works, it essentially said "unexpected EOF" line 67 in /etc/mkinitpio.conf when creating the initramfs. So I checked the file and I found the error (hence, a log file is unneccessary): It turns out, your script added the hooks correctly but did not add the modules correctly. Instead of having:MODULES=(zram ext4)
which works for me, your script wrote:MODULES=() zram ext4"
(IMPORTANT: notice the qoute sign on the right). I'm not sure why this happened, but I edited it to be the correct version as above (inside the braces). I think there are two alternative syntax' avaible and your script messed them together or something.Solution
After I edited /etc/mkinitcpio.conf file:
MODULES=(zram ext4)
I ransudo mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
This has finally worked and not threw any errors. I have rebooted and everything was as it should be. I am not sure whether the problem is in your script or in my setup. However, I want to signal it, so if somebody else encounters it it will be fixed/or he can fix it himself.
P.S. I'd like to provide some feedback (not technical problem, but report of what I like in ramroot and how I use it), but not sure where to post it. Issue? Email? Pull Request?
The text was updated successfully, but these errors were encountered: