[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Question] Integrating the debian installer in live-build - DVD, multi-arch, custom, etc.



JNQNFE I think you need to make it clear who you are replying to. At
one stage I thought you were talking to me so I replied but looking
back it is not clear if you were talking to me or someone else.

With regards to my config it "just works" as it is. With regards to
the keyring slash I noticed it as I pasted it into the email but I
didn't change it because guess what it still "just works".

If you know how to build a multi arch system please share exaclty how
to do it. I ask this because it has been brought up a few times over
the years and Subhani is the only one that has said he has it working.

Cheers.
Michael.



On 21/04/2020, jnqnfe@gmail.com <jnqnfe@gmail.com> wrote:
> I've not taken a detailed look at this, but some things stand out:
>
> 1) if you're using live-build version 20191219 or newer, add an
> architecture specifier to the secondary kernel flavour.
>
> -  _FL="686-pae amd64" \
> +  _FL="686-pae amd64:amd64" \
>
> 2) with bootloaders you're mixing comma AND space separation. this may
> work, but it might not. i'd air on the side of caution and just use
> comma separation.
>
> -  --bootloaders "syslinux, grub-efi" \
> +  --bootloaders "syslinux,grub-efi" \
>
> 3) "config" in --bootappend-live needs to be replaced with "components"
> (for live-config 4.x+ compatibility)
>
> -   --bootappend-live "boot=live config quiet splash keyboard-
> layouts=us" \
> +   --bootappend-live "boot=live components quiet splash keyboard-
> layouts=us" \
>
> 4) i would not recommand caching the chroot stage
>
> -  --cache-stages "bootstrap chroot" \
> +  --cache-stages "bootstrap" \
>
> (or just remove it, thus leaving it as default)
>
> 5) --fdisk "fdisk" is an old hack, you should just remove this
>
> 6) --gzip-options "-6 --rsyncable" is the default, so just remove it
>
> 7) bad quoting in --iso-publisher and --iso-volume
>
> -   --iso-publisher ""${_D}" GNU/Linux" \
> +   --iso-publisher "${_D} GNU/Linux" \
>
> -   --iso-volume ""${_D}" "${_DE}" "${_BIT}" $(date +%Y%m%d)" \
> +   --iso-volume "${_D} ${_DE} ${_BIT} $(date +%Y%m%d)" \
>
> 8) bad quoting for keyring packages and wrong slash at end of line
>
> -   --keyring-packages "mx19-archive-keyring" "antix-archive-keyring"/
> +   --keyring-packages "mx19-archive-keyring antix-archive-keyring" \
>
> 9) --tasksel is an obsolete option, remove it
>
> there are other options using defaults, but no particular needs to
> remove them.
>
>
> On Tue, 2020-04-21 at 12:47 +1000, Michael . wrote:
>> This is the config I have used when I had the error and subsequent
>> failure. It is a modified version of what used to be use by Ozzie
>> (STAR Linux). This configuration works for everything I have done
>> until the 2nd flavour as per Subhani's suggestion is added and that
>> breaks this configuration.
>>
>> #!/bin/sh
>>
>> set -e
>>
>> #_A="amd64" \ CPU Architecture i386 = 32 BIT (686 and 686-pae) amd64
>> =
>> 64 BIT. It would be great if we could build ARM images for RPi.
>> _A="i386" \
>> #_AA="main contrib non-free" \ Archive Areas must have at least main,
>> contrib and non-free are optional
>> _AA="main contrib non-free" \
>> #_BIT="x86-64" \ x86 = 32 BIT system x86-64 = 64 BIT system
>> _BIT="x86" \
>> #_DD="buster" \ Debian Distribution e.g. buster
>> _DD="buster" \
>> #_D="Rugged" \ Debian Derivative Distro e.g. Cobber or Rugged
>> _D="Rugged" \
>> #_F="false" \ When the answer to a question is false
>> _F="false" \
>> #_FL="amd64" \ Linux Flavour as in BIT. Options (currently) are 686
>> 686-pae amd64. Flavor MUST match _A="" (CPU Architecture) to work
>> _FL="686-pae amd64" \
>> #_MB="http://deb.debian.org/debian/"; \ Repository Mirror to be used
>> _MB="http://deb.debian.org/debian/"; \
>> #_MS="http://security.debian.org/"; \ Security Repository Mirror, this
>> is usually always http://security.debian.org/ unless you are building
>> a non Debian system
>> _MS="http://security.debian.org/"; \
>> #_T="true" \ When the answer to a question is true
>> _T="true" \
>> #_DE="builder-choice" \ Desktop Environment or Window Manager used in
>> the build. Choices are Cinnamon, Gnome, KDE, LXDE, LXQT, Mate, TDE
>> (Trinity), XFCE, etc etc etc.
>> _DE="Mate" \
>> #_WM="builder-choice" \ Window Manager used in the build. Choices
>> are,
>> currently, Fluxbox.
>> _WM="Fluxbox" \
>>
>> lb config noauto \
>> 	--apt "apt" \
>> 	--apt-indices "${_F}" \
>> 	--apt-options "--yes" \
>> 	--apt-recommends "${_F}" \
>> 	--apt-secure "${_T}" \
>> 	--apt-source-archives "${_F}" \
>> 	--aptitude-options "--assume-yes" \
>> 	--architectures "${_A}" \
>> 	--archive-areas "${_AA}" \
>> 	--backports "${_F}" \
>> 	--binary-filesystem "fat32" \
>> 	--bootappend-live "boot=live config quiet splash keyboard-
>> layouts=us" \
>> 	--bootappend-live-failsafe "boot=live components memtest noapic
>> noapm
>> nodma nomce nolapic nomodeset nosmp nosplash vga=normal" \
>> 	--bootloaders "syslinux, grub-efi" \
>> 	--cache "${_T}" \
>> 	--cache-indices "${_F}" \
>> 	--cache-packages "${_T}" \
>> 	--cache-stages "bootstrap chroot" \
>> 	--checksums "md5 sha1 sha256" \
>>     --chroot-filesystem "squashfs" \
>>     --debian-installer "live" \
>> 	--distribution "${_DD}" \
>> 	--debian-installer-distribution "${_DD}" \
>> 	--debian-installer-gui "${_T}" \
>> 	--fdisk "fdisk" \
>> 	--firmware-binary "${_F}" \
>> 	--firmware-chroot "${_F}" \
>> 	--gzip-options "-6 --rsyncable" \
>> 	--hdd-label ""${_D}"Live" \
>> 	--initramfs "live-boot" \
>> 	--initramfs-compression "gzip" \
>> 	--iso-application ""${_D}"-Live-"${_DE}"" \
>> 	--iso-preparer "Michael" \
>> 	--iso-publisher ""${_D}" GNU/Linux" \
>> 	--iso-volume ""${_D}" "${_DE}" "${_BIT}" $(date +%Y%m%d)" \
>>     --keyring-packages "mx19-archive-keyring" "antix-archive-
>> keyring"/
>> 	--linux-flavours "${_FL}" \
>>     --linux-packages "linux-image" \
>> 	--mirror-binary "${_MB}" \
>> 	--mirror-bootstrap "${_MB}" \
>> 	--mirror-debian-installer "${_MB}" \
>> 	--parent-mirror-binary-security "${_MS}" \
>> 	--parent-mirror-bootstrap "${_MB}" \
>> 	--parent-mirror-chroot-security "${_MS}" \
>> 	--quiet "${_F}" \
>> 	--security "${_T}" \
>> 	--source "${_F}" \
>> 	--source-images "${_F}" \
>> 	--system "live" \
>> 	--tasksel "apt" \
>> 	--uefi-secure-boot "enable" \
>> 	--updates "${_T}" \
>> 	--verbose "${_T}" \
>> 	--win32-loader "${_F}" \
>> 	--zsync "${_T}" \
>> "${@}"
>>
>> After reading Subhani's latest reply, and Subhani please don't call
>> anything MichaelOS, there is much more to it that just a regular live
>> build.
>> Cheers.
>> Michael.
>>
>> On 21/04/2020, jnqnfe@gmail.com <jnqnfe@gmail.com> wrote:
>> > I've not really been following this thread, I've just previously
>> > given
>> > it a brief read.
>> >
>> > I noticed this in the example config given:
>> >
>> > > --linux-flavours 686 amd64
>> >
>> > This is obviously wrong, there needs to be quoting here! Could that
>> > be
>> > the source of your problem?
>> >
>> > Also, I'm not entirely familiar with using the multi-flavour
>> > feature,
>> > but I recall a mention of "686 amd64:amd64".
>> >
>> > On Tue, 2020-04-21 at 10:07 +1000, Michael . wrote:
>> > > I just tried Subhani's tip and it failed with
>> > > E: Error reading the CPU table
>> > > P: Begin unmounting filesystems...
>> > > P: Saving caches...
>> > > E: Error reading the CPU table
>> > >
>> > > ...
>> > >
>> > > > > > > > > lb config --binary-images iso-hybrid --mode debian
>> > > > > > --architectures i386
>> > > > > > > > > --linux-flavours 686 amd64 --distribution buster --
>> > > > > > > > > archive-areas
>> > > > > > "main
>> > > > > > > > > contrib non-free" --updates true --security true --
>> > > > > > > > > cache
>> > > > > > > > > true
>> > > > > > > > > --apt-recommends true --debian-installer live
>> > > > > > --debian-installer-gui
>> > > > > > > > > true
>> > > > > > > > > --win32-loader true --iso-application PakOS10.3 --
>> > > > > > > > > iso-
>> > > > > > > > > preparer
>> > > > > > > > > subhaniminhas-https://sourceforge.net/projects/pakos/
>> > > > > > --iso-publisher
>> > > > > > > > > subhaniminhas-https://sourceforge.net/projects/pakos/
>> > > > > > --iso-volume
>> > > > > > > > > PakOS10.3
>
>


Reply to: