Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Generate Linux initrd images with Sys::Export

by NERDVANA (Priest)
on Jul 23, 2025 at 19:24 UTC ( [id://11165766]=CUFP: print w/replies, xml ) Need Help??

Following up on the little project I was trying to name in January which naturally snowballed into a larger project, Sys::Export has finally reached CPAN viability!

From the synopsis:

use Sys::Export::CPIO; use Sys::Export -src => '/', -dst => Sys::Export::CPIO->new("initrd. +cpio"); rewrite_path '/sbin' => '/bin'; rewrite_path '/usr/sbin' => '/bin'; rewrite_path '/usr/bin' => '/bin'; add '/bin/busybox'; add ...; finish;

I even have a test (gated by environment variables) which can generate the initrd by exporting pieces of an Alpine docker container, and then run Linux with that initrd inside qemu.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://11165766]
Approved by marto
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2026-02-09 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.