Autopopulate archiso from an existing archlinux installation?

(not entirely sure this is correct forum section for this, but it's at least closely related)
has anyone created a script to automatically populate archiso with the relevent data extracted from an existing arch installation?
so you can basically clone your current setup to an iso file, ready for live use as cd or usb.
or are there scripts that bypass archiso and can independently create a nicely squashfs'd/lzma'd  iso, automatically, from the current installation?
... i want a "and-the-monkey-pushes-the-button" solution.

I was looking for the same, so i made a
pacman -Q|cut -d " " -f 1 >packages.list
but to my 'bug' surprise, mkarchiso is unable to locate any pkg i installed from aur.
Is there a way to tell mkarchiso to use local packages?
-EDIT-
I've tried to create .pkgs via bacman and put them in /var/cache/pacman/pkg, but still not avail:
#> bacman caps
#> mv caps-0.4.4-1-i686.pkg.tar.gz /var/cache/pacman/pkg/
#> make all
error: target not found: caps
make: *** [root-image] Error 1
#> pacman -Q caps
caps 0.4.4-1
Last edited by kokoko3k (2011-05-24 07:57:17)

Similar Messages

  • Installing from an Existing ISO Image

    I would like to install and configure an Arch Linux system inside a virtual machine and then deploy that image to my laptop as a complete, working system. Is this at all possible? I saw things on the wiki about installing from an existing Linux installation that pointed suggestively in the direction I wanted to go, but it’s not clear to me whether this is doable or how to go about it.
    Archiso allows one to create custom bootable media, sure, but, as I understand it, you have to know exactly which packages you want beforehand. You can’t run the system and tinker with it before deploying. Would it make sense to configure the system in a virtual machine and then use that VM’s package list and /etc directory with archiso to make the custom system?

    Hi, welcome to Arch. Installing Arch from an existing installation means, if you have Ubuntu installed and want to install Arch from that installation.
    If you want to use a VM as your host system, then you need to clone/image the system and restore that image to your host, you can use clonezilla for that.
    I use archiso almost on a daily basis, it's very handy to try new things, e.g. a completely different setup from the one you have now. It's no problem to use the package list you made for archiso, for your future system.
    I don't see a problem in which packages you should choose beforehand, this mostly is a evolving thing, at least that's how I see it. So, if you have a working archiso, you are adjusting the configs, try it, and add the diff's to your build files, build you ISO, again try, add diff's to build files etc. etc. etc. , you get the point? Happy arching;)

  • Larch-4 testing, can also 'livify' existing Arch installation

    I've uploaded a testing repository for larch-4 to:
    ftp://archie.dotsrc.org/projects/archie/larch/testing
    It has some added features which need testing - especially with USB, which is difficult for me to test because my computers are rather old and don't support USB boot.
    It should now be possible to adjust the session-saving behaviour without modifying the larch scripts - additional scripts (hooks / event-handlers, call them what you will ...) can be placed in a 'scripts' folder in the root directory of the boot device (using the profile mechanism) to adjust loading and saving of overlay files. Initial description (sorry, it's still rather sketchy) in the session-saving doc page.
    The home directory is now a separate sqf (not overlayed).
    Added options to mklarch to build a CD/USB-stick from an existing Arch installation. This can be done, for example, from a live CD (using the -x option) or even from the system itself while it is running (option -X). This could be rather dangerous - don't do it on your main installation. I've tried it out - without obvious damage - on a test installation, and it looked quite promising, but be careful.
    Added option -r to mklarch to ensure regeneration of base and system sqfs when 'reusing' an installation (with options -b, -x, -X).
    Changed the place where the live CD is built (default /home/larchroot) and the structure within this folder. The installation is now made directly to this location and the building is done in subfolder .larch, where the final iso also lands.
    To use it, just copy the larch-setup.sh script to an empty folder and run it (as before). Then you have the new mklarch set up and ready to go.
    Feedback welcome.

    spookykid wrote:
    Hi gradgrind, this tool is really what I'm looking for. I have 3 partitions: /dev/sda1 -> swap; /dev/sda2 -> reiserfs (partition where my system is installed); /dev/sda3 -> reiserfs (partition where I'm running mklarch script). I want to try larch but I have a few questions.
    1) To create a LiveCD from my current arch setup I only need to  run
    ./mklarch -X
    If you're running the system you want to save, yes. But from your description it sounds like you're doing something else. Do I understand correctly that you have some other system unrelated to sda2 on sda3 and you want to run mklarch from sda3? And what you want to livify is sda2? Then you need to do something like:
    # mount -o dev,exec /dev/sda2 /mnt/sda2
    # ./mklarch -x /mnt/sda2
    Note the small 'x'.
    spookykid wrote:2) Is it possible to add gensplash to larch?
    Sorry, I have no idea about gensplash. If it's supported by Arch then it should work with larch too, but it's not something in which I have any interest.
    spookykid wrote:3) For what I've read about larch I can have a system installed with 4 GB and that will fit on a 700 MB CD?
    I hope I didn't write that. You might need that much free space to build a 700MB CD, but a more accurate estimate of what fits would be about 2GB. If you want more you'll need correspondingly more free space and a DVD or a large USB-stick.
    spookykid wrote:4) Larch will only go for my /dev/sda2 partition (where i have my system) or will it add all available partitions to the live image?
    It just packs up what it finds at the mount point, so if you've got other stuff mounted within the system (I guess in your case you probably haven't) don't be surprised if it tries to pack that up too. I think (I hope!) it ignores stuff mounted within /mnt and /media, but I'd have to look at the code again to be sure. For people who have /home or /var or whatever on separate partitions it is necessary to mount these before running mklarch.
    If you use 'mklarch -X' (big 'X') to build a live CD from the currently running system, all the mounts should be ok anyway, but I think that in general building from a separate system, as you seem to want to do might be slightly safer.
    In any case, please back up anything important before running mklarch - just in case! It runs as root and could do all sorts of nasty things. I don't think it will, but don't blame me if it feeds your grandmother to the ravenous bugblatter beast of Traal

  • How do i load content from an existing ipod to a new computer and installation of itunes?

    how do i load content from an existing ipod to a new computer and installation of itunes?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • Not able to create XML from an existing relational database

    Hi,
    I am trying to create and xml from an existing relational database. I am not able to get any XML data, I receive "XMLTYPE()" as the result.
    Here's the query -
    SQL> select o.order_id, XMLELEMENT("order", XMLATTRIBUTES(o.order_id as ID)) AS "result" from order_
    info o where order_id=2793;
    ORDER_ID
    result()
    +2793+
    XMLTYPE()
    I was expecting to get +<order id=2793 />+ instead of XMLTYPE().
    I am using -
    SQLPlus: Release 9.0.1.0.1*
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    I have also run some checks to confirm XML DB installation -
    SQL> select 1 from all_users where username  = 'XDB';
    +1+
    +1+
    SQL> desc RESOURCE_VIEW;
    Name                                      Null?    Type
    RES                                                SYS.XMLTYPE
    ANY_PATH                                           VARCHAR2(4000)
    RESID                                              RAW(16)
    I think, I have something wrong with installation or configuration.
    Any idea about what have I done wrong here?

    Works fine now. Got the result "<order ID="2793"></order>".
    Thanks. :-)

  • Script to Create Database from an Existing One

    I believe there is way to generate a script for re-creating a database from an existing database. But I forgot how. Anyone can Help. Thanks.

    Hi,
    Run the dbca.bat which in the oracle installer,
    In the last option you will get two options
    1)to create database
    2)create the script
    Here generate the script and run it in sql,
    Before that create the oracleservice and connect to the instance
    and run the script.
    Regards,
    Nirmal

  • Archlinux installer and dm_crypt

    Hello all,
    I'm a new convert to Archlinux and (I have a fully installed Arch system now but) I'm a little bit confused on how to set up an encrypted partition via the Archlinux install media (because I would really love to have an encrypted home partition, which currently I don't have).
    From the Archlinux wiki ( http://wiki.archlinux.org/index.php/Sys … 2009.08.29 ) one notes this statement:
    Since Arch Linux 2009.08 the installer supports dm_crypt and LVM (and combination of both) out of the box. Just run the installer as usual, i.e. follow the Official Arch Linux Install Guide or the Beginners' Guide. When you reach the "Prepare Hard Drive(s)" don't use "Auto-Prepare" but set up your partitions manually...
    At first select the device corresponding to your unencrypted /boot partition, choose e.g. ext2 as filesystem and select /boot as the mountpoint. For all other partitions you created and which you want to be encrypted select dm_crypt in the filesystem dialog.
    However, when configuring my partitions and then selecting a filesystem (by pressing "t") I am not offered dm_crypt?
    Thus I must ask: Is dm_crypt labeled something other then dm_crypt in the filesystem menu, or am I misunderstanding how to set up encrypting partitions via the Arch install media?
    If it's the latter can some kind soul help me understand what it is that I am misunderstanding, because it seems rather straight forward from the wiki?
    Thanks in advance,
    sintas

    Hello all,
    So like I figured out where my problem was...
    I mistakenly took cfdisk as the tool in which one sets the filesystem (press "t" while in cfdisk), but no there is another step after this (and others as well) in creating an encrypted partition via the Archlinux installer.
    Over all it was easy, really .
    However, there is one question I have...
    How does one figure out the exact megabytes needed to create a full (full as in all megabytes) partition?
    Because when one is setting up the lvm it only offers 5000 megs and it seems that there's a point, in that even though cfdisk states I have X-many megabytes I cannot fully use them, in that I use the exact amount of megs stated by cfdisk the creaction of the lvm partition fails.
    Is there a tool for converting disk space or something?
    Thanks,
    sintas

  • How do I delete some pages from an existing pdf file?

    I have an existing pdf file that is too large to send to some people. How can I delete some pages from this existing pdf file, and break it up into two files?

    Acrobat
    You can download a 30 day trial at that link.
    You may also be able to do it with CreatePDF, but I'm not sure.

  • How to create a Group from an existing email -

    I just want to create a Group from an existing email received.  Don't want to add people individually to Address Book, then drag them to the Group.  Would prefer to copy/paste the addresses into the Group.  I'm part of a team at work wth 25 people!  Do I really have to add their addresses individually?  Seems ridiculous.  Don't even need their names - just the emails, so when I type in "United," for example, I get all the folks in that Group which is named "United."
    Thanks.

    There was a "magical" set of Applescripts that would have done that, but it no longer works.
    There is no way in the OS to do that besides making the Applescript yourself using the current Script Editor.
    Another way to do what you want is to select all of the addresses (select one, then cmd-A). Then, drag the selection to somewhere in the Finder. That will create a text clipping. You can then drag that text clipping into the address field in Mail.
    The text clipping will be named with the first few email addresses. You can rename it in the Finder.
    Each one can be your own "distribution" list.

  • Can I create a mirrored RAID1 from an existing striped RAID0 without erasing the data?

    I have a 1.5 TB striped RAID0 with 3 500 GB drives. I have a clone of the data from the 1.5TB RAID on a non-RAID 1TB drive and a 500GB drive. I'd like to create a RAID1 mirrored set out of all of these disks. I can partition the 1TB into 2 500GB drives and combine that with the other 500 GB. I'd rather not erase the data to create the mirror. Is there a way to rebuild a mirrored set from the existing 1.5 TB striped set, or do I need to start all over? I have a third copy of the data that I could put on the new mirrored RAID if necessary.
    The data is aperture, itunes and imovie libraries. To back up a minute, is having a RAID1 a good option or is there a better solution that I am not considering?
    PS I'm using a 2.53 GHz macbook pro unibody with 8GB of RAM.

    First off a mirrored RAID requires two drives of equal size (could be two striped RAIDs of equal size.) So, as I understand what you have to work with you can create a single 500 GB mirrored RAID using two of the 500 GB drives.
    You could create a striped RAID array using two of the 500 GB drives, then combine it with the 1 TB drive you have to create a 1 TB mirrored RAID. But this would not be the best alternative because if one of the smaller drives in the striped array fails then you lose everything on those drives. Not so bad as long as the single 1 TB drive is OK.
    Also, you might find this information helpful:
    RAID Basics
    For basic definitions and discussion of what a RAID is and the different types of RAIDs see RAIDs.  Additional discussions plus advantages and disadvantages of RAIDs and different RAID arrays see:
    RAID Tutorial;
    RAID Array and Server:
    Hardware and Service Comparison.
    Hardware or Software RAID?
    RAID Hardware Vs RAID Software - What is your best option?
    RAID is a method of combining multiple disk drives into a single entity in order to improve the overall performance and reliability of your system. The different options for combining the disks are referred to as RAID levels. There are several different levels of RAID available depending on the needs of your system. One of the options available to you is whether you should use a Hardware RAID solution or a Software RAID solution.
    RAID Hardware is always a disk controller to which you can cable up the disk drives. RAID Software is a set of kernel modules coupled together with management utilities that implement RAID in Software and require no additional hardware.
    Pros and cons
    Software RAID is more flexible than Hardware RAID. Software RAID is also considerably less expensive. On the other hand, a Software RAID system requires more CPU cycles and power to run well than a comparable Hardware RAID System. Also, because Software RAID operates on a partition by partition basis where a number of individual disk partitions are grouped together as opposed to Hardware RAID systems which generally group together entire disk drives, Software RAID tends be slightly more complicated to run. This is because it has more available configurations and options. An added benefit to the slightly more expensive Hardware RAID solution is that many Hardware RAID systems incorporate features that are specialized for optimizing the performance of your system.
    For more detailed information on the differences between Software RAID and Hardware RAID you may want to read: Hardware RAID vs. Software RAID: Which Implementation is Best for my Application?
    Do You Really Need a RAID?
    There is only one thing a RAID  provides - more space.  Beyond that a RAID can’t help you with:
    Accidental deletion or user error
    Viruses or malware
    Theft or catastrophic damage
    Data corruption due to other failed hardware or power loss
    Striped RAIDs have a higher failure risk than a single drive
    The purpose of a RAID is to provide high speed mass storage for specialized needs like video editing, working with extremely large files, and storing huge amounts of data.
    If your array fails it means complete loss of data and hours of time to rebuild.  RAIDs degrade over time necessitating many hours of restoration.  And, if you don't know much about RAIDs then you really don't need one.
    You can use a RAID for backup.  But unless your backup needs involve TBs of data requiring rapid and frequent access, why bother?  TM works in the background.  It's not like you have to sit there waiting for your backup to be completed.  Furthermore, you're buying two drives possibly to solve a problem where a single drive will do.  And, one drive is less expensive than two.
    Ignoring overhead, two drives in a RAID 0 (striped) array should perform about twice as fast. However, as the array fills up with files that performance will degrade.
    RAID was a technology that in it's time was meant to solve a problem.  Large capacity, fast drives were extremely expensive.  Small drives were cheaper but slower.  However, combining these cheaper drives into arrays gave faster performance and the larger capacity needed for data storage needs.  Thus, the reason why it's called Redundant Array of Inexpensive Drives.  But today you can buy a 3 TB drive with performance that's better than the 1 TB drives of two or three years ago.

  • How to create a table from an existing table with new column

    Hi !
    Please help me.
    I want to create a table from an existing table with data and add two new column to the new table.
    What will be the syntax?

    craete table new_table as select a.*, 'somevalue' new_col1, 'somevalue'
    new_col2 from old_table a;Also there is a pitfall - newly created table will accept column type and precision from the select statement, so further you can be needed to modify columns
    if you want to have VARCHAR2 instead of CHAR for example:
    SQL> create table new_dept as select dept.*, 'New data' new_col from dept;
    Table created.
    SQL> desc new_dept
    Name                                      Null?    Type
    DEPTNO                                             NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    NEW_COL                                            CHAR(8)
    SQL> alter table new_dept modify (new_col varchar2(8));
    Table altered.
    SQL> desc new_dept
    Name                                      Null?    Type
    DEPTNO                                             NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    NEW_COL                                            VARCHAR2(8)Rgds.
    Didn't see michael's post - it reflects the fix for this problem using CAST.
    Message was edited by:
    dnikiforov

  • I am trying to install iTunes 12.0 on my Windows 7 PC to sync my iPhone6. I am getting error message, "Item already exists" on installation of iTunes 12.0.  Apple has no fix. Help???

    I am trying to install iTunes 12.0 on my Windows 7 PC to sync my iPhone6. I am getting error message, "Item already exists" on installation of iTunes 12.0.  Apple has no fix. Help???

    Item or object?
    For "Object already exists" or "Access denied" errors when installing try opening Control Panel > Programs and Features > View installed updates then checking for Security Update for Microsoft Windows (KB2918614). Uninstall if you have it, then reboot and try installing again.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Help with creating a new XML file from an existing DOM tree!!

    i want to create a new XML file from an existing DOM tree
    i used this code to create a new document:
    static public Document createDocument(String fileName) throws ParserConfigurationException//,IOException,SAXException
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringComments(true);
                   factory.setIgnoringElementContentWhitespace(true);
                   factory.setValidating(true);
                   DocumentBuilder builder =factory.newDocumentBuilder();
                   return builder.newDocument();
    //          handle exception creating DocumentBuilder
              catch ( ParserConfigurationException parserError ) {
                        throw new ParserConfigurationException();
              }then i used this code to transform the DOM :
    public void exportDocument(Document document) {
              try {
                   Source xmlSource = new DOMSource( document );
                   Result result = new StreamResult( System.out );
                   TransformerFactory transformerFactory =
                        TransformerFactory.newInstance();
                   Transformer transformer =transformerFactory.newTransformer();
                   transformer.setOutputProperty( "indent", "yes" );
                   transformer.transform( xmlSource, result );
           //then catching the exceptions
    But the file was not created and i didn't find where can i specify the DTD that the XML file should use and where can i enter the name of the XML file itself
    Another questoin can i write a DTD file dynamically during the execution of the program??

    Cross-post: http://forum.java.sun.com/thread.jspa?threadID=784467&messageID=4459240#4459240

  • Creating new graphics object from a existing one and sending it for print

    Hello,
    i have a graphics object which is big in size, I am creating a new graphics object from the existing one as given below
    //map is a graphic object
    Graphic g1 = (Graphic)map.create(x,y,width,height);
    Graphic g2 = (Graphic)map.create(x,y,width1,height1);
    Graphic g3 = (Graphic)map.create(x,y,width2,height2);
    arrayList.add(g1);
    arrayList.add(g2);
    arrayList.add(g3);
    Now I want to send the graphic object g1,g2,g3 for print in the method
    public int print (Graphics g, PageFormat pf, int idx) throws PrinterException {
    // Printable's method implementation
    if (curPageFormat != pf) {
    curPageFormat = pf;
    pages = repaginate (pf);
    if (idx >= 3)) {
    return Printable.NO_SUCH_PAGE;
    g = (Graphics) arrayList.get(idx);
    return Printable.PAGE_EXISTS;
    This is not working... what is wrong. can anybody suggest..
    I tried standardprint.java to print a object inside a scrollpane, it is not printing the entire diagram. so I am thinking of something like this.... Please let me know what to do....
    Thanks
    Serj

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I have just upgraded from Elements/Premiere elements 11 to version 12. I am running on a PC with Windows 7. When I try to run video from the existing catalogue or video newly imported I get a window stating "....system does not have the required compresso

    I have just upgraded from Elements/Premiere elements 11 to version 12. I am running on a PC with Windows 7. When I try to run video from the existing catalogue or video newly imported I get a window stating "....system does not have the required compressor/decompressor (codec) installed" Where has it gone? Where do I get a new one? I am getting REALLY REALLY fed up with trying to find an answer!!!!!!!!

    Try to disable hardware acceleration in Firefox.
    *Firefox > Preferences > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Have Elements 10 with 3 CDs,when put on computer says serial

    I don't want to discuss this; I need an immediate answer from Adobe. Why isn't there anyone to talk to other than a "forum?" I need IMMEDIATE answers. I'd like to actually use my Photoshop today, not after everyone has discussed it. 

  • How to install speech Agents with Captivate 7?

    Hi, I am using Captivate 7 (32bit version for Windows), which only provides a single default speech agent. A link on the Speech Management screen enables you to download and install Neospeech voices. I downloaded the file Cp7_win32_voices_installer.z

  • Restrict specific tables from SE16/SE11

    Dear Experts, We have a requirement of lock from view of some specific tables in SE16/SE11. Please provide the solution. Regards Shishir

  • IPhone 4, Stopped Vibrate After OS Upgrade

    Hi, My question has two parts: 1. My IPhone 4 simply stopped vibrate after a software upgrade, i did everything i restart it stop start the vibrate button but nothing helped, is there anything i can do? 2. I leave in Israel and there is no Apple stor

  • Adobe Media Encoder - Encoding Time Matrix?

    Does someone have an encoding time matrix comparing the encoding times for various MPEG2-DVD presets. I know it depends on the source foot and CPU speed, but I am trying to determine relative ball park estimates. I am especially interested in how the