Is there a way to create initrd after execute mkinitcpio

Ask questions about Arch Linux ARM. Please search before making a new topic.

Is there a way to create initrd after execute mkinitcpio

Postby forumi0721 » Wed Mar 29, 2017 2:15 pm

Hi

I use arch linux arm on my Pi (Raspberry, Banana, Orange)

Sometimes I want to create automated task on u-boot image.

mkinitcpio make ramdisk, and after I want to make uinitrd using mkimage.

Sorry for my poor english


----------------
Now
1. mkinitcpio -> initramfs.img
2. (manually) mkimage -> uinitrd

Want
1. mkinitcpio -> initramfs.img ==> mkimage -> uinitrd
forumi0721
 
Posts: 1
Joined: Wed Mar 29, 2017 2:11 pm

Re: Is there a way to create initrd after execute mkinitcpio

Postby moonman » Wed Mar 29, 2017 11:56 pm

Write a bash script?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Is there a way to create initrd after execute mkinitcpio

Postby WarheadsSE » Thu Mar 30, 2017 12:31 pm

You could use a systemd.path to trigger a one-shot service to create the file
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 7 guests