iso sudo permission + disable proxy
This commit is contained in:
parent
c8ba24ff3b
commit
d709619830
19
make.sh
19
make.sh
@ -58,11 +58,11 @@ _config()
|
|||||||
lb clean
|
lb clean
|
||||||
lb clean --cache
|
lb clean --cache
|
||||||
|
|
||||||
|
#--apt-http-proxy "http://192.168.110.1:3142" \
|
||||||
lb config noauto \
|
lb config noauto \
|
||||||
--architectures amd64 \
|
--architectures amd64 \
|
||||||
--distribution bullseye \
|
--distribution bullseye \
|
||||||
--binary-images iso-hybrid \
|
--binary-images iso-hybrid \
|
||||||
--apt-http-proxy "http://192.168.110.1:3142" \
|
|
||||||
--archive-areas "main contrib non-free" \
|
--archive-areas "main contrib non-free" \
|
||||||
--debian-installer none \
|
--debian-installer none \
|
||||||
--apt-recommends false \
|
--apt-recommends false \
|
||||||
@ -81,6 +81,15 @@ _config()
|
|||||||
ln -sr $config/package-lists/$file.list.chroot $build/config/package-lists/$file.list.chroot
|
ln -sr $config/package-lists/$file.list.chroot $build/config/package-lists/$file.list.chroot
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ ! -f "$iso" ];then
|
||||||
|
printf "\e[96mCreate ISO directory\e[0m\n"
|
||||||
|
install -d -m 0755 -o $SUDO_UID -g $SUDO_GID $iso
|
||||||
|
fi
|
||||||
|
|
||||||
|
out="$iso/$type"
|
||||||
|
|
||||||
|
install -d -m 0755 -o $SUDO_UID -g $SUDO_GID $out
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_build()
|
_build()
|
||||||
@ -123,10 +132,6 @@ _create_squashfs()
|
|||||||
|
|
||||||
printf "\e[96mCopy filesystem\e[0m\n"
|
printf "\e[96mCopy filesystem\e[0m\n"
|
||||||
|
|
||||||
out="$iso/$type"
|
|
||||||
|
|
||||||
install -d -m 0755 -o $SUDO_UID -g $SUDO_GID $out
|
|
||||||
|
|
||||||
cp $build/binary/live/{initrd.img,vmlinuz,filesystem.squashfs} $out/
|
cp $build/binary/live/{initrd.img,vmlinuz,filesystem.squashfs} $out/
|
||||||
|
|
||||||
chown $SUDO_UID:$SUDO_GID $out/{initrd.img,vmlinuz,filesystem.squashfs}
|
chown $SUDO_UID:$SUDO_GID $out/{initrd.img,vmlinuz,filesystem.squashfs}
|
||||||
@ -141,10 +146,6 @@ _create_iso()
|
|||||||
|
|
||||||
printf "\e[96mCopy ISO\e[0m\n"
|
printf "\e[96mCopy ISO\e[0m\n"
|
||||||
|
|
||||||
out="$iso/$type"
|
|
||||||
|
|
||||||
install -d -m 0755 -o $SUDO_UID -g $SUDO_GID $out
|
|
||||||
|
|
||||||
cp $build/live-image-amd64.hybrid.iso $out/live-${type}-image.iso
|
cp $build/live-image-amd64.hybrid.iso $out/live-${type}-image.iso
|
||||||
|
|
||||||
chown $SUDO_UID:$SUDO_GID $out/live-${type}-image.iso
|
chown $SUDO_UID:$SUDO_GID $out/live-${type}-image.iso
|
||||||
|
Loading…
x
Reference in New Issue
Block a user