Re: POST_SCRIPT doesn't work...

Fabian Herschel <[email protected]> Wed, 26 Jun 2002 16:15:31 +0200
Newsgroups gmane.linux.suse.alice
Message-ID <02062616153101.01605@grimsel>
On Tuesday, 25. June 2002 17:10, Menzel, Heiko wrote:
> Does anybody know why my post_script in the yast.tcf file dosn't work???
> This is my yast.tcf-file:
>
> <YAST_INFO>
> AUTO_FDISK       2
> FAST_INSTALL     2
> AUTO_LILO        2
> AUTO_NET         1
> AUTO_NAME        1
> AUTO_SERVICES    1
> INSTALL_WAIT     0
> ASK_BOOTDISK     0
> NO_ASK_SWAP      1
> END_MESSAGE      0
> END_STARTUP      0
> CHECK_DEPENDENCY 0
> POST_SCRIPT	 $I:/SCRIPTS/transport.sh
> MOUNT_RAMDISK	 /etc/lvmtab.d	10
> </YAST_INFO>
>
> This is my transport.sh file:
>
>   echo "This is a Test" > /var/text.txt
>
> So I would like to get a file "test.txt" in var-directory but it seems not
> to work! Everything works fine (mount of /etc/lvmtab and so on) except the
> execution of the script!
>
> Can anybody help me?

Is your script place in the direcory SCRIPTS relatively to the mount point of
the distribution?

And if so: You problem is that during the run of POST_SCRIPT (which is invoked
by yast1) the root of the system is not mounted on / but /mnt (so /var will 
be /mnrt/var). This means you have changed a file in the ram disk...

See prepare_alice to see how to handle different root mount points...

best regards
Fabian
>
> Regards from Germany
> Heiko Menzel

-- 
<[email protected]>
SuSE Linux Solutions AG * Mergenthalerallee 45-47 * D-65760 Eschborn
Tel: +49-6196-50951-23 * Fax: +49-6196-409-607
http://www.suse.de * Alice Homepage: http://www.suse.de/~fabian

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]