Re: Dropping to a shell in %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Segall wrote:
> Are you actually specifying that full path? If so, that would be your
> problem. You are already chroot'd in /mnt/sysimage, so if you told it
> /mnt/sysimage/somepath, it would be interpreted literally.
> 
> -Dan
> 
> 
>>Dan Carpenter wrote:
>>
>>>On 6/24/05, Dan Trainor <info@xxxxxxxxxxxxxxxx> wrote:
>>>
>>>
>>>
>>>>Is it possible to drop to a sh shell in or after %post, so that I can
>>>>poke around and get familiar with the %post enviornment to see about
>>>>donig some things later on?
>>>
>>>
>>>add these lines to your %post.
>>>
>>>echo "Dropping to a shell"
>>>open -c 8 bash
>>>read tmp
>>>
>>>The echo prints to tty3 so you probably won't see it...  Not sure how
>>>to put stuff on the first tty.  This will pause the install until you
>>>press Enter on the front screen.  You can switch to tty8 to do
>>>whatever you want.
>>>
>>>regards,
>>>dan carpenter
>>>
>>
>>Dan -
>>
>>Awesome, that's what I was looking for.  I'm having troule finding out
>>why I can't install two additional RPMs in %post, saying that the files
>>are not present.  I am copying them from
>>/mnt/source/thedirthatiputfilesin to /mnt/sysimage/tmp/mynewdir, so I'd
>>like to troubleshoot that.
>>
>>Thanks
>>-dant
>>

Hey, dan -

This past post has taught be a little bit more about the env.  How might
I go about finding out where my cdrom drive is mounted (is it even still
mounted in %post?) inside of the chroot?

Thanks!
-dant





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux