How to split system.sqf using larch?

i am using larch to put "my Arch" into a usbdrive, but larch create a big system.sqf (in my case 720MB) i want to split this system.sqf in many parts like:
/opt into opt.sqf
/usr into usr.sqf
/home into home.sqf
/etc into etc.sqf
"rest" into root.sqf
i do this manually but don't work (boot crash)
Grettings
insulae
Last edited by insulae (2007-06-29 22:15:05)

That would require several changes, in various scripts. It is also further complicated by the use of the 'base.sqf' archive, which is extracted from 'system.sqf'. You would need to look at the place(s) in 'buildlive' where the '.sqf's are built and the boot time initialization scripts (especially /etc/rc.sysinit0, but possibly also the initcpio hooks). In other words, it's probably not very easy to do.
If you really want to play around with the structure of a live USB system I would suggest having a look at the linux-live scripts first. They're probably (still) quite a lot simpler, though of course they are not designed for Arch compatibility.
Last edited by gradgrind (2007-06-30 08:47:04)

Similar Messages

  • How to read system eventlog using java program in windows?

    How to read system eventlog using java program in windows?
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Hi,
    There is no java class for reading event log in windows, so we can do one thing we can use windows system 32 VBS script to read the system log .
    The output of this command can be read using java program....
    we can use java exec for executing this system32 vbs script.
    use the below program and pass the command "eventquery"
    plz refer cscript,wscript
    import java.io.*;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec("Command");
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    This sample program will list all the system log information....
    Zoe

  • How to read system evenlog using java program in windows

    How to read system evenlog using java program in windows???
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Welcome to the Sun forums.
    >
    How to read system evenlog using java program in windows???>
    JNI. (No.)
    >
    is there any java class available to do this ? or any one having sample code for this?>You will generally get better help around here if you read the documentation, try some sample code and come back with a specific question (hopefully with an SSCCE included).
    >
    Your friend Zoe>(raised eyebrow) Thank you for sharing that with us.
    Note also that one '?' denotes a question, while 2 or more generally denotes a dweeb.

  • How to perform system copy using standard sap method (sapinst)

    Hi guys
    pls tel how to perform system copy using standard sap method (sapinst) and to perform enterprise portal RESTORSTION.
    thanks
    kamal

    Hi Kamal,
    I have done a system copy of the production portal to a sandpit system before. The system copy export import method works very well, and is easy. For my portal, the whole procedure took me less than 6 hours.
    1. Go to this page: System Copy and Migration
    2. See the videos "Demo: How to Perform a System Copy Export" and "Demo: How to Perform a System Copy Import".
    This should give you the basic idea.
    I did a systemcopy using sapinst. If I remember right, this is the steps I performed:
    1. On target host, Installed a new Central services.
    2. On source host: Ran sapinst system copy export for Central Instance and Database instance. This created two export files (depending on your database size).
    3. Used the export files created in previous step to run the import step in target host.
    4. Some post processing steps, like configuring sso, creating systems in system landscapes, configuring WD JCos etc.
    Let me know if you need more help.
    Cheers
    Rishi

  • How to split a string using IndexOf?

    How would you split a string using indexOf and not using the .split method?
    Any help is appreciated :D
    Message was edited by:
    billiejoe

    would it be better to use the first or the second?
    int      indexOf(int ch)
    Returns the index within this string of the first occurrence of the specified character.
    int      indexOf(int ch, int fromIndex)
    Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index.
    I think the second would be helpful. so how do i read it?

  • How to split messages without using Message split (BPM)

    In file to file scenario how to split messages coming from file without using Message split (BPM)

    Thank you very much.

  • How to Split the string using Substr and instr using loop condition

    Hi every body,
    I have below requirement.
    I need to split the string and append with single quotes('') followed by , (comma) and reassign entire values into another variable. so that i can use it where clause of update statement
    for example I am reciveing value as follows
    ALN varchar2(2000):=(12ERE-3MT-4Y,4IT-5O-SD,OP-K5-456,P04-SFS9-098,90P-SSF-334,3434-KJ4-O28,AS3-SFS0-J33,989-3KL-3434);
    Note: In the above variable i see 8 transactions, where as in real scenario i donot how many transaction i may recive.
    after modification i need above transactions should in below format
    ALTR Varchar2(2000):=('12ERE-3MT-4Y','4IT-5O-SD','OP-K5-456','P04-SFS9-098','90P-SSF-334','3434-KJ4-O28','AS3-SFS0-J33','989-3KL-3434');
    kindly help how to use substr and instr in normal loop or for loop or while loop while modifying the above transactions.
    Please help me to sort out this issue.
    Many Thanks.
    Edited by: user627525 on Dec 15, 2011 11:49 AM

    Try this - may not be the best way but...:
    create or replace type myTableType as table of varchar2(255)
    declare
    v_array mytabletype;
    v_new_str varchar2(4000);
    function str2tbl
             (p_str   in varchar2,
              p_delim in varchar2 default '.')
             return      myTableType
        as
            l_str        long default p_str || p_delim;
             l_n        number;
             l_data     myTableType := myTabletype();
        begin
            loop
                l_n := instr( l_str, p_delim );
                exit when (nvl(l_n,0) = 0);
                l_data.extend;
                l_data( l_data.count ) := ltrim(rtrim(substr(l_str,1,l_n-1)));
                l_str := substr( l_str, l_n+length(p_delim) );
            end loop;
            return l_data;
       end;
    begin
      v_array := str2tbl ('12ERE-3MT-4Y,4IT-5O-SD,OP-K5-456,P04-SFS9-098,90P-SSF-334,3434-KJ4-O28,AS3-SFS0-J33,989-3KL-3434', ',');
          FOR i IN 1 .. v_array.COUNT LOOP
             v_new_str := v_new_str || ''''||v_array(i)||'''' || ',';
          END LOOP;
       dbms_output.put_line(RTRIM(v_new_str, ','));
    end;  
    OUTPUT:
    =======
    '12ERE-3MT-4Y','4IT-5O-SD','OP-K5-456','P04-SFS9-098','90P-SSF-334','3434-KJ4-O28','AS3-SFS0-J33','989-3KL-3434'HTH
    Edited by: user130038 on Dec 15, 2011 12:11 PM

  • How to "split" a string using API 1.3?

    Hi everyone,
    I'm needing to split strings at the slash "/" character.
    Unfortunately, we're using API 1.3, and according to the API, "split" isn't available until 1.4.
    I'm looking for suggestions, help, examples, or alternatives.
    Thanks!

    How about StringTokenizer?

  • How to split a string using sql

    Hi All,
    I've to write a query where I need to split a string, how this can be done? So let's say a column has value as 1,2,3,4,5 and I want to split this string and output it as:
    1
    2
    3
    4
    5
    Please advise.

    Lots of articles:
    Snap this user defined function too:
    CREATE FUNCTION [dbo].[ufn_SplitString_Separator](@InputStr VARCHAR(MAX), @Separator VARCHAR(1))
    RETURNS @tmpTable TABLE (OutputStr VARCHAR(MAX))
    AS BEGIN
    DECLARE @TmpPOS integer
    SET @TmpPOS = CHARINDEX(@Separator,@InputStr)
    WHILE @TmpPos > 0 BEGIN
    IF @TmpPos > 0 BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(SUBSTRING(@InputStr,1,@TmpPos-1))))
    SET @InputStr = SUBSTRING(@InputStr, @TmpPOS + 1, LEN(@InputStr) - @TmpPos)
    SET @TmpPOS = CHARINDEX(@Separator,@InputStr)
    END ELSE BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(@InputStr)))
    SET @TmpPos = 0
    END
    END
    IF LEN(@InputStr) > 0 BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(@InputStr)))
    END
    RETURN
    END
    GO
    And you can use like this:
    SELECT * FROM DBO.[ufn_SplitString_Separator]('1,2,3,4,5',',')
    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

  • How To split large message using File Adapter

    Hello everyone,
    Here is my scenario FTP > XI > BI.
    I got 2 questions:
    (1) I am getting large message around 70 MB file.
        How we can split the message into multiple files 10 MB each before processing the file into XI?
    (2) Is there is any way we can find out size of file which is on FTP  without contacting FTP admin?    
        through XI before processing the file?
    Thanks
    Vick

    hi vick,
    check the blog
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter Framework                                   
    Working with the PayloadZipBean module of the XI Adapter Framework
    SAP XI acting as a (huge) file mover                                   
    The specified item was not found.                                   
    Managing bulky flat messages with SAP XI (tunneling once again) - UPDATED                                   
    The specified item was not found.                                   
    regards
    kummari

  • How to get system tasks using Java?

    I have question about system tasks. I have to list all tasks which are working in the system. Is there any class which i useful to do that? I've tried to write shell script but it won't be working in system different than Linux. I will be grateful for any help.

    In the standard Java classes, there are no such implementation. You are sort of answering the question youself, since you've made a script to do it. It is the same for all systems. To get the system information you need to talk to the system and to do that you need to know what system you are on...
    Some system functions are more or less the same in all systems so they can be reached by the Systems-class.

  • How to split the query using rowid

    can anybody pls tell me logic to spliting the sql query by using rowid through dba_extent...

    Using Parallel Execution will help if it is the DB that is the bottleneck, but if on the other hand it is your client program that is the bottleneck (and the DB is supplying the data as fast as it can) then splitting the query into rowid ranges and having multiple extract clients will have benefit.
    1) Each extract process should read DBA_EXTENTS for the given object and select the extents it should process (Ideally 1 extract process per Data File).
    2) Use the DBMS_ROWID.ROWID_CREATE to build low and high rowid ranges based on the BLOCK_ID and BLOCKS from DBA_EXTENTS. Note you will also have to look up the DATA_OBJECT_ID for the Table in question.
    Note. Because we won't know the Row Number of the last row in the last block, use the first row in the first block after the last block and then use <.
    3) Add the ROWID hint to your query.
    4) Use >= "Low Rowid" < "High Rowid" (Note. use of < rather than <=)
    This method is only safe when the table in question is not being updated, as each extract process will be running its own read consistent view, and so there is a danger that transaction updating 2 rows could have only half of the update extracted (if 1 row was in 1 extent after it had been extracted and another row was in another extent before it was extracted).
    Only 1 rowid range can be passed to the query at a time (you can supply more, but a ROWID access will no longer be performed, it will simply to a FTS).

  • How to measure system parameters using java?

    Hi All,
    I am having a client which is monitoring the system parameters as CPU,Memory, Disk using cscripts on windows and shell scripts on Linux.
    These scripts are executed using exec().
    Is it possible to possible using any java's built in classes?
    Please help me.
    Thanks in advance

    Is it possible to possible using any java's built in
    classes?There are no built-in Java classes to do low-level hardware/platform-specific things like inspecting the CPU, etc. Wrong tool for the job.

  • How to Check System Preference Settings with Time Machine

    I just found and fixed a problem caused by a bad System Preference/Universal Access
    setting and would like to go back in my Time Machine backup to see where the
    error was made. I may have been too quick to blame the 10.5.3 update on the
    problem so wanted to look back in time.
    The problem is i don't know how to check System Preferences using the Time Machine.
    Any suggestion?

    If you're looking for specific settings, the short answer is you cannot. You can open the .plist files and try to find the specific option you're looking for, though it might not be too easy to decipher some of the contents of the .plist file. For the most part they're just lists of attributes and settings. For instance, here's a very small chunk of my Finder .plist file:
    <key>All Images.cannedSearch</key>
    <dict>
         <key>SidebarWidth</key>
         <integer>162</integer>
         <key>ToolbarVisible</key>
         <true/>
         <key>ViewHeight</key>
         <integer>1116</integer>
         <key>ViewStyle</key>
         <string>icnv</string>
         <key>WindowBounds</key>
         <dict>
              <key>bottom</key>
              <integer>1200</integer>
              <key>left</key>
              <integer>56</integer>
              <key>right</key>
              <integer>1920</integer>
              <key>top</key>
              <integer>84</integer>
         </dict>
    </dict>
    <key>AnimateInfoPanes</key>
    <true/>
    <key>AnimateSnapToGrid</key>
    <string>true</string>
    <key>AnimateWindowZoom</key>
    <true/>
    Each "key" is followed by an attribute, so for instance the "SideBar Width" key is given the "Width" integer attribute of 162. However, some keys have multiple entries, such as the "WindowBounds" key having sub-keys of "bottom", "left", "right", and "top".
    These values are finder preferences, though are not accessible via the finder's preference settings. However, buried deep in the Finder's .plist file are some of the user-editable settings:
    <key>ShowHardDrivesOnDesktop</key>
    <true/>
    <key>ShowMountedServersOnDesktop</key>
    <true/>
    <key>SidebarSearchesSectionDisclosedState</key>
    <false/>
    If you can find the attribute you're looking for, then that may help you narrow down which version of a .plist file to restore, though not all of them are straightforward legible text. Some have bizarre strings of seemingly random characters that only the application can interpret.
    Message was edited by: Topher Kessler

  • System id using java

    how to get system id using java ,also MAC address?

    I think you have to use JNI and write the native calls on whatever platform(s) you need this.

