Open kean0048 opened 5 months ago
From 44f4e65b686edd70d878727e73e2e9ecb3ae113b Mon Sep 17 00:00:00 2001 From: Renhai rh_king@163.com Date: Thu, 25 Apr 2024 16:24:17 +0800 Subject: [PATCH] fixed xz download failed issues and losetup errors.
mylfs.sh | 1 + packages.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/mylfs.sh b/mylfs.sh index f279997..59e5f4f 100755 --- a/mylfs.sh +++ b/mylfs.sh @@ -207,6 +207,7 @@ function init_image {
# reattach loop device to re-read partition table
losetup -d $LOOP
sleep 1 losetup -P $LOOP $LFS_IMG
diff --git a/packages.sh b/packages.sh index 29dbf42..bab0b56 100644 --- a/packages.sh +++ b/packages.sh @@ -75,7 +75,7 @@ export PKG_UTILLINUX=https://www.kernel.org/pub/linux/utils/util-linux/v2.38/uti export PKG_VIM=https://anduin.linuxfromscratch.org/LFS/vim-9.0.0228.tar.gz export PKG_WHEEL=https://anduin.linuxfromscratch.org/LFS/wheel-0.37.1.tar.gz export PKG_XMLPARSER=https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz -export PKG_XZ=https://tukaani.org/xz/xz-5.2.6.tar.xz +export PKG_XZ=https://distfiles.macports.org/xz/xz-5.2.6.tar.bz2 export PKG_ZLIB=https://zlib.net/zlib-1.2.13.tar.xz export PKG_ZSTD=https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz export PATCH_BZIP2=https://www.linuxfromscratch.org/patches/lfs/11.2/bzip2-1.0.8-install_docs-1.patch -- 2.43.0
![Uploading 2024-04-25_16-35.png…]()
Thanks for the info. Submit a PR if you want and I'll merge your changes.
when run 'sudo ./mylfs.sh --build-all' and input Y to delete the old image, there will be a new failed like: losetup: /works/Tools/LFS/MyLFS/lfs.img: failed to set up loop device: Device or resource busy
and I debug it, found there some code during loopx has been used and will try to re-plug it, but time too short, so lead the issues maybe, and I and sleep during it, and found every is fine.
Attached here for your check.
Thanks.