what about this?
du -sb /live/image | cut -f1
I know it calculates the size of the first partition but i am not sure
how, the cut -f1 confuses me. I am not sure i can translate this line to
python. I am now running it with os.popen and returning the output of
the subprocess.
i am getting very close to have the python version ready, next step
would be to add a GTK GUI to control it.
thanks again...
or., 2010.eko ekaren 04a 15:45(e)an, Dan S(e)k idatzi zuen:
2010/6/4 enrike<[email protected]>:
hi
cat /usr/share/bouilloncube/sh/grub2/grub.cfg.in
Output the contents of this file (a template for grub.cfg) to...
|
...send its contents into...
sed -e 's/\${BLKID}/'${BLKID}'/g'
...a command which replaces all occurrences of ${BLKID} with the
actual value of BLKID (which is determined further up the script)
and...
...writes the resulting output to...
${DEVMOUNT}/boot/grub/grub.cfg
this file.
HTH
Dan
---
[email protected]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne
---
[email protected]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne