Linux

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Locating %post scripts, files...

    3 answers - 1081 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    other quick question that I didn't find documented the more
    stuff you put into isolinux.img the less RAM you have left over for other
    stuff, so this is best left with the fewest additional files
    That said, is it "normal" and "proper" (etc) for a %post script to make
    references to stuff in /mnt/source/? For instance, let's say I have a
    mini-tar
    overlay of files I want to explode into the new root that's being built
    (since
    everything is prefixed in the tarchive by ./inst-helper/ anyway) is:
    %post
    (cd /mnt/sysimage ; gunzip -c | tar xf -) < /mnt/source/overlay-root.tgz
    %post
    chvt 3
    # for debugging
    set -x
    /inst-helper/mkprt
    is that a good practice? is there a better way to do this? And does the
    output of all of the %pre (well, that might be tricky) and %post scripts get
    captured/logged somewhere? Both on a vty and later into a saved log file?
    Thanks,
    -Philip
    Anaconda-devel-list mailing list
    Anaconda-devel-list (AT) redhat (DOT) com
  • No.1 | | 1092 bytes | |

    Tue, 2006-05-09 at 11:59 -0600, Philip Prindeville wrote:
    That said, is it "normal" and "proper" (etc) for a %post script to make
    references to stuff in /mnt/source/? For instance, let's say I have a
    mini-tar overlay of files I want to explode into the new root that's being built
    (since everything is prefixed in the tarchive by ./inst-helper/ anyway) is:

    That or downloading them to /tmp (or similar) in %post via HTTP or the
    like. Either is reasonable. I tend to do the downloading as it's more
    flexible for non-NFS installs.

    is that a good practice? is there a better way to do this? And does the
    output of all of the %pre (well, that might be tricky) and %post scripts get
    captured/logged somewhere? Both on a vty and later into a saved log file?

    The output has always ended up on tty3 -- as of FC5, you can also run
    your script with ' /path/to/myfile' to have the output logged to a
    file instead

    Jeremy

    Anaconda-devel-list mailing list
    Anaconda-devel-list (AT) redhat (DOT) com
  • No.2 | | 1417 bytes | |

    Jeremy Katz wrote:
    Tue, 2006-05-09 at 11:59 -0600, Philip Prindeville wrote:

    >That said, is it "normal" and "proper" (etc) for a %post script to make
    >references to stuff in /mnt/source/? For instance, let's say I have a
    >mini-tar overlay of files I want to explode into the new root that's being built
    >(since everything is prefixed in the tarchive by ./inst-helper/ anyway) is:
    >
    >

    That or downloading them to /tmp (or similar) in %post via HTTP or the
    like. Either is reasonable. I tend to do the downloading as it's more
    flexible for non-NFS installs.

    Unfortunately, my laptop seems to like crashing and burning most when I'm on
    the road and don't have access to the corporate intranet.

    >is that a good practice? is there a better way to do this? And does the
    >output of all of the %pre (well, that might be tricky) and %post scripts get
    >captured/logged somewhere? Both on a vty and later into a saved log file?
    >
    >

    The output has always ended up on tty3 -- as of FC5, you can also run
    your script with ' /path/to/myfile' to have the output logged to a
    file instead

    Jeremy
    --

    I'll try that. Thanks.

    Anaconda-devel-list mailing list
    Anaconda-devel-list (AT) redhat (DOT) com
  • No.3 | | 1089 bytes | |

    Jeremy Katz wrote:
    Tue, 2006-05-09 at 11:59 -0600, Philip Prindeville wrote:

    >That said, is it "normal" and "proper" (etc) for a %post script to make
    >references to stuff in /mnt/source/? For instance, let's say I have a
    >mini-tar overlay of files I want to explode into the new root that's being built
    >(since everything is prefixed in the tarchive by ./inst-helper/ anyway) is:
    >
    >

    That or downloading them to /tmp (or similar) in %post via HTTP or the
    like. Either is reasonable. I tend to do the downloading as it's more
    flexible for non-NFS installs.

    Well, I'm pulling my hair out. Sigh.

    Just tried:

    %post

    (cd /mnt/sysimage ; gunzip -c | tar xf -) < /mnt/source/root-overlay.tgz

    and it failed. It seems that /mnt/source has been *unmounted* by the time
    %post gets run. Which makes no sense to me.

    When is /mnt/source unmounted?
    -Philip

    Anaconda-devel-list mailing list
    Anaconda-devel-list (AT) redhat (DOT) com

Re: Locating %post scripts, files...


max 4000 letters.
Your nickname that display:
In order to stop the spam: 6 + 5 =
QUESTION ON "Linux"

EMSDN.COM