[Voyage-linux] PATCH 2: command line processing for voyage.update
Christian Recktenwald
(spam-protected)
Tue Sep 29 01:31:22 HKT 2009
On Thu, Sep 24, 2009 at 09:21:43AM +0800, Kim-man 'Punky' TSE wrote:
> Hi all,
>
> Next, I would explore adding disk image generation feature. If there
> are volunteers it would be great.
you perhaps may want to use:
echo -e "0,,L,*\n;\n;\n;" | sfdisk $CFDISK
/sbin/mkfs -t ext2 $CFPART
tune2fs -c 0 $CFPART
This instant I'm using a wrapper around voyage.install
which generates those commands. Inside voyage.install
this could be achieved this way:
CFDISK=${TARGET_DISK}
CFPART=${TARGET_DISK}${BOOTSTRAP_PART}
I'd prefer sfdisk over fdisk as it is designed to take
commands from stdin, and yes it's already present on
the .tar.bz2
--
LiHAS - Adrian Reyer - Krehlstra??e 1 - D-70563 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91
Mail: lihas at lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
More information about the Voyage-linux
mailing list