Skip to content

Commit

Permalink
Added new bodhibuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtylee committed Feb 8, 2020
1 parent 5878b78 commit d9036b9
Show file tree
Hide file tree
Showing 378 changed files with 7,996 additions and 0 deletions.
350 changes: 350 additions & 0 deletions bodhibuilder/DEBIAN/conffiles

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions bodhibuilder/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Package: bodhibuilder
Priority: optional
Section: utils
Maintainer: Robert Wiley <[email protected]>
Architecture: all
Version: 2.19.0
Depends: memtest86+, coreutils, dialog, findutils, bash, passwd, sed, squashfs-tools, casper, rsync, mount, eject, libdebian-installer4, os-prober, ubiquity-frontend-debconf, user-setup, discover | discover1, laptop-detect, isolinux, syslinux, syslinux-utils, util-linux, python, python-glade2, python-vte, plymouth-x11, menu, xorriso, genisoimage, mokutil, sbsigntool, dnsutils
Conflicts: remastersys, remastersys-gtk
Provides: remastersys, remastersys-gtk
Description: Scripts used for building Bodhi Linux ISO images
A set of scripts based on remastersys to build bodhi ISO images
22 changes: 22 additions & 0 deletions bodhibuilder/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
set -e

#~ # copy BB icon to other locations
#~ if [ ! -d /usr/share/icons/hicolor/scalable/apps/ ] ; then
#~ mkdir /usr/share/icons/hicolor/scalable/apps/
#~ fi
#~ yes | cp /usr/share/icons/bodhibuilder-gtk.png /usr/share/icons/hicolor/scalable/apps/bodhibuilder-gtk.png

# remove custom_repos starting in v2.18.4
if [ -e /etc/bodhibuilder/apt/custom_repos ] ; then
yes | rm -f /etc/bodhibuilder/apt/custom_repos
fi
if [ -e /etc/bodhibuilder/custom_repos ] ; then
yes | rm -f /etc/bodhibuilder/custom_repos
fi

# make sure an installation of BB doesn't run thru 'firstboot'
(sleep 5 && update-rc.d -f bodhibuilder-firstboot remove) &


exit 0
45 changes: 45 additions & 0 deletions bodhibuilder/DEBIAN/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash
set -e

# remove the bodhibuilder home dir from previous install
if [ -d /home/bodhibuilder ] ; then
yes | rm -rf /home/bodhibuilder
fi

