Re: "--debian-installer" of `lb config` not work in order.
On 2021/3/11 下午6:10, Roland Clobus wrote:
> Hello Xiao,
>
> Thank you for the detailed report.
>
> On 11/03/2021 04:18, ZhangXiao wrote:
>> On bullseye, I tried to make an ISO used to install a specific Debian
>> system, but seems `lb config --debian-installer live" can't make it. My
>> operation is:
>>
>> $ rm -rf *; lb clean; lb config --debian-installer live; lb build
>>
>> Then I get an ISO image, when I boot with it, it gives me several
>> choices including "Live (amd64)" and "Start installer". If I choose the
>> "Start installer", it will fail for "no kernel modules found", then I
>> "Execute a shell" in the installer and the uname tells me the kernel
>> version is "5.9.0.4".
>>
>> While if I choose to run the "Live (amd64)", it will boot up with the
>> newest kernel: 5.10.0.4
>>
>> So I wonder if there are any issues on my operations or there is a bug
>> in lb? And how to make a live-cd to install a debian system with
>> kernel-5.10.0.4?
> It appears that the Debian-Installer images have not been updated yet to
> reflect the newer kernel version.z
>
> I've copied this mail to the DebianInstaller team at
> debian-boot@lists.debian.org
>
> For the moment, you'll need the daily build of the installer:
> --parent-debian-installer-distribution daily
Thank you for you kindly remind. :-)
So, that is just a little bug of lb and installer. I mean if this bug
been fixed in the future, I can make a specified installer ISO image
with lb, right? With my own kernel package with debian style and some
debian style user space packages.
BTW: When I use lb(20210216), I have to adjust some meta files to fit
for current bullseye's official repository, as below:
--- /usr/share/live/build/functions/configuration.sh
+++ /usr/share/live/build/functions/configuration.sh
@@ -190,13 +190,13 @@ Prepare_config ()
LB_MIRROR_CHROOT="${LB_MIRROR_CHROOT:-${LB_MIRROR_BOOTSTRAP}}"
LB_PARENT_MIRROR_CHROOT="${LB_PARENT_MIRROR_CHROOT:-${LB_PARENT_MIRROR_BOOTSTRAP}}"
if [ "${LB_MODE}" = "debian" ]; then
-
LB_MIRROR_CHROOT_SECURITY="${LB_MIRROR_CHROOT_SECURITY:-http://security.debian.org/}"
+
LB_MIRROR_CHROOT_SECURITY="${LB_MIRROR_CHROOT_SECURITY:-http://security.debian.org/debian-security/}"
LB_PARENT_MIRROR_CHROOT_SECURITY="${LB_PARENT_MIRROR_CHROOT_SECURITY:-${LB_MIRROR_CHROOT_SECURITY}}"
LB_MIRROR_BINARY="${LB_MIRROR_BINARY:-http://deb.debian.org/debian/}"
LB_PARENT_MIRROR_BINARY="${LB_PARENT_MIRROR_BINARY:-${LB_MIRROR_BINARY}}"
-
LB_MIRROR_BINARY_SECURITY="${LB_MIRROR_BINARY_SECURITY:-http://security.debian.org/}"
+
LB_MIRROR_BINARY_SECURITY="${LB_MIRROR_BINARY_SECURITY:-http://security.debian.org/debian-security/}"
LB_PARENT_MIRROR_BINARY_SECURITY="${LB_PARENT_MIRROR_BINARY_SECURITY:-${LB_MIRROR_BINARY_SECURITY}}"
fi
LB_MIRROR_DEBIAN_INSTALLER="${LB_MIRROR_DEBIAN_INSTALLER:-${LB_MIRROR_CHROOT}}"
--- /usr/share/live/build/functions/sourcelist.sh
+++ /usr/share/live/build/functions/sourcelist.sh
@@ -84,14 +84,14 @@ Create_apt_sources_list ()
;;
*)
- echo "deb
${PARENT_MIRROR_SECURITY} ${PARENT_DISTRIBUTION}/updates
${LB_PARENT_ARCHIVE_AREAS}" >> "${PARENT_LIST_FILE}"
- echo "deb-src
${PARENT_MIRROR_SECURITY} ${PARENT_DISTRIBUTION}/updates
${LB_PARENT_ARCHIVE_AREAS}" >> "${PARENT_LIST_FILE}"
+ echo "deb
${PARENT_MIRROR_SECURITY} ${PARENT_DISTRIBUTION}-security
${LB_PARENT_ARCHIVE_AREAS}" >> "${PARENT_LIST_FILE}"
+ echo "deb-src
${PARENT_MIRROR_SECURITY} ${PARENT_DISTRIBUTION}-security
${LB_PARENT_ARCHIVE_AREAS}" >> "${PARENT_LIST_FILE}"
;;
esac
if [ "${LB_DERIVATIVE}" = "true" ]; then
- echo "deb ${MIRROR_SECURITY}
${_DISTRIBUTION}/updates ${LB_ARCHIVE_AREAS}" >> "${LIST_FILE}"
- echo "deb-src ${MIRROR_SECURITY}
${_DISTRIBUTION}/updates ${LB_ARCHIVE_AREAS}" >> "${LIST_FILE}"
+ echo "deb ${MIRROR_SECURITY}
${_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> "${LIST_FILE}"
+ echo "deb-src ${MIRROR_SECURITY}
${_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> "${LIST_FILE}"
fi
;;
esac
Thanks
Xiao
> With kind regards,
> Roland Clobus
>
> https://wiki.debian.org/ReproducibleInstalls/LiveImages
>
Reply to: