forked from openSUSE/installation-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.riscv64
executable file
·38 lines (30 loc) · 968 Bytes
/
install.riscv64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/sh
# gets ARCH, THEMES, DESTDIR, INSTSYS_PARTS, BOOT_PARTS, WITH_FLOPPY via env
set -e
# create directory layout
mkdir -p $DESTDIR/CD1/boot/$ARCH
for theme in $THEMES ; do
mkdir -p $DESTDIR/branding/$theme/CD1/boot/$ARCH
done
# copy branding independent parts
for i in $INSTSYS_PARTS $BOOT_PARTS ; do
[ -e images/$i ] && cp -r images/$i $DESTDIR/CD1/boot/$ARCH
done
# copy branding dependent parts
for theme in $THEMES ; do
for i in $INSTSYS_PARTS $BOOT_PARTS ; do
[ -e images/$theme/$i ] && cp -r images/$theme/$i $DESTDIR/branding/$theme/CD1/boot/$ARCH
done
if [ -d images/$theme/EFI ] ; then
cp -r images/$theme/EFI/EFI $DESTDIR/branding/$theme/CD1
fi
done
mkdir -p $DESTDIR/usr/share
cp images/mini-iso-rmlist $DESTDIR/usr/share
if [ -d images/tftp ] ; then
dst=$DESTDIR/usr/share/tftpboot-installation
mkdir -p $dst
cp -a images/tftp/* $dst
cp -a $DESTDIR/CD1/* $dst/*
cp -a $DESTDIR/branding/$THEMES/CD1/* $dst/*
fi