# remove deb files from previous install
if [ -d /etc/bodhibuilder/uefi/dists/pool ] ; then
yes | rm -f /etc/bodhibuilder/uefi/dists/pool/*
fi

# remove a leftover original ubiquity.desktop file
if [ -e /usr/share/applications/UBIQUITY.desktop_ORIG ] ; then
yes | rm -f /usr/share/applications/UBIQUITY.desktop_ORIG
fi

# remove bodhibuilder's ubiquity.desktop file
if [ -e /usr/share/applications/ubiquity.desktop_BB ] ; then
yes | rm -f /usr/share/applications/ubiquity.desktop_BB
fi

# remove firstboot file
if [ -e /etc/init.d/bodhibuilder-firstboot ] ; then
yes | rm -f /etc/init.d/bodhibuilder-firstboot
fi

#~ # remove leftover icons
#~ if [ -e /usr/share/pixmaps/bodhibuilder-gtk.png ] ; then
#~ yes | rm -f /usr/share/pixmaps/bodhibuilder-gtk.png
#~ fi
#~ if [ -e /usr/share/icons/bodhibuilder-gtk.png ] ; then
#~ yes | rm -f /usr/share/icons/bodhibuilder-gtk.png
#~ fi
#~ if [ -e /usr/share/icons/bbinstall.png ] ; then
#~ yes | rm -f /usr/share/icons/bbinstall.png
#~ fi
#~ if [ -e /usr/share/icons/bbinstall_previous.png ] ; then
#~ yes | rm -f /usr/share/icons/bbinstall_previous.png
#~ fi



exit 0
24 changes: 24 additions & 0 deletions bodhibuilder/DEBIAN/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -e

# remove leftover pool directory from before v2.18.2
if [ -d /etc/bodhibuilder/uefi/pool/ ] ; then
yes | rm -rf /etc/bodhibuilder/uefi/pool/
fi

# remove deb files from previous install
if [ -d /etc/bodhibuilder/uefi/dists/pool/ ] ; then
yes | rm -f /etc/bodhibuilder/uefi/dists/pool/*
fi

# remove a leftover original ubiquity.desktop file
if [ -e /usr/share/applications/UBIQUITY.desktop_ORIG ] ; then
yes | rm -f /usr/share/applications/UBIQUITY.desktop_ORIG
fi

# v 2.18.5 - got rid of bodhibuilder-skelcopy
if [ -e /usr/bin/bodhibuilder-skelcopy ] ; then
yes | rm -f /usr/bin/bodhibuilder-skelcopy
fi

exit 0
79 changes: 79 additions & 0 deletions bodhibuilder/etc/bodhibuilder.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

#Bodhibuilder Global Configuration File


# This is the temporary working directory and won't be included on the cd/dvd
WORKDIR="/home/bodhibuilder"


# Here you can add any other files or directories to be excluded from the live filesystem
# Use absolute paths (from the root directory)
# Exclude specific files using the path to the file = /path/to/file
# Exclude specific directories using a trailing slash = /path/to/directory/
# Exclude all directory contents with an asterisk = /path/to/directory/*
# Exclude all matching sets of files or directories using an asterisk as a wildcard = /path/to/something*
# If the entry does not exist as an actual file or directory, rsync & mksquashfs will simply skip over it
# Separate each entry with a space
EXCLUDES=""


# Here you can change the livecd/dvd username
# In a 'dist' spin, this will be both the username and password.
# In a 'backup' spin AND if lightdm autologin is enabled:
# this will be the first attempted username for autlogin, if
# this username is not found the currently logged-in username
# will be used for autologin.
LIVEUSER="bodhi"


# Here you can change the name of the livecd/dvd label
# This will be in the ubiquity icon label on the ISO
LIVECDLABEL="Bodhi Linux 5.1.0 Beta"


# Here you can change the name of the ISO file that is created
# I don't recommend spaces in this var due to it being used in a path location
# If you desire spaces or other characters, some form of REGEX formatting
# may work you'll have to test it out
CUSTOMISO="bodhi-5.1.0-64-beta.iso"


# Here you can change the mksquashfs options
# OK to leave this empty, the defaults will use the best compression I know of (as of this writing)
SQUASHFSOPTS=""


# Here you can prevent the Install icon from showing up on the desktop in backup mode. 0 - to not show 1 - to show
BACKUPSHOWINSTALL="1"


# Here you can change the url for the usb-creator info
LIVECDURL="http://www.bodhilinux.com"


# Here you can specify icons or icon sets to INCLUDE.
# List here the icons or sets you want to keep that are in this path:
# /usr/share/icons/(icon or icon set name)
# Do not list the whole path, just the set or icon name in that path.
# ** If this var is empty, all icons will be included.
# WARNING: This option may cause problems with the installer on the live ISO.
# If so, try tweaking this option or leaving it blank.
DISTICONS=""
# Example:
#~ DISTICONS="AwOken-Bodhi hicolor myfavoriteicon1.png myfavoriteicon2.png"


# Here you can specify locales to INCLUDE.
# List here the locales you want to keep that are in this path:
# /usr/share/locale/(locale name)
# Do not list the whole path, just the directories of the locales you wish to INCLUDE in that path.
# ** If this var is empty, all locales will be included.
DISTLOCALE=""
# Example:
#~ DISTLOCALE="en en_AU en_CA en_GB de"


# Choose the distribution name you want to show up in GRUB
# This will also be the DISTRIB_DESCRIPTION in /etc/lsb-release
DISTNAME="Bodhi Linux"

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[Desktop Entry]
Name=bodhibuilder
Name[de]=bodhibuilder
Name[es]=bodhibuilder
Name[fi]=bodhibuilder
Name[fr]=bodhibuilder
Name[ko]=bodhibuilder
Name[no]=bodhibuilder
Name[pt_BR]=bodhibuilder
Name[sl]=bodhibuilder
Name[sv]=bodhibuilder
Name[uk]=bodhibuilder
Name[ro]=bodhibuilder
Name[zh_TW]=bodhibuilder
GenericName=bodhibuilder
Comment=Backup your Ubuntu-based OS
Comment[de]=Backup your Ubuntu-based OS
Exec=su-to-root -X -c /usr/bin/bodhibuilder-gtk
NoDisplay=true
Icon=/usr/share/icons/bodhibuilder-gtk.png
Terminal=false
Type=Application
Categories=GTK;System;
StartupNotify=true
3 changes: 3 additions & 0 deletions bodhibuilder/etc/bodhibuilder/apt/custom_repos.dpkg-old
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Bodhi 5 Repos

deb [trusted=yes] http://packages.bodhilinux.com/bodhi bionic b5main
1 change: 1 addition & 0 deletions bodhibuilder/etc/bodhibuilder/bodhibuilder.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BODHIBUILDERVERSION="2.19.0"
1 change: 1 addition & 0 deletions bodhibuilder/etc/bodhibuilder/debs/amd64/00_packages.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b43-fwcutter bcmwl-kernel-source dkms efibootmgr fakeroot grub2-common grub-common grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub-efi-ia32 grub-efi-ia32-bin grub-pc grub-pc-bin libefiboot1 libefivar1 libfakeroot libuniconf4.6 libwvstreams4.6-base libwvstreams4.6-extras lupin-support mokutil mouseemu oem-config oem-config-gtk oem-config-slideshow-ubuntu sbsigntool secureboot-db setserial shim shim-signed user-setup wvdial
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions bodhibuilder/etc/bodhibuilder/debs/i386/00_packages.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b43-fwcutter bcmwl-kernel-source dkms efibootmgr fakeroot grub2-common grub-common grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-ia32 grub-efi-ia32-bin grub-pc grub-pc-bin libefiboot1 libefivar1 libfakeroot libuniconf4.6 libwvstreams4.6-base libwvstreams4.6-extras lupin-support mokutil mouseemu oem-config oem-config-gtk oem-config-slideshow-ubuntu sbsigntool secureboot-db setserial user-setup wvdial
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
90 changes: 90 additions & 0 deletions bodhibuilder/etc/bodhibuilder/firstboot/file-firstboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: bodhibuilder-firstboot
# Required-Start: $remote_fs $syslog $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Run firstboot items for bodhibuilder after a remastered system has been installed
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_start() {
#REM302
if [ "`cat /proc/cmdline | grep casper`" = "" ]; then # run thru this if it's NOT an ISO
[ "$VERBOSE" != no ] && log_begin_msg "Running bodhibuilder-firstboot"
# Removes this script from boot:
(sleep 60 && update-rc.d -f bodhibuilder-firstboot remove) &
sed -i -e 's/root:x:/root:!:/g' /etc/shadow
## Ubiquity
# Remove ubiquity icon from desktop
yes | rm -rf /home/*/Desktop/ubiquity*.desktop
yes | rm -rf /home/*/Desktop/UBIQUITY*.desktop
yes | rm -rf /usr/share/applications/UBIQUITY.desktop
# Remove ubiquity from menus
sed -i -e 's/NoDisplay=false/NoDisplay=true/' /usr/share/applications/ubiquity.desktop
sed -i -e 's/Hidden=false/Hidden=true/' /usr/share/applications/ubiquity.desktop

# Create bodhibuilder desktop file for menus
yes | cp -f /etc/bodhibuilder/applications/bodhibuilder-gtk.desktop /usr/share/applications/

# Restore sources.list from source OS
if [ -e /etc/bodhibuilder/apt/sources.list_BB ] ; then
yes | mv /etc/apt/sources.list /etc/apt/sources.list_ORIG
yes | mv /etc/bodhibuilder/apt/sources.list_BB /etc/apt/sources.list
sleep 1
fi
# Remove any remaining cdrom repos that may be in sources.list
sed -i '/cdrom:/d' /etc/apt/sources.list &> /dev/null

# Replace OS grub with bodhibuilder's custom grub
yes | cp -f /etc/default/grub.bodhi /etc/default/grub
sed -i "s/^DISTRIB_DESCRIPTION=.*$/DISTRIB_DESCRIPTION=\"__DISTNAME__\"/" /etc/lsb-release
update-grub

################################################
### CUSTOM COMMANDS
#
# Commands entered into this section will be run only when
# after the system has been installed and booted for the
# first time, and never again.
#
### Place your custom commands below this line


### Place your custom commands above this line
################################################

ES=$?
[ "$VERBOSE" != no ] && log_end_msg $ES
return $ES
else # run through this if it IS an ISO
logger bodhibuilder ISO booted
sleep 1
# Remove any cdrom: repos that may be in sources.list
sed -i '/cdrom:/d' /etc/apt/sources.list &> /dev/null

fi
}


case "$1" in
start)
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions bodhibuilder/etc/bodhibuilder/grub/grub.bodhi
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
#
# bodhibuilder grub file

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=7
GRUB_DISTRIBUTOR="bodhibuilder"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="quiet"
GRUB_GFXPAYLOAD_LINUX=auto

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_BACKGROUND="/etc/grub.d/backgrounds/grub.png"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=iso_boot_script
GenericName=
Icon=display
Exec=/etc/bodhibuilder/isofiles/iso_boot_script.sh &
Terminal=false
Type=Application
Categories=Settings;HardwareSettings;AudioVideo;Audio;Video;
StartupNotify=true
Loading

0 comments on commit d9036b9

Please sign in to comment.