[SOLVED] Remastering official install live iso - how to create initrd?

The wiki entry about Remastering the Install ISO does not mention how to generate a custom initrd with mkinitcpio for the live cd.
Update: Thanks to djgera's answer i have been able to make it work:
Environment:
mkdir -p ~/arch/{iso,custom}
sudo mount -t iso9660 -o loop ~/archlinux-2013.07.01-dual.iso ~/arch/iso
cp -av ~/arch/iso/* ~/arch/custom && sync && sudo umount ~/arch/iso
unsquashfs -d ~/arch/custom/arch/x86_64/squashfs-root ~/arch/custom/arch/x86_64/root-image.fs.sfs
Mount:
mkdir ~/arch/custom/arch/x86_64/squashfs-root/mnt
sudo mount ~/arch/custom/arch/x86_64/squashfs-root/root-image.fs ~/arch/custom/arch/x86_64/squashfs-root/mnt
sudo mount -vB /dev ~/arch/custom/arch/x86_64/squashfs-root/mnt/dev
sudo mount -vB /sys ~/arch/custom/arch/x86_64/squashfs-root/mnt/sys
sudo mount -vt proc none ~/arch/custom/arch/x86_64/squashfs-root/mnt/proc
Copied kernel to environment:
cp ~/arch/custom/arch/boot/x86_64/vmlinuz ~/arch/custom/arch/x86_64/squashfs-root/mnt/boot/vmlinuz-linux
Chroot:
sudo chroot ~/arch/custom/arch/x86_64/squashfs-root/mnt /bin/bash
# make changes to the live system
export LC_ALL='en_US.UTF-8'
locale-gen
mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/archiso.img
rm /boot/vmlinuz-linux
exit
Moved new initrd out of environment:
mv ~/arch/custom/arch/x86_64/squashfs-root/mnt/boot/archiso.img ~/arch/custom/arch/boot/x86_64/archiso.img
Unmount:
sudo umount ~/arch/custom/arch/x86_64/squashfs-root/mnt/{dev,sys,proc}
sudo umount ~/arch/custom/arch/x86_64/squashfs-root/mnt
Create squashfs:
rm ~/arch/custom/arch/x86_64/root-image.fs.sfs
mksquashfs ~/arch/custom/arch/x86_64/squashfs-root ~/arch/custom/arch/x86_64/root-image.fs.sfs
rm -rf ~/arch/custom/arch/x86_64/squashfs-root
Create iso:
genisoimage -l -r -J -V "ARCH_201307" -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -c isolinux/boot.cat -o ~/arch/archlinux-2013.07.01-dual_custom.iso ~/arch/custom
Last edited by g3n3r1c (2013-07-28 16:26:16)

Hello
Run inside chroot:
mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/archiso.img
But doing these steps are too much complex, do not remaster (also such wiki is outdated). Just create a new customized one using archiso::releng profile.
pacman -S archiso
cd /tmp # or any other working directory with at least 3G free
cp -r /usr/share/archiso/configs/releng .
cd releng
# cutomize what you want here (look on root-image/ directory and build.sh to see how things works)
# sed 's/i686//' build.sh Do this if you not want also i686 on final iso.
./build.sh
I suggest to build a new one without any cuztomizations to see how things works, next start to cuztomize it.

Similar Messages

  • How to create a bootable clone?

    So, I'm returning after a while in Mac-land, and there's one thing I'm missing that the Mac got very right. There were several apps that would easily clone your system onto a backup disk and make it bootable. It was the best backup system I ever had. If my disk died, I just rebooted onto the other one, and when I got the replacement, I used basically the same process to do the restore.
    How can I accomplish this in Arch? The "dd the disk" method isn't going to work out to well, as I need support for disks of different sizes, partition layouts, and interfaces. Rsync seems promising, but there's a fair bit of work to do after the copy since things like FS UUIDs will be different.
    The way this works on Mac is basically like this:
    1. rsync the source to the destination, excluding a few things that are useless, as recommended by Apple.
    2. Make the clone bootable. This is easy on Mac as boot code is never written outside the root FS, and doesn't even need to be installed into the FS header - all that has to happen is that the inode number of the boot code is written to a specific spot in the HFS+ header.
    3. The Mac's firmware (either PPC OpenBoot or X86 EFI) will scan all attached disks for bootable filesystems and show a list for you to pick, when interrupted with the right key.
    4. The root FS is always the boot FS, which eliminates the need for configuring the root FS in the boot code on fstab. It just mounts whatever it booted from as root. This neatly eliminates the need to post-edit these files after a clone
    As I see it, the difficulty of automating this process in Linux really has a lot to do with the lameness of the PC BIOS.
    I don't want to roll my own cloning code. Backups are too important to trust it to the kind of dirty hack I'd come up with. What can I use?

    So, I feel I have to respond somehow to this, so as not to seem ungrateful for the nice responses, but none of these answer the question I actually have. I think the typical Arch-user's DIY attitude goes a bit too far, sometimes.
    I know how to copy the files over, how to change the UUIDs, how to install GRUB, and how to create the 3 magic device nodes (null, console, and zero, for future reference). Just about any of these suggestions would be fine for a one-time or once-in-a-while process, but I want something that's painless enough to use as a daily backup routine. There's also the problem that they don't handle well the case where I don't want to take over the entire backup disk, and especially don't handle odd cases such as GPT disk format, where you shouldn't install boot code into the partition table area. They also aren't designed for the case where the backup device is an external disk which isn't intended to be remounted internally when disaster strikes, or the case of laptops where you don't want to have to remove /dev/sda from your machine to test.
    Basically, it amazes me that apparently nobody has written software yet to automate what's probably a very common desire. Google didn't find anything of the sort, so I came here to ask actual human beings. (Yet another case where Google is not wrong )
    Where I'm at now is to rsync everything and create the 3 device nodes, and then stop. This gets me to the 90% mark, is simple enough to be foolproof, and makes restoring the same as backing up. If there's no professional-feeling way to do the rest, I'll stop there.
    None of this post is intended sarcastically, and please don't take offense at my laundry-list of complaints for the suggestions given. I think my posts could stand to be a little clearer if a paid sysadmin with 11 years of Linux background can gather responses that say things like "use cp" and "DONT USE THIS COMMAND UNLESS YOU KNOW WHAT YOU ARE DOING"

  • How  to creat  Video Playlist

    Hi,
    Do anyone know if we can creat a video playlist in the ipod 30G? I try to creat it in itunes but it didn't work at all.
    Thanks

    Is the playlist not working or is it not appearing on the iPod when you update?
    Depending on what sort of video you are trying to capture create a Smart playlist with the following rule:
    "Video Kind">"Is">"Music Video" or "Movie" or TV Show"
    Tick the box "Live Updating"
    How to create a Smart Playlist with iTunes

  • When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    I'm not sure I understand the question, is the message tone going more then once?
    Turn off repeat message alert here:
    settings > notifications > messages > repeat alert > never
    Some people have found this does not stop the repeat miessage tone,
    if you are one of those then I suggest you contact Apple:
    http://www.apple.com/feedback/iphone.html
    They may not respond, but hopefully will fix in uodate if enough people complain.

  • How to create bootable iso file from usb flash drive to install windows 7 on macbook early 2008

    how to create bootable usb flash drive from iso file to install windows 7 on macbook early 2008

    I would like to install windows on my mac because I am in engineering school and there a lot of programs I'd like to have on my computer that only run on windows.  And yes I'd like to use bootcamp and I know there must be a way to install off a flash drive.  Do you know of a way?

  • Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem

    Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem

    alamzeb wrote:
    Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem
    Have a read under the threads on the Right hand side of this page under 'More Like This'
    Pete

  • Remastering the Install ISO issue

    Hello,
    I followed the Remastering the Install ISO and everything was succsessful, but after i dd-ed the iso on my USB there is no promop from syslinux for booting.
    I checked the LABEL and it is the same. I tryed with the original iso and it works.
    I tried it with archlinux-2013.03.01-dual.iso.
    Thanks for eny help.

    I've tried the CD and it gives me error when starting to install the packages, it says that acl(the first package) couldn't be find in the database, there's a core.cd.tar.gz file inside, Any ideas?
    in the installation it gives me an error complaining about being unable to find core.db.tar.gz, and durng mkbootcd the same
    ==> ERROR: could not find libgcrypt-1.2.4-3-i686.pkg.tar.gz - skipping
    ==> ERROR: could not find kernel26-2.6.23.9-1-i686.pkg.tar.gz - skipping
    creating repo DB...
    :: no packages modified, nothing to do
    mv: cannot stat `/tmp/db-generate.785/core.db.tar.gz': No such file or directory
    warning: current locale is invalid; using default "C" locale
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db.tar.gz' from  : No such file or directory
    error: failed to synchronize core: No such file or directory
    error: failed to synchronize any databases
    mv: cannot stat `/tmp/pacman-repo.803/core.db.tar.gz': No such file or directory
    :: Parsing hook [arch_acpi]
    :: Parsing hook [arch_bootmessage]
    but I have, a core.db.tar.gz in the packages directory
    updates: I'm stupid, it couldn't find the files because it was looking in the wrong dir, and, yes, you can hit me
    Last edited by ornitorrincos (2007-12-10 21:52:07)

  • [solved :=)]multiple live iso's on a usb

    I _know_ this is not a arch-related question, so before anyone jumps at me ... I do apologize!
    I always carry some live cd's with me wherever I go, more specifically - 'grml' and 'linuxmint'.
    Why?
    'grml' is the best collection of cli-tools I have ever come across.
    'linuxmint' is about the only distro I have seen that just works right out of the box (ie out of the live-cd), wireless, sound, video - yeah man!
    So - I want a bootable usb-stick that really, really should only contain the following (on _one_ single partition)
    /grub (with the stage-1, stage-1,5 and stage-2 files as well as a menu.lst)
    /grml_xxx.iso
    /linuxmint-xxx.iso
    /any_other.iso
    ie I can set up grub - that's no problem - but how, oh dear - _how_ do I boot an iso from grub?
    I have googles and read until my eyes go misty, but I have not found a satisfactory answer. Yes - there are suggestions about using grub2, extracting the iso's etc etc (unfortuneately, doing that, the names are the same (like boot and syslinux) so I have problems visualizing how it all could work.
    Of course - what I _could_ do would be something like this:
    /grub
    /grml
    |- extracted grml-iso
    /linuxmint
    |- extracted linuxmint-iso
    I must admit - I haven't really tried out this solution.
    Another way would be to have the extracted iso's on different (bootable) partitions and then chainload. I have tried that, but somehow it didn't work out for me.
    Does anyone have a working solution?
    I would prefer to use the 'old' grub - grub2 leaves me cold, but if I have to, I'll go with it.
    I'm not too concerned about making it writeable - a straight emulation of r/o cd will do fine.
    During my googles I have come across entries like "boot=live", "iso-scan/filename=/linuxmint-xxx.iso" and some other rarities that I cannot find in the grub documentation (they are on kernel-line of menu.lst). There are also things like "map --hook" that I can't find in the documentation.
    I don't know whether or not I am being stupid - maybe those fancy entries are for grub2?
    Any suggestions are (more than) welcome!
    Last edited by perbh (2010-02-24 19:18:49)

    I set the folder structure exactly as the link above says for grml.  so, created folder called /iso inside boot folder.
    Redid the grub.cfg and sure enough, much to my surprise grml booted.
    So, I've deduced that it's the /grmlsmall that's the cause as I deleted that part in all my attempts.
    So in this example (link) from the above post I believe I can now put the iso back to the usb stick's root level with the rest of the iso's and edit out or change/shorten the /boot and /boot/iso parts - though I should need to leave the /grmlsmall/ for sure.
    I guess for grml-medium there would need to be /grmlmedium  and for the full sized/regular grml perhaps just  /grml
    The above's not very very clear though I hope it's clear enough if anyone's having the same problem.
    have to have a think about this as I guess it's hardcoded or I've missed something as to why I need to have /grmlsmall/
    menuentry "TEST Grml ISO folder small 2009.10" {
      loopback loop /boot/iso/grml-small_2009.10.iso
      linux (loop)/boot/grmlsmall/linux26 findiso=/boot/iso/grml-small_2009.10.iso apm=power-off lang=us boot=live nomce noeject noprompt --
      initrd (loop)/boot/grmlsmall/initrd.gz

  • How To Install Live Type In 10.8.3

    Hi My self Varun, My English is not Good.
    I am using 10.8.3
    and i have Final Cut Studio 2.0 (48.52 GB)
    1st i installed rosetta from my 10.6 installer
    In 10.6 DVD there is a folder name Optional Installs.mpkg, run it and install rosetta, bcoz FCS 2 works with power pc and rosetta is a part of Power pc.
    install rosetta.
    Then Run FCS 2
    first this window will open
    Press OK
    then this window is open
    and finaly this window will appear
    If u need only Live Type so uncheck the otheres, then install it.
    After installing Live Type there is no live font in it, So you have to Run the other components of Live Type from FCS 2 folder
    and Enjoy!

    1.  REMOVE ROSETTA from your Mountain Lion Mac IMMEDIATELY:
    https://discussions.apple.com/message/22013952#22013952
    2.  Use Pacifist to install FCS2 into Mt. Lion:
    http://www.charlessoft.com/
    or
    3.  Use Terminal to install FCS2 into Mt. Lion:
    http://www.jeremyjohnstone.com/blog/2012-03-11-installing-final-cut-pro-studio-2 -0-on-mac-os-x-10-7-lion.html

  • [SOLVED]Trying to configure terminal like live iso

    I was using new live iso, and terminal looked really nice, where can i get the information what is it using?
    Last edited by ivokosir (2013-03-09 01:02:31)

    I thought of converting to zsh, because someone I have a lot of respect for uses it and I thought I'd see what the whole deal was about. Jason's point comes to mind as to why I just gave up after reading up on it and the fact that bash is pretty much the standard shell that most will provide and it becomes a hassle at work having to remember bash syntax (once you get used to zsh -- as is the case with any software). People started looking at me funny when I kept confusing things at work. So I decided that I will switch to zsh after retirement.

  • [SOLVED]possible to make live image of a current running arch system?

    Hi Friends!!!. Is it possible to make live iso image of a current running arch system? are there any tools available for that?(I want to do this cause When i install a new arch system, I want to remain my own customizations intact)
    Last edited by Pranavg1890 (2012-10-14 07:29:58)

    OK, so after reading the posts, I think that this is not possible.but i think this sould be feature which should be researched upon cause everytime I install arch on a new machine(arch reinstalls on same machine are very rare cause it's a rolling release and has excellent recovery tools) I have to spend a 5-6 hours of time configuring the system.so, i think it should be a feauture that should be worked upon.for eg. like you could chroot into the iso created and then replace the deafult configs by the one on your system or a system scanner which scans the changes on the system with respect  to default arch installation and make the necessary changes to the live image.Thanks friends for your replies. I mark this thread as solved.

  • I'm trying to install an update to itunes that downloaded but can't complete installation as its trying to install onto D: drive. I don't have a D drive and i'm not given option of selecting the drive to install on. How can i select the drive that i want

    I'm trying to install itunes but can't complete installation as its trying to install onto F: drive. I don't have a F drive and I'm not given option of selecting the drive to install on. How can I select the drive that i want to install on?

    Hi,
    How do you connect the printer to the XP machine ? If USB, you need to make that machine as a Print server. Please try this:
       http://techtips.salon.com/make-windows-computer-pr​int-server-11914.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to create a bootable OEL5.8 .iso from scratch?

    Are there any instructions available about how to create a bootable .iso file, for installing OEL5.8, from scratch?
    We need to build a system which is a customised version of OEL5.8; we want to add some extra RPMs and remove others. We have an older build system which does this based on OEL5.5, but the way it has been built makes this hard to upgrade. We'd like to try starting from OEL5.8 again.
    One possibility would be to download the initial OEL5.8 .iso; mount this as a loop-back filesystem; adjust some RPMs and config; then re-create an .iso from this file. However, this doesn't allow us to update the kernel very easily. We'd prefer an approach which starts from a set of RPMs (perhaps including modified kernel RPMs) and builds the .iso from scratch.
    Many thanks for any pointers.
    Edited by: user11244224 on Mar 5, 2013 7:16 AM

    You cannot simply edit an .iso image file because the iso9660 filesystem is read-only. And even if you create your own iso image from scratch, with a bootable code, any package you add will not be part of the initial installation, unless you recreate the appropriate software repository database and anaconda installer. Sounds like overkill to me for what you are describing.
    Why would you want to go through the endeavor to adjust the Oracle Linux distribution DVD for the purpose of creating a customized system? Why not using Kickstart instead, or a simply create a post-installation script to modify the installation to your needs?

  • Installing Live Cache Server on SCM 4.1 system

    Hi All,
    I have installed an SCM 4.1 Abap + Java System and Live cache client was installed during SCM 4.1 installation.
    I would like to install Live cache server and i have problems with it.
    I have downloaded the following installation guide
    SAP liveCache 7.5.0 For SAP SCM Server 4.1
    Document Version 1.02 u2013 April 8th, 2005
    Guide tells us to use installation master CD for installating Live cache Server but note 708118 tells us to use the CD 51031447
    04 Nov 05 Windows AMD64: Start Installation from liveCache CD
    Start the installation of the liveCache server or client from the liveCache
    CD (number 51031447) and not from the installation master CD (number
    51031443)
    Upon checking the cd 51031447 i see SDBINST.exe and upon clicking it i get the following screen
    Installation of SAP LiveCache Software
    existing profiles
    0: APO Livecache
    1: Runtime for SAP AS
    2: DB Analyzer
    3: JDBC
    4: Server
    5: Loader
    6: ODBC
    7: All
    8: None
    Please enter profile id :
    I select profile 0 and it comes back with another user input option
    Im searching for a document which gives me the procedure for installing Live cache using SBDINST.exe
    Regards,
    Ershad Ahmed.

    Hi All,
    I went ahead with Option 0 and it asked me for Kernel file and i provided the files.
    I checked logs in /sapdb/wrk directory and i see that Installation of SAP livecache finished successfully.
    From LC10 i gave database connection name (LCA) and clicked on live cache monitoring and it comes back with an error
    Name and Server : LCA - XXXXXXX (XXXXX = Server Name)
    DBMRFC Function: DBM_EXECUTE
    Command: dbm_version
    Error: DBM Error
    Return Code : -4
    Errror Message: database instance not found.
    Application Server:  XXXXXX                     ( Windows NT )
      1. Connect. test with "dbmcli db_state"
         Error! Connection failed to node XXXXXXX for database LCA: database instance not found
         External program terminated with exit code 2
      2. Connect. test with command mode "dbmrfc db_state"
         Name and Server     : LCA - XXXXXXX
         DBMRFC Function     : DBM_EXECUTE
         Command             : db_state
         Error               : DBM Error
         Return Code         :         -4
         Error Message       : database instance not found
      3. Connect. test with session mode "dbmrfc db_state"
         Name and Server     : LCA - XXXXXXXX
         DBMRFC Function     : DBM_CONNECT
         Error               : DBM Error
         Return Code         :         -4
         Error Message       : database instance not found
      4. Connect. test with "native SQL"  ( LCA )
         For detailed information, see the developer trace for work process:          1
    From the OS level i gave command dbmcli db_enum and i get OK as reply.
    Can someone please let me know how to resolve this issue.
    Regards,
    Ershad Ahmed.

  • In windows live mail, how do i increase font size?

    in windows live mail, how do i increase font size?
    This question was solved.
    View Solution.

    Hi,
    There is a guide to this on the link below.
    http://www.webdevelopersnotes.com/tips/windows_live_mail/windows-live-mail-font-size.php
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for

  • Odd problems with Spry features

    I have finished a site at http://www.magnoliaparkburbank.org that uses many Spry features such as autosuggest, master-detail regions and css classes built into the xml files. The site has been developed on a Mac but I have a BrowserCam account with r

  • Time Capsule, Time Machine, Lion, repeater.

    Need to upgrade home network for more space, longer range, upgrade to Lion. Have an existing router, Netgear, that does not reach all areas and devices. Would also like to set up a wireless backup for all computers on network. Of course we need to up

  • Freight in Service PO

    HI All, How to create an accrual key / accounting key in the service pricing procedure. I have created a condition type for freight and I want this to be accounted to a separate line (Freight Clearing account) while service entry sheet is done. Regar

  • Maxlscript for backup of log files

    Hi All, I want the maxlscript for the taking the backup of the log files in the essbase server and after taking the backup delete the log files content from the server logs.After that when ever i take abackup of the logsfrom the server it should do t

  • Error when determining the CTIADM_PROF profile for Agent 1010301

    Hi, here problem is while opening the cic win( Trn : CIC0 - Customer Interaction Center) it's throwing <b>error when determining the CTIADM_PROF profile for Agent 1010301</b> pls. any ideas would be greatfull. Thanks