History

Move splash image and motd to data/; this way those can be overrided easily.

Close #9

Juan RP committed 12 years ago

Commit bedab031 parent 620883f3 files · +20 −27Browse files

Unified · Split

3 files
  1. data/motd +15 −0
  2. data/splash.png +0 −0
  3. mklive.sh.in +6 −28
data/motd+15−0
@@ -0,0 +1,15 @@
1+###############################################################################
2+
3+Welcome to the Void Linux Live system, you have been autologged in.
4+This user has full sudo(8) permissions without any password, be careful
5+executing commands through sudo(8).
6+
7+To start the installation please type:
8+
9+ $ sudo void-installer
10+
11+and follow the on-screen instructions. Thanks for using Void Linux.
12+
13+ http://www.voidlinux.eu
14+
15+###############################################################################
data/splash.pngrenamed from isolinux/splash.png+0−0

File renamed without changes.

mklive.sh.in+6−28
@@ -44,28 +44,6 @@ error_out() { · 43 unmodified lines
4444 exit 1
4545 }
4646
47−write_etc_motd() {
48− cat >> "$ROOTFS/etc/motd" <<_EOF
49−###############################################################################
50− Autogenerated by void-mklive "@@MKLIVE_VERSION@@"
51−###############################################################################
52−
53−Welcome to the Void Linux Live system, you have been autologged in.
54−This user has full sudo(8) permissions without any password, be careful
55−executing commands through sudo(8).
56−
57−To start the installation please type:
58−
59− $ sudo void-installer
60−
61−and follow the on-screen instructions. Thanks for using Void Linux.
62−
63− http://www.voidlinux.eu
64−
65−###############################################################################
66−_EOF
67−}
68−
6947 usage() {
7048 cat <<_EOF
7149 Usage: $(basename $0) [options]
@@ -157,9 +135,9 @@ generate_isolinux_boot() { · 85 unmodified lines
157135 cp -f $SYSLINUX_DATADIR/libutil.c32 "$ISOLINUX_DIR"
158136 cp -f $SYSLINUX_DATADIR/chain.c32 "$ISOLINUX_DIR"
159137 cp -f isolinux/isolinux.cfg.in "$ISOLINUX_DIR"/isolinux.cfg
160− cp -f isolinux/${SPLASH_IMAGE} "$ISOLINUX_DIR"
138+ cp -f ${SPLASH_IMAGE} "$ISOLINUX_DIR"
161139
162− sed -i -e "s|@@SPLASHIMAGE@@|${SPLASH_IMAGE}|" \
140+ sed -i -e "s|@@SPLASHIMAGE@@|$(basename ${SPLASH_IMAGE})|" \
163141 -e "s|@@KERNVER@@|${KERNELVERSION}|" \
164142 -e "s|@@KEYMAP@@|${KEYMAP}|" \
165143 -e "s|@@ARCH@@|$(uname -m)|" \
@@ -169,7 +147,7 @@ generate_isolinux_boot() { · 3 unmodified lines
169147 generate_grub_efi_boot() {
170148 cp -f grub/grub.cfg $GRUB_DIR
171149 cp -f grub/grub_void.cfg.in $GRUB_DIR/grub_void.cfg
172− sed -i -e "s|@@SPLASHIMAGE@@|${SPLASH_IMAGE}|" \
150+ sed -i -e "s|@@SPLASHIMAGE@@|$(basename ${SPLASH_IMAGE})|" \
173151 -e "s|@@KERNVER@@|${KERNELVERSION}|" \
174152 -e "s|@@KEYMAP@@|${KEYMAP}|" \
175153 -e "s|@@ARCH@@|$(uname -m)|" \
@@ -251,7 +229,7 @@ done · 75 unmodified lines
251229 shift $(($OPTIND - 1))
252230
253231 # Set defaults
254−: ${XBPS_CACHEDIR=--cachedir=/var/cache/xbps}
232+: ${XBPS_CACHEDIR:=--cachedir=/var/cache/xbps}
255233 : ${KEYMAP:=us}
256234 : ${LOCALE:=en_US.UTF-8}
257235 : ${INITRAMFS_COMPRESSION:=xz}
@@ -288,7 +266,7 @@ ISOLINUX_CFG="$ISOLINUX_DIR/isolinux.cfg" · 30 unmodified lines
288266
289267 : ${XBPS_REPOSITORY:=--repository=http://repo.voidlinux.eu/current}
290268 : ${SYSLINUX_DATADIR:=$VOIDHOSTDIR/usr/share/syslinux}
291−: ${SPLASH_IMAGE:=splash.png}
269+: ${SPLASH_IMAGE:=data/splash.png}
292270 : ${XBPS_INSTALL_CMD:=xbps-install}
293271 : ${XBPS_REMOVE_CMD:=xbps-remove}
294272 : ${XBPS_QUERY_CMD:=xbps-query}
@@ -327,7 +305,7 @@ install_packages · 32 unmodified lines
327305 # Prepare /etc/motd.
328306 #
329307 mkdir -p "$ROOTFS"/etc
330−write_etc_motd
308+[ -s data/motd ] && cp data/motd $ROOTFS/etc
331309
332310 export PATH=$VOIDHOSTDIR/usr/bin:$VOIDHOSTDIR/usr/sbin:$PATH
333311 export LD_LIBRARY_PATH=$VOIDHOSTDIR/usr/lib

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t