Mailinglist Archive: opensuse-autoinstall (70 mails)

< Previous Next >
Re: [opensuse-autoinstall] Running chroot-script from cd/dvd medium
  • From: Thomas Glanzmann <thomas@xxxxxxxxxxxx>
  • Date: Tue, 12 Dec 2006 12:06:24 +0100
  • Message-id: <20061212110624.GE19794@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Hallo Uwe,

> you try to access the DVD media from within the chrooted installed system.
> That might lead to your problem.
> Either use chrooted=false and access the installed system via /mnt/... or
> use a chrooted=false script that copys the "real" script from the DVD to
> the /mnt directory. Then you should be able to use file:/// again because
> the script is really there and no DVD-fallback is needed.

I 'solved' it otherwise:

<scripts>
<chroot-scripts config:type="list">
<script>
<chrooted config:type="boolean">true</chrooted>
<filename>chroot.sh</filename>
<source>
<![CDATA[
#!/bin/bash
df -h
mount
mkdir -p /tg.media
mount /dev/sda /tg.media
mount /dev/hda /tg.media
mount /dev/hdc /tg.media
/tg.media/autoyast/chroot.sh
umount /tg.media
rmdir /tg.media
]]>
</source>
<interpreter>shell</interpreter>
</script>
</chroot-scripts>
</scripts>

However, I consider this a bug of the autoyast system. Autoyast should
copy the chroot-script to the installed system. Than chroot to it and
execute it.

Thomas
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >