~eeickmeyer/debian-cd/ubuntu

« back to all changes in this revision

Viewing changes to tools/boot/groovy/post-boot-i386

  • Committer: Steve Langasek
  • Date: 2020-05-21 18:55:35 UTC
  • mfrom: (2057.1.1 debian-cd)
  • Revision ID: steve.langasek@canonical.com-20200521185535-qgthxtn3m715g0gl
MergeĀ lp:~xnox/debian-cd/drop-dead-groovy

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
#
3
 
# post-boot-i386
4
 
#
5
 
# Do post-image-building tasks for i386, to make vfat images bootable
6
 
#
7
 
# $1 is the CD number
8
 
# $2 is the temporary CD build dir
9
 
# $3 is the image file
10
 
 
11
 
set -e
12
 
 
13
 
N=$1
14
 
CDROOT=$2
15
 
CDIMAGE=$3
16
 
 
17
 
cd $CDROOT/..
18
 
 
19
 
# Only disk 1* bootable
20
 
if [ $N != 1 ] && [ $N != 1_NONUS ] && [ -z "$CDIMAGE_ADDON" ]; then
21
 
        exit 0
22
 
fi
23
 
# We only want to do this for vfat images
24
 
if [ "$IMAGE_FORMAT" = "vfat" ]; then
25
 
        syslinux -d syslinux $CDIMAGE
26
 
fi
27