Maybe you are looking for

  • How to create Debit Memo in SAP.

    Hi Experts ! We wanted to create a debit memo even after closing a purchase order i.e. payment is made to vendor.These debit memos are mainly related with pricing differences and overshooted logistics cost. We can make use of Subsequent cr/dr functio

  • One DIMENSION, Two FACT Tables - One WEEKLY grain, one DAILY grain

    All the OBIEE gurus, thanks for checking out this post. Background: We have a common DIMENSION referencing two FACT tables having different granularity. DIM = Customer Dim FACT = Forecasting (Weekly granularity) FACT = Sales (Daily granularity) There

  • Tiger Install Stalls

    I'm trying to install Tiger onto a 366MHz G3 iBook (without a DVD drive) in Firewire target disc mode from a 400 Mhz G4 with a DVD drive. The problem I'm having is the installation stalls at the stage when it is "Preparing Taget Volume" I'm pretty mu

  • IPod Nano 2g

    Hi, I heard that with the iPod nano it isn't a full 2g its about 1.8. Is it still the same amount of songs on it or about 20 less?   Windows XP  

  • Developing FSG reports in BI

    Hi, I am developing the concept of FSG reports in BI using FSG backend tables. The concurrent program for FSG Reports 'Financial Statement Generator' is a Spawned program. I don't know what is the functionality of this program and how the calculation