How can I recreate ArchLinux's installation ramdisk?

Hi,
I'm on a project where I developed my own custom ramdisk so I can automate the installation procedure for Arch. Currently, I have a script that takes Arch's initrd.img, and adds stuff to it (my scripts).
Now, I would like to be able to create the ramdisk from scratch (not requiring Arch's image as a base). Therefore, I would like to get the script(s) (if any) that ArchLinux devs use to create Arch's installation ramdisk. There are some things I want to change (some busybox options and stuff) so I really need this.
On cvs I can see a nice laid build system for creating an installation image using the new cpio method. But I can't find anything related to the old initrd system (even when using the RELEASE_0_7_2 CVS tag).
Also, I'm interested in the initcpio system since it seems way more simple to create Arch's installation image. Even more, I already saw the archboot package that would allow me to recreate the initcpio that will be used for installing the upcoming Arch release. I'm going to play with this, but I'm going to stay with the old initrd system until Arch's next release.
And regarding the cpio system, I have a doubt. How does the ramdisk environment change when using cpio over old initrd? I noticed that busybox is no longer used. Is using busybox an option? Would it make sense?
Thanks

V01D wrote:Ok, now I'm getting things a little better. I think that my best option is to use busybox using initcpio (don't you know how I can ask about the scripts you use for the old initrd? even if I don't use that initrd, I would like to see how the filesystem inside the initrd is created; there are programs like dhcpcd that I don't know from where to take (my own system?)).
Well, the scripts would/should work with either system.  Problem is that the initrd scripts are a bit lacking.  The mkinitcpio scripts are included in /lib/initcpio/* - check under the "hooks" directory.  You don't need dhcpcd.  This is already accounted for with the 'net' hook, which is part of mkinitcpio. 
mkinitcpio -H net
for help with the net hook, and how to use it.
V01D wrote:You say I should use static busybox or with klibc. Can't I just use uClibc? (NOTE: I get a little confused about what uClibc is... I see libc6 on the ramdisk, is that uClibc?)
Both uClibc and klibc have similar goals.  Both are mini C libraries, meant to be used for small systems.  The difference is that uClibc is meant for embedded systems, and klibc is meant specifically for early-userspace.  You *can* use a pure uClibc system, but you will lose all the tools that klibc provides (ls /usr/lib/klibc/bin/*).  Admittedly, some of these are replaced by busybox, but others (which are important) may not be.  However, they should all compile under uClibc.
V01D wrote:is the new cpio system just a new way of handling file and a RAM based filesystem? or is it a deeper change compared to initrd? the whole thing about kinit confuses me a little... And I can't find much documentation about this. I mean, I saw an option on busybox's config regarding something about init and initramfs, but I don't get much about it.
In other words, how much would I have to change If I'd create a cpio with all files that are present on the initrd?
The difference between initrd and initramfs, from a consumer's persepctive, is minimal.  Instead of /linuxrc, you want to use /init as the script name.  If you were to convert the existing initrd, you would just have to rename that.
I need to stress, though, that the linuxrc for the old initrd is very very limited.  Reusing that is going to cause alot of headaches and cost you development time.  The init script and hooks that are part of mkinitcpio are much more generalized, and the system, as a whole, is hugely open to "add ins".  Maybe it would help if you explained exactly what you want to do, and I can tell you how much work it would take to do it both ways?
V01D wrote:regarding any extra program I want to add (think of the BINARY='' option of mkinitcpio), how would this be handled if I use busybox? will it see that I use uClibc? Or will it try to add klibc?
klibc is added by the 'base' hook, which is why I stated earlier that you can rewrite your own custom base hook to take care of that, or even removed base altogether.  There are only a few minor issues there.
V01D wrote:Can I add any program to the ramdisk and expect it to work (assuming it doesn't depends on any other library but libc)? I mean, does a program have to be compiled specially to be used with uClibc or klibc?
No, copying random programs to the ramdisk will fail.  You need to recompile them against klibc or uClibc, or link them statically.  You can not interchange C libraries.
I really think it would help if you describe what you're trying to do.  It sounds like you want busybox simply for convienance, and are going to cause yourself a mess of trouble just to add it.

Similar Messages

  • Error while creating Move-In - How can i Allocate Device to Installation ?

    Hello Experts,
    while creating Move-In i am getting following Error "No Devices Allocated to Installation PC0301A0 on 10.03.2011"
    How can i allocate device to installation, please advise where can i configure the settings and create Move-In without above error.
    Regards,
    Rajesh. G

    Hi Bill,
    Thanks for your responce it was helpfull, but i am trying to create Move-In with help of Contract Account. I was not able to create Move-In and i tried even with Bussiness Partner.
    When i was trying to create Move-In with the help of Business Partner Option in Move-In i am getting error as "The required index has not been created yet in the search Engine", same is happening when i am trying for Business Partner in Business Master Data. This might be the reason for Move-In creation Error, please help me where can i configure index settings for search engine for Business Partner.
    Please correct me if i am wrong.
    Thanks,
    Rajesh Gunda

  • I inadvertently removed the junk mailbox from Mail.app in SL, how can I recreate / restore it ?

    Hi,
    Well, the title says it all : I inadvertently removed the junk mailbox from Mail.app in SL,
    it still is spresent in my ~/library/mail folder, how can I recreate / restore it in mail.app ?
    Since I have a fair number of email accounts, intelligent mailboxes, rules and archive folder, I really don't want to rebuild everything. And, no, I can't use time machine to restore it.
    All help will be greatly appreciated.

    Hi AdamKB, sorry for late follow-up.
    What I lost is the "container" that groups all junk mailboxes in one place in Mail, like is done for all the inboxes.
    The problem is that I lost visibility on all junk mailboxes. It is only a visibility problem because the junk mailboxes are still present locally for my POP accounts and remotely for may IMAP accounts, I justdon't see them anymore in Mail's interface.

  • My Hard Drive is lost, how can I install my second installation on my another Hard Drive?

    Hi, I have a license of CS4 Master Collection and installed it on my laptop and on my personal computer. But the HD of my personal machine was lost and could not deactivate my installation. Now I need a new installation on my PC with another HD and I am not getting.
    How can I cancel the previous installations so I can reinstall my license?
    Thank you very much
    Paulo A. Teixeira

    My laptop was fried by lightening and had to buy a new laptop. Of course I was not able to deacivate mine either since "Thor" did not send an advance notice. What worries me more is that Adobe has not responded to your post. I have contacted them online and am waiting for an answer. I will let you know what they say when I get a response.

  • How can I do a clean installation of Mavericks 10.9.1 on Late 2013 Retina Macbook Pro

    Hi I need some help -
    I bought a late 2013 15' Retina Macbook Pro and it was shipped with 10.9.0 build number 13A3017.
    Now 10.9.1 is out, and I wanted to download the full installation image and burn it to thumb drive and do a full clean re-installation.
    But I just found Mac App Store doesn't allow me to download the full 5.29GB installation image from https://itunes.apple.com/us/app/os-x...ks/id675248567, and my current 10.9.0 can only be _upgraded_ to 10.9.1 with the 395MB incremental update package from http://support.apple.com/kb/DL1712, this upgrade package is described as "It includes all updates from OS X Mavericks 10.9.1 plus system specific enhancements to improve the stability and compatibility of your Mac."
    So maybe the full 5.29GB 10.9.1 which is available on Mac App Store is not compatible with the 2013 15' Late Retina Macbook Pro?
    I just downloaded the upgrade package from Mac App Store and now I'm running 10.9.1 build number 13B3116 fine.
    So my questions here: I really would like to do a clean full re-installation of 10.9.1. Where can I get the full installation image which is compatible with 2013 15' Late Retina Macbook Pro?

    There is a way to get yourself a fully functional install file for a Late 2013 model.
    1. Format a USB stick
    2. Reboot the Mac, and hold down CMD-R to get into recovery mode
    3. Start a new installation and choose the USB stick as a target. You should be able to choose your normal hard drive as a target, too, because as long as the installer package is downloaded, no data should be erased, but when you decide to use a USB stick, you're on the safe side.
    4. The Mac will be downloading the install package. This takes a while, the time remaining shown is not correct. If you need to have an idea how long it will take you, choose the log from the help menu during download, it will show you how many chunks are already downloaded (it was 504 chunks total for me).
    5. When the download is ready, the Mac reboots automatically, pull the USB stick when it does. If you're not before your computer when this happens, don't worry, when you come back, you will be in the setup program. Just switch your machine off by pressing the power switch for more than 10 seconds, and then pull the stick.
    6. On the stick you will find the "OS X Install ESD.dmg". Copy that file to your Mac (it's the only file you'll need from the stick. After that, you can reformat the stick and use it for the next step).
    7. You can use this file to finally create a bootable USB stick if you follow the instructions that you can find anywhere on the net or in this forum.

  • How can I test the RAC installation

    Hi All,
    I would like to test my RAC installation is done properly or not. How can I use Oracle Cluster Verification Utility this software.
    thanks,
    Venkat.

    Post-checks for hardware and operating
    runcluvfy.sh stage -post hwos -n node1,node2
    Shared Storage Check
    sh runcluvfy.sh comp ssa -n rac1,rac2
    Post-checks for cluster services setup
    cluvfy stage -post crsinst -n rac1,rac2
    Verify Cluster Integrity
    cluvfy comp clu -n rac1,rac2 -verbose
    Verify Cluster Manager Integrity
    cluvfy comp clumgr -n rac1,rac2 -verbose
    Verify Node Applications
    cluvfy comp nodeapp -n rac1,rac2 -verbose
    Verify CRS Integrity
    cluvfy comp crs -n rac1,rac2 -verbose
    Verify OCR Integrity
    cluvfy comp ocr -n rac1,rac2 -verbose
    also check:
    crsctl check crs.
    votingdisk check:
    crsctl check css votedisk
    ocr check:
    #ocrcheck

  • HOW CAN I DELETE GOPHOTO.IT INSTALLER? PLEASE HELP ME

    i don't know how can i delete this program and i need to solve this problem for work. so i'll be really grateful if someone of you can help me.
    thank you in advance.

    For Safari : it's usually just an extension found in Safari - Preferences - Extensions.
    Firefox is slightly more involved : see Adware Removal Guide : GoPhoto.it
    It might not have come on its own : so you should check where you got it from.

  • How can I get the ADI installer?

    Hi all:
    I wonder where can I find the ADI installer?
    if you cam send to me a link I will appreciate a lot.
    I appreciate your attention
    Thanks in advance.

    ADI installer is a Patch you can find in metalink
    follow this, I did it.
    ADI unable to connect to Database

  • How can i cancel an application installation that is stuck?

    I was prompted in the app store to download an update for "slides". The update was downloaded, but now it is stuck in "Installing" mode. How can  i cancel the install? I already tried to restart, but that did not help.

    Restart (reboot) Press and Hold the Home and Power buttons until the Apple Logo appears, about 10 seconds.
    Then, you may have to reinstall if it wasn't finished...

  • How can I copy the dmg installer file to a thumbdrive?

    So we purchased a new iMac. The geniuses at the apple store installed Mountain Lion using their installation software. I want a backup copy of the installation files.
    I was able to use unix/terminal to boot and display the boot disk and begin the installation process, which I intended to save to an external hard drive and copy the dmg file to a thumbdrive BEFORE the computer automatically restarted and deleted it. I even opened a microsoft word document thinking that without saving it would halt the restart process, but no. The computer restarted automatically without giving me the opportunity to copy the dmg file.
    Does anyone have any ideas? Is there a unix command to halt the restart?
    Thanks.

    What I did when I got a new Macbook Pro was to get a 16GB USB Thumb Drive (or was it 32GB) and used SuperDuper to clone the boot disk to the USB Thumb Drive.  (Carbon Copy Cloner could also be used).
    Now I have a bootable copy of my Macbook Pro while it was young and uncluttered with all my junk.  The clone  has all my extra apps, such as iPhoto, Garageband, iMove, etc... that is not part of the Mac OS X distribution, and you only get when buying a new Mac.
    When doing an upgrade, I download the new version (Lion, Mountain Lion, future "Cat"), and they quit the installer before it does anything.  Now looking in Applications, there is an "Install OS X Lion", or "Install OS X Mountain Lion", etc...  I made a copy of that app on a USB Thumb Drive or DVD.  There have also been instructions on the web about how to make this into a bootable DVD or Thumb Drive.  I have not bothered with that, as I have my above mentioned original clone I can boot from, and there is always the recovery partition I can boot from as well.
    If you wish to have the Mac boot back into the initial setup mode, you can remove the following file and reboot:
    rm /var/db/.AppleSetupDone

  • How can I recreate the Clarity effect in Photoshop CS6?

    Hi,
    I want to recreate the Clarity effect but in Photoshop CS6.. I know I have it in Lightroom and Camera Raw, but for academic purposes I need to create the same effect but using ONLY Pohotoshop CS6...
    Thanks,
    Juan Dent
    Message title was edited by: Brett N

    The original "clarity" technique is just a Midtone contrast adjustment, the original idea as far as I know is from Mac Holbert formally of Nash Editions. Recipe is below but Mac used to have an action on his web site (I have it too and could send). Or build your own. Here's the steps:
    Mac Holbert's Midtone Contrast 
    1. Highlight your top layer in your Layers Palette then: 
    2a. In CS I: Select Layer->New->Layer to create a new, blank layer at the top of your Layer Stack. Then, holding down 
    your Opt Key (Mac) / Alt Key (PC), select Merge Visible from the fly-down menu on the right side of your Layers Palette. 
    Be sure to keep the Opt/Alt depressed until you see the blank layer update. You should now have an additional layer at the 
    top of your layer stack. It represents how the image would appear if you had flattened your layers. Rename this layer 
    “Midtone Contrast” 
          -OR- 
    2b. In CS II: Holding down your Opt Key (Mac) / Alt Key (PC), select Merge Visible from the fly-down menu on the right 
    side of your Layers Palette. Be sure to keep the Opt / Alt depressed until you see the blank layer update. You should now 
    have an additional layer at the top of your layer stack. It represents how the image would appear if you had flattened your 
    layers. Rename this layer “Midtone Contrast” 
    3. Next double-click on the Midtone Contrast layer icon to bring up the Layer Style Palette. Change the Blend Mode to 
    Overlay and lower the Blend Mode Opacity to 20%. Now move the left “This Layer” slider to 70. Now Split away the left 
    side of that slider by holding down the Opt / Alt key and move it to 50. Repeat the same process on the right “This Layer” 
    slider, moving the sliders to 185 and 205 respectively. Then select “OK”. 
    4. Now select Filter->Other->High Pass. In the High Pass Palette set the radius to 50 and select “OK”. Now select Image- 
    >Adjustments->Desaturate. The Midtone Contrast layer is now complete. At 20% opacity it should be very subtle, but 
    noticable. The effect can be decreased or increased by raising or lowering the Midtone Contrast Layer opacity. I’ve found 
    that the proper setting can usually be found between 20% and 40% opacity. Above 40% one risks creating “halo” artifacts 
    that are visually distracting. 

  • How can I uninstall a damaged installation of Fusion - PFRD 11.1.1.6.0 - Oracle Portal, Forms, Reports and Discoverer

    Hello,
    I am upgrading EBS 11i to 12i, Discoverer 4 to 11. After completing ebs installation and upgrade successfully, I am now working on the Oracle Fusion piece of the upgrade.
    I have installed
    1. JDK
    2. Repository Creation Utility - RCU (schema)
    3. Weblogic - WLS 10.3.6
    4. Oracle Fusion - Discoverer 11g Release 1 Patchset 1 11.1.1.2.0 PFRD
    5. Oracle Portal, Forms, Reports and Discoverer 11g Patchset 11.1.1.6.0 - Patchset 13517084
    6. Executed config.sh and it failed with but continued.
         During the Configuration of Oracle Fusion with config.sh there was failure at with "fails at creating data sources" and accidentally proceeded and all seem to go well until after shutting down the servers when Weblogic Managed Server is unable to start.
    The start log indicated: "weblogic.store.PersistentStoreFatalException: [Store:280105]The persistent file store "_WLS_WLS_DISCO" cannot open file _WLS_WLS_DISCO000000.DAT." and I have been unable to find a solution for this error?
    See log file error at https://dl.dropboxusercontent.com/u/15497130/oracle/ebs11/startManagedWebLogic.sh_nohup.out
    If re-installation is my only option, then what are the steps to uninstall, and which components do I have to uninstall given that I had upgraded all the schemas involved?
    Mathias

    Hey,
    You can always change the JDBC datasources in the Weblogic admin console . but have you recorded what is the specific error you got during the datasources creation .
    I prefer...create a new user , give him sysdba privillages . Start RCU and create the DEV_DISCOVERER , DEV_DISCOVERER_PS schemas (prefix is your choice)
    The Admin server will start . so go to admin console .
    click services -> Data Sources
    Check the data sources you have . edit each datasource and update the connection pool information .
    after this you can start the Managed server WLS_DISCO
    i believe this will solve this .........
    if you still get issue again . you can try the link Using the WebLogic Persistent Store
    Thanks
    Naga

  • I want to replace HD with SSD... how can i make an OS installer DVD?

    I've got an SSD drive on the way, should be here in a few days.
    But the mac mini didn't come with any OS media - is there an easy way to burn myself one so I can use it to do a clean install on the new drive? I do have an external  (USB) DVD writer that works fine with the mac mini... (I used it to install win7 bootcamp).
    As you probably can guess i'm a total mac NOOB, the machine is set to boot into win7 by default and I havent really had time to even poke around in the Mac OS ( its my wife's machine, actually).  We bought it because we wanted to have a SILENT machine that didnt take up a lot of space. I have to say it does the job amazingly well ( runs win7 very fast). One of these days we're gonna try out the mac OS...

    You will have to retain the HDD because you need it to prep the SSD.
    Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    Next, you want to install Lion on the SSD:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstall Lion:
    Select Reinstall Lion and click on the Install button. When the installer prompts for the target disk click on the Show More Disks link and select the SSD as the target drive. The whole process takes a while because the Lion installer takes while to download.

  • How can I get beyond the installation error point 1336 that occurs, after I installed Firefox 3.6.16, when I try to install the latest version update to Adobe Reader?

    After installing Firefox 3.6.16, I received an Adobe Reader update alert that there was an update available. I downloaded the update and then began the installation. During the installation, I received the following alert: "Error 1336. There was an error creating a temporary file that is needed to complete this installation. Folder: C:\Program Files \Mozilla Firefox\plugins\. System error code: 5." This prevents me from installing the update -- at every attempt! Is there a user friendly solution?

    I am happy to see another person is having this jerky scroll situation with the latest update to Firefox on October 27. I did check my I.E browser and '''THAT BROWSER''' still does the nice smooth scroll....let's get 'er fixed Mozilla! I know you can!

  • How Can I Get the FULL Installer for Flash Player 11.1.102.63?

    When I try the "Download now" button at http://get.adobe.com/flashplayer/, I only get a stub installer that then requires downloading the remainder of the installer.  I maintain both my own PC and my wife's PC.  I want to install Flash Player 11.1.102.63 twice but download it only once. 
    When I instead try the link for "Flash Player for other browsers" under "Windows 32-bit", I get the full installer for Flash Player 11.1.102.62, not the full installer for Flash Player 11.1.102.63. 
    The latest version of Adobe Reader is available via FTP at ftp.adobe.com.  Why cannot the latest version of Flash Player also be available there? 

    at http://forums.adobe.com/thread/889580 the link for downloading "flash player 10", "for other browsers", still results in the OLD version of FP 10 being downloaded, not the newly updated version, build 10.3.183.16..
    in adobe's security bulletins, it says that you can download the updated versions of "flash player 10" on the "archives" webpage but there are no direct downloads for FP 10 on the webpage, except for downloading the zipped packages, with the "debuggers".. it would be good if there were direct downloads for the updated versions of FP 10..
    also, when i go to the "download center" page, http://get.adobe.com/flashplayer/?promoid=BUIGP , if i go there with "firefox 3.6", it recognizes that i am running "firefox 3.6" and offers to install "flash player 10.3", but if i go there with "internet explorer 6", it is not recognized and so i am not offered "flash player 10.3", for installing.. in this situation, i need some other way to get "flash player 10.3" for "internet explorer 6"..
    adobe should make things easier for everyone by providing direct downloads for flash player..in my case, i use "flash player 10", so i need direct downloads for it.. yes, it is nice that the downloads are posted in the forum, but why not do it right and have in on some webpage, like on the "archives" webpage where adobe says that "flash player 10" can be downloaded, except that there are no links there for downloading it..

Maybe you are looking for

  • When I try to update any applications I get the message, "invalid address" ad when I try to sign in it wont let me.

    I can't update any apps or install any new ones.  I have a balance over $30.00 and it won't let me buy anything.  What do I do to make it work?

  • EOIO & ccBPM

    Hi , We have a scenario(File -> XI -> IDOC -> SAP) where in we have to post the IDOCs in FIFO manner. We have configured EOIO in File adapter, specified a queue name , the order in which the file adpater has to read files is also set(By Date). Our id

  • What is the best way to do this artwork?

    Hi, I am fairly new to Illustrator. This design is going to be used for a repeat textile/fabric design.I am trying to trace JUST the inside of the middle square, since it is all I need at this point.  BUT, since everything extends outside of the box,

  • Flashplayer 11 or 10.3 gets a dark video record

    hi, I have a Ms personal hd webcam(livecam) , the video is awesome with fp10.2, but when I upgraded fp to 10.3 and then 11, the video gets dark, webcam's auto light correction seems noneffective.  I believe somebody is facing the same problem, who ca

  • DTD 2 XSD

    Hello, how can i convert a DTD into an XSD easily? (i want to use JAXB .. therefore i need an XSD but only have a DTD) thx