Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Satellite 5.7 Kickstart physicals with variable LUN IDs

    Posted on

    I'm trying to setup our new satellite 5.7 server to be my build server. Currently we create a modified kickstart file for every build, and include the LUN ID on the appropriate part lines:

    part /boot --fstype ext4 --size=500 --ondisk=disk/by-id/scsi-3600601602640330000c45806df8ee511

    part pv.01 --grow --size=1 --ondisk=disk/by-id/scsi-3600601602640330000c45806df8ee511

    What I would like is to have a single kickstart in satellite that prompts for the LUN ID. This is what I tried so far.

    In the %pre scripts:

    iotty=

    tty

    exec > $iotty 2> $iotty
    echo -n "Enter the WWID of the boot LUN: "
    read WWID
    echo "WWID set to $WWID "
    sleep 5
    %end

    This does successfully ask for the LUN ID.

    I then modified the part lines like so:

    part /boot --fstype ext4 --size=500 --ondisk=disk/by-id/scsi-$WWID
    part pv.01 --grow --size=1 --ondisk=disk/by-id/scsi-$WWID

    But it's not taking the WWID and inserting it there, because I'm getting an error saying it can't find the "/disk/by-id/scsi-$WWID". Is what I'm trying to do possible? Am I just going about this incorrectly? I'd love to see how others have solved this issue. All our physical builds are boot-from-san with multipathing, so I've gotta figure out a way to make this work.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat