默认输出图像文件位于lb config
已使用的位置
有没有办法自定义输出img目录?就像输出 img 到目录 IMG_1、IMG_2 等
# mkdir /customlive
# cd /customlive
# lb config --binary-image hdd --apt-indices false --apt-recommends false --debootstrap-options "--variant=minbase" --firmware-chroot false --memtest none
# echo "user-setup sudo" > config/package-lists/recommends.list.chroot
# echo "ifupdown isc-dhcp-client" >> config/package-lists/recommends.list.chroot
# lb build 2>&1 | tee build.log
默认输出:
/customlive/linux-image-amd64.img
我想要的是:
/customlive/lb config
/customlive/IMG_1/lb build
/customlive/IMG_1/linux-image-amd64.img
答案1
尝试
# mkdir -p /customlive/IMG_1
# cd /customlive/IMG_1
︙