|
1 | | - |
| 1 | + |
2 | 2 |
|
3 | 3 | ## Description |
4 | 4 |
|
@@ -47,3 +47,59 @@ If you have problems with master branch, please try to use stable version from t |
47 | 47 |
|
48 | 48 | This work is based on instructions from [Linux from Scratch](http://www.linuxfromscratch.org/lfs) |
49 | 49 | project and provided with MIT license. |
| 50 | + |
| 51 | +## Linux From Scratch Docker |
| 52 | + |
| 53 | +[reinterpretcat/lfs](https://github.com/reinterpretcat/lfs) |
| 54 | + |
| 55 | +```bash |
| 56 | +libgmp.la: not found |
| 57 | +libmpfr.la: not found |
| 58 | +libmpc.la: not found |
| 59 | +/mnt/lfs/sources /mnt/lfs/sources |
| 60 | +Assume toolchain from host is already placed in sources folder |
| 61 | +/mnt/lfs/sources |
| 62 | +Building binutils.. |
| 63 | +Approximate build time: 1 SBU |
| 64 | +Required disk space: 547 MB |
| 65 | +tar: binutils-*.tar.xz: Cannot open: No such file or directory |
| 66 | +tar: Error is not recoverable: exiting now |
| 67 | +``` |
| 68 | + |
| 69 | +put to `lfs/toolchain` |
| 70 | + |
| 71 | +[](https://udomain.dl.sourceforge.net/project/bzip2/bzip2-1.0.6.tar.gz) |
| 72 | + |
| 73 | +```bash |
| 74 | +/mnt/lfs/sources |
| 75 | +Building bzip2.. |
| 76 | +Approximate build time: less than 0.1 SBU |
| 77 | +Required disk space: 5.2 MBg |
| 78 | +zip: stdin: not in gzip format |
| 79 | +tar: Child returned status 1 |
| 80 | +tar: Error is not recoverable: exiting now |
| 81 | +``` |
| 82 | + |
| 83 | +### bzip2 文件错误,重新下载 |
| 84 | + |
| 85 | +```bash |
| 86 | +wget -c [https://udomain.dl.sourceforge.net/project/bzip2/bzip2-1.0.6.tar.gz](https://udomain.dl.sourceforge.net/project/bzip2/bzip2-1.0.6.tar.gz) |
| 87 | +``` |
| 88 | + |
| 89 | +### syslinux |
| 90 | + |
| 91 | +```bash |
| 92 | +Start building bootable image.. |
| 93 | +/tmp /mnt/lfs/sources |
| 94 | +Configuring syslinux.. |
| 95 | +tar: /mnt/lfs/sources/syslinux-*.tar.xz: Cannot open: No such file or directory |
| 96 | +tar: Error is not recoverable: exiting now |
| 97 | +``` |
| 98 | + |
| 99 | +[[syslinux] How to create a Bootable Live CD/DVD from your Linux From Scratch (LFS) build](https://www.syslinux.org/archives/2020-March/026620.html) |
| 100 | + |
| 101 | +[reinterpretcat/lfs](https://github.com/reinterpretcat/lfs/blob/master/scripts/image/1.configure-syslinux.sh) |
| 102 | + |
| 103 | +```bash |
| 104 | +wget -c https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz |
| 105 | +``` |
0 commit comments