Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 91b8edcc26 | |||
| 3cbf32be30 | |||
| 4e2a2fecb1 | |||
| 001fdf99d3 | |||
| e95c4f3cff |
47
docs/README
47
docs/README
@@ -16,6 +16,9 @@ It should be fine over ethernet, since hardware switches are much faster and eff
|
|||||||
Future versions, once this project has a dumping ground, will fetch highly compressed snapshotted chroot filesystems instead
|
Future versions, once this project has a dumping ground, will fetch highly compressed snapshotted chroot filesystems instead
|
||||||
of dynamically building the entire install chroots (both x86_64 and i686) instead (with the option of building fresh locally,
|
of dynamically building the entire install chroots (both x86_64 and i686) instead (with the option of building fresh locally,
|
||||||
disabled by default).
|
disabled by default).
|
||||||
|
|
||||||
|
Maybe.
|
||||||
|
|
||||||
Till then, sorry for the inconvenience.
|
Till then, sorry for the inconvenience.
|
||||||
!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
@@ -56,11 +59,6 @@ All commands below should be issued in the root working directory of this git re
|
|||||||
but also disk space for working, the finished ISO(s), etc.)
|
but also disk space for working, the finished ISO(s), etc.)
|
||||||
|
|
||||||
-The following packages installed on the build host:
|
-The following packages installed on the build host:
|
||||||
(NOTE: future versions will have dependencies checked automatically and installed if necessary,
|
|
||||||
depending on distro your host build machine is. the OS detection and package installation component of that isn't
|
|
||||||
done yet though. 2014.10.31)
|
|
||||||
(NOTE2: Make sure all the packages you specify are valid package names. A mistyped package name will cause the chroot creation to
|
|
||||||
break and everything else will break as a result.)
|
|
||||||
|
|
||||||
curl
|
curl
|
||||||
dosfstools
|
dosfstools
|
||||||
@@ -72,9 +70,24 @@ squashfs-tools
|
|||||||
xorriso (in RPMForge repo for CentOS 7)
|
xorriso (in RPMForge repo for CentOS 7)
|
||||||
xz
|
xz
|
||||||
|
|
||||||
and *probably* a few others. The scripts run with set -e for the most part, so if something's missed, you'll know.
|
and maybe a few others. The scripts run with set -e for the most part, so if something's missed, you'll know.
|
||||||
Oh, you will know.
|
Oh, you will know.
|
||||||
|
|
||||||
|
If these packages are missing, they will be automatically installed. Currently, the following distros as host build systems
|
||||||
|
are supported (assumes most recent release):
|
||||||
|
|
||||||
|
Antergos
|
||||||
|
Arch
|
||||||
|
CentOS
|
||||||
|
Debian
|
||||||
|
Fedora
|
||||||
|
Gentoo
|
||||||
|
Mageia
|
||||||
|
Manjaro
|
||||||
|
openSUSE
|
||||||
|
RHEL
|
||||||
|
SUSE
|
||||||
|
Ubuntu
|
||||||
|
|
||||||
## Configuration ##
|
## Configuration ##
|
||||||
See extra/build.conf.sample. Copy to <PROJECT ROOT>/build.conf if you wish to modify any of the values, otherwise the defaults
|
See extra/build.conf.sample. Copy to <PROJECT ROOT>/build.conf if you wish to modify any of the values, otherwise the defaults
|
||||||
@@ -105,6 +118,18 @@ Also note the following files/paths:
|
|||||||
--/mirror.lst.sh:
|
--/mirror.lst.sh:
|
||||||
Builds a fresh mirror list. Note that it is US based.
|
Builds a fresh mirror list. Note that it is US based.
|
||||||
|
|
||||||
|
-docs:
|
||||||
|
Documentation for BDisk.
|
||||||
|
--/COPYING:
|
||||||
|
See LICENSE.
|
||||||
|
--/README:
|
||||||
|
This file.
|
||||||
|
--/LICENSE:
|
||||||
|
The license file.
|
||||||
|
--/FAQ:
|
||||||
|
Several quick questions you might have.
|
||||||
|
--/TODO:
|
||||||
|
Some features, bug fixes, etc. I have planned.
|
||||||
-examples:
|
-examples:
|
||||||
Included recommendation for how to lay things out, etc.
|
Included recommendation for how to lay things out, etc.
|
||||||
--/HTTP:
|
--/HTTP:
|
||||||
@@ -112,7 +137,7 @@ Also note the following files/paths:
|
|||||||
-extra:
|
-extra:
|
||||||
Supporting files for the base building system (mirrorlist, etc.).
|
Supporting files for the base building system (mirrorlist, etc.).
|
||||||
--/${UXNAME}.png:
|
--/${UXNAME}.png:
|
||||||
A 640x480 8-bit RGBA colour PNG which will be used as the background for the bootsplash (if booting via BIOS and not UEFI)
|
L A 640x480 8-bit RGBA colour PNG which will be used as the background for the bootsplash (if booting via BIOS and not UEFI)
|
||||||
--/bootstrap/apacman-*.tar.xz:
|
--/bootstrap/apacman-*.tar.xz:
|
||||||
An AUR-enabled package manager. Necessary for AUR support.
|
An AUR-enabled package manager. Necessary for AUR support.
|
||||||
--/build.conf.sample:
|
--/build.conf.sample:
|
||||||
@@ -130,6 +155,8 @@ Also note the following files/paths:
|
|||||||
--/pre-build.d:
|
--/pre-build.d:
|
||||||
Contains files injected into the system. Both 64-bit and 32-bit environments. Note: be sure to place them in hierarchical order
|
Contains files injected into the system. Both 64-bit and 32-bit environments. Note: be sure to place them in hierarchical order
|
||||||
(e.g. if you wish to have a file at /usr/foo/bar, you will need to place it in <PROJECT ROOT>/extra/pre-build.d/usr/foo/bar)
|
(e.g. if you wish to have a file at /usr/foo/bar, you will need to place it in <PROJECT ROOT>/extra/pre-build.d/usr/foo/bar)
|
||||||
|
(NOTE: Make sure all the packages you specify are valid package names. A mistyped or nonexistent package name will cause the chroot
|
||||||
|
creation to break and everything else will break as a result.)
|
||||||
--/pre-build.d/32:
|
--/pre-build.d/32:
|
||||||
Same as above, but only for 32-bit environments.
|
Same as above, but only for 32-bit environments.
|
||||||
--/pre-build.d/64:
|
--/pre-build.d/64:
|
||||||
@@ -143,8 +170,6 @@ Also note the following files/paths:
|
|||||||
Here you can find full output of the runs. They are prefixed with run's PID number, and named after the function they occur in.
|
Here you can find full output of the runs. They are prefixed with run's PID number, and named after the function they occur in.
|
||||||
-overlay:
|
-overlay:
|
||||||
These files are applied AFTER the initial setup of the chroots. Same hierarchy rules as extra/pre-build.d.
|
These files are applied AFTER the initial setup of the chroots. Same hierarchy rules as extra/pre-build.d.
|
||||||
-README:
|
|
||||||
This file.
|
|
||||||
-src:
|
-src:
|
||||||
Supporting source code/source code from other projects.
|
Supporting source code/source code from other projects.
|
||||||
--ipxe/:
|
--ipxe/:
|
||||||
@@ -153,14 +178,12 @@ Also note the following files/paths:
|
|||||||
Various patches and supporting configs to tweak the iPXE build.
|
Various patches and supporting configs to tweak the iPXE build.
|
||||||
-tftpboot:
|
-tftpboot:
|
||||||
Files to be served via TFTP for PXE booting. This directory is wiped out during any bin/clean.sh operation.
|
Files to be served via TFTP for PXE booting. This directory is wiped out during any bin/clean.sh operation.
|
||||||
-TODO:
|
|
||||||
This is just what I'm using to track stuff I want to add.
|
|
||||||
|
|
||||||
|
|
||||||
You may notice other files come and go; they're mostly there for extra goodies/used to determine other things.
|
You may notice other files come and go; they're mostly there for extra goodies/used to determine other things.
|
||||||
|
|
||||||
## (Re)Building ##
|
## (Re)Building ##
|
||||||
Building must be done as root, and on an Arch x86_64 system (future versions will allow for non-Arch distros).
|
Building must be done as root, and on a supported distro (see Prerequisites for a list).
|
||||||
|
|
||||||
# bin/build.sh
|
# bin/build.sh
|
||||||
|
|
||||||
|
|||||||
BIN
extra/bootstrap/apacman-2.3-1-any.FIXED.pkg.tar.xz
Normal file
BIN
extra/bootstrap/apacman-2.3-1-any.FIXED.pkg.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
@@ -141,11 +141,11 @@ keyutils
|
|||||||
kismet-allplugins
|
kismet-allplugins
|
||||||
lftp
|
lftp
|
||||||
links
|
links
|
||||||
logkeys-git
|
#logkeys-git # requires a /dev/input, which apparently isn't included in the chroots
|
||||||
lm_sensors
|
lm_sensors
|
||||||
lrzsz
|
lrzsz
|
||||||
lshw
|
lshw
|
||||||
lsiutil
|
#lsiutil # 404'ing on source url at the moment
|
||||||
lsof
|
lsof
|
||||||
lsscsi
|
lsscsi
|
||||||
lxde
|
lxde
|
||||||
|
|||||||
4
extra/pre-build.d/etc/customizepkg.d/autopsy
Executable file
4
extra/pre-build.d/etc/customizepkg.d/autopsy
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# original URL at sourceforge chokes out
|
||||||
|
sed -re 's@^(source=\(").*$@\1ftp://ftp.gnome.org/mirror/temp/sf2015/a/au/autopsy/autopsy/2.24/autopsy-2.24.tar.gz")@g' ${1}
|
||||||
3
extra/pre-build.d/etc/customizepkg.d/etc-update
Executable file
3
extra/pre-build.d/etc/customizepkg.d/etc-update
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sed -i -re 's/^(url=)\((.*)\)$/\1\2/g' ${1}
|
||||||
3
extra/pre-build.d/etc/customizepkg.d/fang
Executable file
3
extra/pre-build.d/etc/customizepkg.d/fang
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sed -i -re 's/^(url=)\((.*)\)$/\1\2/g' ${1}
|
||||||
3
extra/pre-build.d/etc/customizepkg.d/libnfc
Executable file
3
extra/pre-build.d/etc/customizepkg.d/libnfc
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sed -i -re 's/^(url=)\((.*)\)$/\1\2/g' ${1}
|
||||||
4
extra/pre-build.d/etc/customizepkg.d/ms-sys
Executable file
4
extra/pre-build.d/etc/customizepkg.d/ms-sys
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# original URL at sourceforge chokes out
|
||||||
|
sed -re 's@^(source=\(").*$@\1http://fossies.org/linux/privat/${pkgname}-${pkgver}.tar.gz")@g' ${1}
|
||||||
@@ -168,6 +168,7 @@ EOF
|
|||||||
echo "Done."
|
echo "Done."
|
||||||
echo -n "...Importing keys..."
|
echo -n "...Importing keys..."
|
||||||
${CHROOTCMD} ${i}/ pacman-key --populate archlinux >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ pacman-key --populate archlinux >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
${CHROOTCMD} ${i}/ pacman-key -r 93481F6B >> "${LOGFILE}.${FUNCNAME}" 2>&1 # add developer's keys
|
||||||
echo "Done."
|
echo "Done."
|
||||||
# Prep base building system
|
# Prep base building system
|
||||||
echo -n "...Installing base packages..."
|
echo -n "...Installing base packages..."
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ EOF
|
|||||||
## Apply our patches.
|
## Apply our patches.
|
||||||
for i in $(find ${BASEDIR}/src/ipxe_local/patches/ -type f -iname "*.patch" -printf '%P\n' | sort);
|
for i in $(find ${BASEDIR}/src/ipxe_local/patches/ -type f -iname "*.patch" -printf '%P\n' | sort);
|
||||||
do
|
do
|
||||||
patch -Np2 < ${BASEDIR}/src/ipxe_local/patches/${i} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
patch --verbose -Np2 < ${BASEDIR}/src/ipxe_local/patches/${i} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
done
|
done
|
||||||
## SSL
|
## SSL
|
||||||
SSLDIR="${BASEDIR}/src/ipxe_local/ssl"
|
SSLDIR="${BASEDIR}/src/ipxe_local/ssl"
|
||||||
|
|||||||
2
src/ipxe
2
src/ipxe
Submodule src/ipxe updated: 6143057430...2d42d3cff6
@@ -1,6 +1,8 @@
|
|||||||
|
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
|
||||||
|
index e93b015..758e187 100644
|
||||||
--- a/src/usr/autoboot.c
|
--- a/src/usr/autoboot.c
|
||||||
+++ b/src/usr/autoboot.c
|
+++ b/src/usr/autoboot.c
|
||||||
@@ -71,6 +71,7 @@
|
@@ -71,6 +71,7 @@ static int ( * is_autoboot_device ) ( struct net_device *netdev );
|
||||||
#define NORMAL "\033[0m"
|
#define NORMAL "\033[0m"
|
||||||
#define BOLD "\033[1m"
|
#define BOLD "\033[1m"
|
||||||
#define CYAN "\033[36m"
|
#define CYAN "\033[36m"
|
||||||
@@ -8,16 +10,27 @@
|
|||||||
|
|
||||||
/** The "scriptlet" setting */
|
/** The "scriptlet" setting */
|
||||||
const struct setting scriptlet_setting __setting ( SETTING_MISC, scriptlet ) = {
|
const struct setting scriptlet_setting __setting ( SETTING_MISC, scriptlet ) = {
|
||||||
@@ -538,11 +539,10 @@
|
@@ -521,7 +522,6 @@ static int shell_banner ( void ) {
|
||||||
|
* @ret rc Return status code
|
||||||
|
*/
|
||||||
|
int ipxe ( struct net_device *netdev ) {
|
||||||
|
- struct feature *feature;
|
||||||
|
struct image *image;
|
||||||
|
char *scriptlet;
|
||||||
|
int rc;
|
||||||
|
@@ -538,11 +538,11 @@ int ipxe ( struct net_device *netdev ) {
|
||||||
* do so.
|
* do so.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
- printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s"
|
- printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s"
|
||||||
+ printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME
|
+ printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME
|
||||||
NORMAL " -- " PRODUCT_TAG_LINE " -- "
|
NORMAL " -- " PRODUCT_TAG_LINE " -- "
|
||||||
- CYAN PRODUCT_URI NORMAL "\nFeatures:", product_version );
|
- CYAN PRODUCT_URI NORMAL "\nFeatures:", product_version );
|
||||||
+ CYAN PRODUCT_URI NORMAL "\n"
|
- for_each_table_entry ( feature, FEATURES )
|
||||||
+ BOLD BLUE "https://bdisk.square-r00t.net/" NORMAL "\n" );
|
- printf ( " %s", feature->name );
|
||||||
|
+ CYAN PRODUCT_URI NORMAL "\n"
|
||||||
|
+ BOLD "BDisk" BLUE "LiveDistro" NORMAL " -- Welp, Yer Boned!(TM) -- "
|
||||||
|
+ BOLD BLUE "https://bdisk.square-r00t.net/" NORMAL "\n" );
|
||||||
printf ( "\n" );
|
printf ( "\n" );
|
||||||
|
|
||||||
/* Boot system */
|
/* Boot system */
|
||||||
|
|||||||
Reference in New Issue
Block a user