Annotation of /trunk/bootstrap/bootstrap-default-system.sh
Parent Directory | Revision Log
Revision 835 -
(hide annotations)
(download)
(as text)
Sun May 3 17:10:39 2009 UTC (15 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 543 byte(s)
Sun May 3 17:10:39 2009 UTC (15 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 543 byte(s)
moved
1 | niro | 341 | #!/bin/bash |
2 | # $Header: /home/cvsd/magellan-cvs/magellan-src/bootstrap/scripts/bootstrap-default-system.sh,v 1.1 2006-02-23 17:42:53 niro Exp $ | ||
3 | |||
4 | # installs magellan-linux from a livecd with its default settings | ||
5 | |||
6 | # need r00t privs | ||
7 | [[ $(id -u) != 0 ]] && die "you must be r00t." | ||
8 | |||
9 | if [[ -z $(cat /proc/mounts | grep /mnt/magellan) ]] | ||
10 | then | ||
11 | echo "No partition mounted to /mnt/magellan. Aborting bootstrap." | ||
12 | exit 1 | ||
13 | fi | ||
14 | |||
15 | /usr/sbin/mage-bootstrap \ | ||
16 | --magerc /etc/mage.rc \ | ||
17 | --root /mnt/magellan \ | ||
18 | --profile $(basename $(readlink /etc/mage-profile)) |