@@ -145,10 +145,10 @@ apt-get install indicator-cpufreq \
145145 sni-qt:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libegl1-mesa:i386 libglapi-mesa:i386 libgles2-mesa:i386 libglu1-mesa:i386
146146
147147# Remove deprecated/dummy
148- apt-get purge kxstudio-meta-live-conflicts
149148apt-get install calf-plugins-git zynaddsubfx-git
150- apt-get purge carla calf-plugins ardour3 amsynth-dssi drumkv1 samplv1 synthv1 composite composite-data flashplugin-installer
151- apt-get purge hydrogen-drumkits hydrogen-drumkits-effects fluid-soundfont-gm
149+ apt-get purge kxstudio-meta-live-conflicts \
150+ carla calf-plugins ardour3 amsynth-dssi drumkv1 samplv1 synthv1 composite composite-data flashplugin-installer \
151+ hydrogen-drumkits hydrogen-drumkits-effects fluid-soundfont-gm
152152
153153# Cleanup
154154apt-get autoremove
@@ -208,6 +208,7 @@ umount /dev/pts
208208umount -lf /proc
209209umount -lf /sys
210210exit
211+ sudo umount /home/falktx/livecd/custom/sys
211212sudo nano /home/falktx/livecd/custom/root/.bash_history
212213"
213214exit
@@ -237,43 +238,17 @@ if [ ! -f /home/falktx/livecd/iso-stuff.7z ]; then
237238 exit
238239fi
239240
240- ISO_ARCH=" $2 "
241- ISO_NAME=" $3 "
242-
243- if [ $ISO_ARCH " 0" == " 0" ]; then
244- echo " usage: $0 mkart <arch> <distro>"
245- exit
246- fi
247-
248- if [ $ISO_NAME " 0" == " 0" ]; then
249- echo " usage: $0 mkart $ISO_ARCH <distro>"
250- exit
251- fi
252-
253241sudo mkdir -p /home/falktx/livecd/cd
254242cd /home/falktx/livecd/cd
255243sudo 7z x -y ../iso-stuff.7z
256244
257- sudo sed " s/X-ISO_ARCH-X/$ISO_ARCH /" -i /home/falktx/livecd/cd/README.diskdefines
258- sudo sed " s/X-ISO_NAME-X/$ISO_NAME /" -i /home/falktx/livecd/cd/README.diskdefines
259- sudo sed " s/X-ISO_NAME-X/$ISO_NAME /" -i /home/falktx/livecd/cd/isolinux/txt.cfg
260- sudo mkdir -p /home/falktx/livecd/cd/.disk/
261-
262- if [ " $ISO_ARCH " == " i386" ]; then
263- sudo su root -c ' echo "KXStudio 14.04.5 (Live 32bit)" > .disk/info'
264- else
265- sudo su root -c ' echo "KXStudio 14.04.5 (Live 64bit)" > .disk/info'
266- fi
267- # sudo su root -c 'echo "Live-MOD 2015-03" > .disk/info'
268-
269- sudo su root -c ' echo "http://kxstudio.sourceforge.net/Documentation:KXStudio14045:ReleaseNotes" > .disk/release_notes_url'
270-
271245echo " Please edit these files manually:
272246/home/falktx/livecd/cd/.disk/info
273247/home/falktx/livecd/cd/.disk/release_notes_url
274248/home/falktx/livecd/cd/README.diskdefines
249+ ... grub
275250/home/falktx/livecd/cd/isolinux/txt.cfg
276- /home/falktx/livecd/cd/preseed/live .seed
251+ /home/falktx/livecd/cd/preseed/kxstudio .seed
277252"
278253exit
279254 ;;
@@ -283,7 +258,6 @@ sudo mkdir -p /home/falktx/livecd/cd/casper/
283258cd /home/falktx/livecd/
284259sudo rm -f cd/casper/vmlinuz cd/casper/vmlinuz.efi cd/casper/initrd.lz cd/casper/initrd_tmp.gz
285260sudo cp custom/boot/vmlinuz-* cd/casper/vmlinuz
286- sudo cp custom/boot/vmlinuz-* cd/casper/vmlinuz.efi
287261sudo cp custom/boot/initrd.img-* cd/casper/initrd_tmp.gz
288262
289263cd /home/falktx/livecd/cd/casper
@@ -294,18 +268,36 @@ sudo su root -c 'gzip -cd ../initrd_tmp.gz | cpio -i'
294268
295269# fix links
296270LINKS=` find . -type l`
297- for i in $LINKS ; do
298- FILE=` readlink $i `
299- if [ " $FILE " == " busybox" ]; then
300- FILE=" ./bin/busybox"
301- elif [ " $FILE " == " lvm" ]; then
302- FILE=" ./sbin/lvm"
271+ for i in ${LINKS} ; do
272+ FILE=` readlink ${i} `
273+ CUSTOM=0
274+ if [ " ${FILE} " == " /proc/mounts" ]; then
275+ continue
276+ elif [ " ${FILE} " == " busybox" ]; then
277+ FILE=" /bin/busybox"
278+ CUSTOM=1
279+ elif [ " ${FILE} " == " lvm" ]; then
280+ FILE=" /sbin/lvm"
281+ CUSTOM=1
282+ elif [ " ${FILE} " == " /usr/share/plymouth/themes/kxstudio-logo/kxstudio-logo.plymouth" ]; then
283+ FILE=" /lib/plymouth/themes/kxstudio-logo/kxstudio-logo.plymouth"
284+ CUSTOM=2
285+ elif [ " ${FILE} " == " /usr/share/plymouth/themes/kxstudio-text/kxstudio-text.plymouth" ]; then
286+ FILE=" /lib/plymouth/themes/kxstudio-text/kxstudio-text.plymouth"
287+ CUSTOM=2
303288 fi
304- sudo rm " $i "
305- if [ -f " ./$FILE " ]; then
306- sudo cp -v " ./$FILE " " $i "
289+ sudo rm " ${i} "
290+ if [ " ${CUSTOM} " == " 1" ]; then
291+ sudo cp -v " .${FILE} " " ${i} "
292+ elif [ " ${CUSTOM} " == " 2" ]; then
293+ sudo cp -v " ../../../custom/${FILE} " " ${i} "
307294 else
308- sudo cp -v " ../../../custom/$FILE " " $i "
295+ DIRNAME=` dirname ${i} `
296+ if [ " ${DIRNAME} " == " ./sbin" ]; then
297+ sudo cp -v " ../../../custom/${FILE} " " ${i} "
298+ else
299+ sudo cp -v " ../../../custom/${DIRNAME} /${FILE} " " ${i} " || echo " ${DIRNAME} || ${FILE} || ${i} "
300+ fi
309301 fi
310302done
311303
342334cd /home/falktx/livecd/cd
343335
344336# i386 ends on -boot-info-table
337+ # -isohybrid-mbr isolinux/isohdpfx.bin \
345338
346339sudo xorriso -as mkisofs \
347340 -r \
348341 -V " $ARG3 " \
349- -o /home/falktx/livecd/" $ ARG2" .iso \
342+ -o " /home/falktx/livecd/${ ARG2} .iso" \
350343 -J \
351- -isohybrid-mbr isolinux/isohdpfx.bin \
352344 -partition_offset 16 \
353345 -joliet-long \
354346 -cache-inodes \
0 commit comments