Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to ask to dracut devs but nobody answer.
Github repo and chat seem dead.
Do you know whether possible to generate an initramfs specifying a different root dir ?
Hi, you may set another /boot directory... I haven't tried this, and I apologise in advance if I'm off topic
-b directory
man update-initramfs
for a simplified view...
Code:
update-initramfs --help
Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]
Options:
-k version Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-b directory Set alternate boot directory
-v Be verbose
See update-initramfs(8) for further details.
Do you know whether possible to generate an initramfs specifying a different root dir ?
By this do you mean something different from the root device, which is covered by man dracut? I copied the following directly from the dracut man page:
Code:
Specifying the root Device
This is the only option dracut really needs to boot from your root partition. Because your root partition can live in
various environments, there are a lot of formats for the root= option. The most basic one is root=<path to device node>:
root=/dev/sda2
...
By this do you mean something different from the root device, which is covered by man dracut? I copied the following directly from the dracut man page:
Code:
Specifying the root Device
This is the only option dracut really needs to boot from your root partition. Because your root partition can live in
various environments, there are a lot of formats for the root= option. The most basic one is root=<path to device node>:
root=/dev/sda2
...
What is the situation that lead to your question?
You image to run a package manager bootstrapping into a folder.
I'd want to generate dracut image from that folder, searching the resources from that folder.
If that's impossible then chroot inside and generate the image should resolve it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.