~ubuntu-cdimage/debian-cd/ubuntu

« back to all changes in this revision

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

  • Committer: Adam Conrad
  • Date: 2019-04-20 08:07:06 UTC
  • Revision ID: adconrad@0c3.net-20190420080706-vayzyn7km03g6rz4
Copy disco -> eoan, and add eoan to CONF.sh

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