LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-21-2024, 03:47 AM   #1
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Rep: Reputation: Disabled
Dracut info


Hi,

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 ?

Best regards.
 
Old 05-22-2024, 07:34 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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.
I hope this helps
 
Old 05-23-2024, 01:12 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by tuxuser1 View Post
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
...
What is the situation that lead to your question?
 
Old 05-23-2024, 01:17 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by GlennsPref View Post
[code]update-initramfs --help
Update-initramfs has nothing, other than similar end result, to do with dracut.
 
Old 05-23-2024, 02:06 AM   #5
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
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.
 
Old 05-23-2024, 02:16 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Chrooting has worked for me when necessary.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: InitRAMFS, Dracut, and the Dracut Emergency Shell LXer Syndicated Linux News 0 04-08-2019 09:33 AM
[SOLVED] Dracut: switching root -- and hangs Arno_H Linux - Kernel 2 01-21-2011 03:37 PM
[SOLVED] After kernel rebuild and using dracut input devices in KDM don't work... robertjinx Slackware 3 11-15-2010 08:30 AM
problem wiht creating initrd (initramfs.img) file using dracut Crackel Linux - Kernel 0 10-26-2010 06:19 PM
[SOLVED] FC12 no longer boots sucessfully... stuck at dracut: switching root jslavranchuk Fedora 2 07-11-2010 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration