Bugs item #829188, was opened at 2003-10-23 22:24
Message generated for change (Comment added) made by gnico
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=829188&group_id=259

Category: systemimager-server
Group: v3.0.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: mkautoinstallscript sets swap partitions as ext2

Initial Comment:
mkautoinstallscript has parted set filesystem type of swap 
partitions as ext2, when they should linux-swap 
 
 

----------------------------------------------------------------------

Comment By: Nicolas Malandain (gnico)
Date: 2004-03-05 00:23

Message:
Logged In: YES 
user_id=990838

I've the same problem

This is my scripts

************************************
autoinstallscript
************************************
<!--
  This file contains partition information about the disks
on your golden
  client.  It is stored here in a generic format that is
used by your
  SystemImager server to create an autoinstall script for
cloning this
  system.

  You can change the information in this file to affect how
your target
  machines are installed.  See "man autoinstallscript.conf"
for details.
-->

<config>
  <disk dev="/dev/hda" label_type="msdos"
unit_of_measurement="MB">
    <!--
      This disk's output was brought to you by the partition
tool "sfdisk",
      and by the numbers 4 and 5 and the letter Q.
    -->
    <part  num="1"  size="972"  p_type="primary"  p_name="-"
 flags="-" />
    <part  num="2"  size="19077"  p_type="primary" 
p_name="-"  flags="boot" />
    <part  num="3"  size="*"  p_type="primary"  p_name="-" 
flags="-" />
  </disk>

  <fsinfo  line="10" comment="# /etc/fstab: static file
system information." />
  <fsinfo  line="20" comment="#" />
  <fsinfo  line="30" comment="# <file system>    
<mount point>     <type>    <options>    
    <dump>    <pass>" />
  <fsinfo  line="40" real_dev="/dev/hda2" mp="/"  fs="ext3"
options="errors=remount-ro" dump="0" pass="1" />
  <fsinfo  line="50" real_dev="/dev/hda1" mp="none" 
fs="swap" options="sw" dump="0" pass="0"  format="no" />
  <fsinfo  line="60" real_dev="proc" mp="/proc"  fs="proc"
options="defaults" dump="0" pass="0" />
  <fsinfo  line="70" real_dev="none" mp="/proc/bus/usb" 
fs="usbfs" options="defaults" dump="0" pass="0" />
  <fsinfo  line="80" comment=" " />
  <fsinfo  line="90" real_dev="/dev/fd0" mp="/floppy" 
fs="auto" options="user,noauto,sync" dump="0" pass="0" 
format="no" />
  <fsinfo  line="100" real_dev="/dev/cdrom" mp="/cdrom" 
fs="iso9660" options="ro,user,noauto" dump="0" pass="0" 
format="no" />
  <fsinfo  line="110" real_dev="/dev/hda3" mp="/home" 
fs="ext3" options="defaults" dump="0" pass="2" />
  <fsinfo  line="120" comment=" " />
  <fsinfo  line="130" real_dev="/dev/sda1" mp="/mnt/cleusb"
 fs="auto" options="user,noauto,sync" dump="0" pass="0" 
format="no" />
  <fsinfo  line="140" comment=" " />
  <fsinfo  line="150"
real_dev="profasi.insa-rouen.fr:/home/admasi"
mp="/mnt/profasi"  fs="nfs" options="user,noauto" dump="0"
pass="0"  format="no" />

  <boel devstyle="devfs"/>

</config>


**************************************
the master script
************************************

.....
### BEGIN partition /dev/hda ###
echo "Partitioning /dev/hda..."
echo "Old partition table for /dev/hda:"
parted -s -- /dev/hda print

# Create disk label.  This ensures that all remnants of the
old label, whatever
# type it was, are removed and that we're starting with a
clean label.
echo "parted -s -- /dev/hda mklabel msdos || shellout"
parted -s -- /dev/hda mklabel msdos || shellout

# Get the size of the destination disk so that we can make
the partitions fit properly.
DISK_SIZE=`parted -s /dev/hda print | grep 'Disk geometry
for' | sed 's/^.*-//g' | sed 's/\..*$//' `
[ -z $DISK_SIZE ] && shellout
if [ "$ARCH" = "alpha" ]; then
    END_OF_LAST_PRIMARY=1
else
    END_OF_LAST_PRIMARY=0
fi


echo "Creating partition /dev/hda1."
START_MB=$END_OF_LAST_PRIMARY
END_MB=$(echo "scale=3; ($START_MB + 972)" | bc)
echo "parted -s -- /dev/hda mkpart primary ext2 $START_MB
$END_MB || shellout"
parted -s -- /dev/hda mkpart primary ext2 $START_MB $END_MB
|| shellout
END_OF_LAST_PRIMARY=$END_MB

echo "Creating partition /dev/hda2."
START_MB=$END_OF_LAST_PRIMARY
END_MB=$(echo "scale=3; ($START_MB + 19077)" | bc)
echo "parted -s -- /dev/hda mkpart primary ext2 $START_MB
$END_MB || shellout"
parted -s -- /dev/hda mkpart primary ext2 $START_MB $END_MB
|| shellout
END_OF_LAST_PRIMARY=$END_MB
echo parted -s -- /dev/hda set 2 boot on || shellout
parted -s -- /dev/hda set 2 boot on || shellout

echo "Creating partition /dev/hda3."
START_MB=$END_OF_LAST_PRIMARY
END_MB=$(( $DISK_SIZE - 0 ))
echo "parted -s -- /dev/hda mkpart primary ext2 $START_MB
$END_MB || shellout"
parted -s -- /dev/hda mkpart primary ext2 $START_MB $END_MB
|| shellout
END_OF_LAST_PRIMARY=$END_MB

echo "New partition table for /dev/hda:"
echo "parted -s -- /dev/hda print"
parted -s -- /dev/hda print
### END partition /dev/hda ###



echo "Load additional filesystem drivers."
modprobe reiserfs
modprobe ext2
modprobe ext3
modprobe jfs
modprobe xfs

### BEGIN swap and filesystem creation commands ###
echo "mke2fs -j /dev/hda2 || shellout"
mke2fs -j /dev/hda2 || shellout
echo "mkdir -p /a/ || shellout"
mkdir -p /a/ || shellout
echo "mount /dev/hda2 /a/ -t ext3 -o defaults || shellout"
mount /dev/hda2 /a/ -t ext3 -o defaults || shellout

echo "mke2fs -j /dev/hda3 || shellout"
mke2fs -j /dev/hda3 || shellout
echo "mkdir -p /a/home || shellout"
mkdir -p /a/home || shellout
echo "mount /dev/hda3 /a/home -t ext3 -o defaults || shellout"
mount /dev/hda3 /a/home -t ext3 -o defaults || shellout

### END swap and filesystem creation commands ###

### BEGIN mount proc in image for tools like System
Configurator ###
echo "mkdir -p /a/proc || shellout"
mkdir -p /a/proc || shellout
echo "mount proc /a/proc -t proc -o defaults || shellout"
mount proc /a/proc -t proc -o defaults || shellout
### END mount proc in image for tools like System
Configurator ###

........

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=829188&group_id=259


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Sisuite-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to