Merge branch 'next' of github.com:dyne/libdevuansdk into next
This commit is contained in:
commit
ca4f489ebb
|
|
@ -116,7 +116,7 @@ bootstrap_tar_pack() {
|
||||||
local _dest=$(dirname $bootstrap_tgz)
|
local _dest=$(dirname $bootstrap_tgz)
|
||||||
|
|
||||||
if [[ -f $bootstrap_tgz ]]; then
|
if [[ -f $bootstrap_tgz ]]; then
|
||||||
act "tarball found already in $_dest"
|
notice "tarball found already in $_dest"
|
||||||
else
|
else
|
||||||
notice "Creating boostrap tarball in $bootstrap_tgz"
|
notice "Creating boostrap tarball in $bootstrap_tgz"
|
||||||
silly
|
silly
|
||||||
|
|
@ -138,16 +138,17 @@ bootstrap_tar_unpack() {
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
if [[ -f "${unpath}/.keep" ]]; then
|
if [[ -f "${unpath}/.keep" ]]; then
|
||||||
|
act "skipping tarball unpack"
|
||||||
|
else
|
||||||
|
sudo rm -rf ${unpath}
|
||||||
mkdir -p ${unpath}
|
mkdir -p ${unpath}
|
||||||
silly
|
silly
|
||||||
sudo tar xfp $bootstrap_tgz -C ${unpath}
|
sudo tar xfp $bootstrap_tgz -C ${unpath}
|
||||||
sudo mkdir -p ${unpath}/{boot,dev,sys,proc}
|
sudo mkdir -p ${unpath}/{boot,dev,sys,proc}
|
||||||
else
|
|
||||||
error "no .keep file found. exiting..."
|
|
||||||
zerr
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
conf_print_sourceslist | sudo tee $strapdir/etc/apt/sources.list >/dev/null
|
||||||
|
|
||||||
cat <<EOF | sudo tee ${strapdir}/postunpack >/dev/null
|
cat <<EOF | sudo tee ${strapdir}/postunpack >/dev/null
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
|
||||||
|
|
@ -88,10 +88,13 @@ iso_squash_strap() {
|
||||||
|
|
||||||
notice "creating squashfs out of strapdir"
|
notice "creating squashfs out of strapdir"
|
||||||
|
|
||||||
|
[[ -n "$mkefi" ]] && uefi_opt="-Xbcj x86"
|
||||||
pushd $workdir
|
pushd $workdir
|
||||||
sudo mksquashfs $strapdir binary/live/filesystem.squashfs \
|
sudo mksquashfs $strapdir binary/live/filesystem.squashfs \
|
||||||
|
${=uefi_opt} \
|
||||||
-noappend -comp xz || zerr
|
-noappend -comp xz || zerr
|
||||||
popd
|
popd
|
||||||
|
unset uefi_opt
|
||||||
}
|
}
|
||||||
|
|
||||||
iso_xorriso_build() {
|
iso_xorriso_build() {
|
||||||
|
|
@ -102,6 +105,10 @@ iso_xorriso_build() {
|
||||||
notice "building iso..."
|
notice "building iso..."
|
||||||
isoname="${image_name}-live.iso"
|
isoname="${image_name}-live.iso"
|
||||||
|
|
||||||
|
[[ -n "$mkefi" ]] && {
|
||||||
|
uefi_opt="-eltorito-alt-boot -e boot/grub/efiboot.img -isohybrid-gpt-basdat -no-emul-boot"
|
||||||
|
}
|
||||||
|
|
||||||
mkdir -p $R/dist
|
mkdir -p $R/dist
|
||||||
pushd $workdir
|
pushd $workdir
|
||||||
sudo xorriso -as mkisofs -r -J -joliet-long -l \
|
sudo xorriso -as mkisofs -r -J -joliet-long -l \
|
||||||
|
|
@ -113,9 +120,11 @@ iso_xorriso_build() {
|
||||||
-no-emul-boot \
|
-no-emul-boot \
|
||||||
-boot-load-size 4 \
|
-boot-load-size 4 \
|
||||||
-boot-info-table \
|
-boot-info-table \
|
||||||
|
${=uefi_opt} \
|
||||||
-o $R/dist/$isoname \
|
-o $R/dist/$isoname \
|
||||||
binary || zerr
|
binary || zerr
|
||||||
popd
|
popd
|
||||||
|
unset uefi_opt
|
||||||
}
|
}
|
||||||
|
|
||||||
iso_setup_installer() {
|
iso_setup_installer() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue