This repository was archived by the owner on Jul 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +10
-13
lines changed Expand file tree Collapse file tree 8 files changed +10
-13
lines changed File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -47,21 +47,13 @@ apt-get update
47
47
curl https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/master/alpine-chroot-install | sh
48
48
49
49
cp -R bootstrap/ /alpine/
50
-
51
- /alpine/enter-chroot /bootstrap/kernel.sh
52
- /alpine/enter-chroot /bootstrap/system.sh
53
- /alpine/enter-chroot /bootstrap/users.sh
54
- /alpine/enter-chroot /bootstrap/networking.sh
55
- /alpine/enter-chroot /bootstrap/services.sh
56
- /alpine/enter-chroot /bootstrap/first-boot.sh
50
+ /alpine/enter-chroot run-parts /bootstrap/
57
51
58
52
rm -rf /alpine/var/lib/apt/lists/*
59
53
rm -rf /alpine/var/cache/apk/*
60
54
rm -rf /alpine/root/*
61
55
rm -rf /alpine/bootstrap/
62
- rm /alpine/enter-chroot
63
- rm /alpine/etc/resolv.conf
64
- rm /alpine/env.sh
56
+ rm /alpine/env.sh /alpine/etc/resolv.conf /alpine/enter-chroot /alpine/destroy
65
57
find /alpine -iname " *-" -delete
66
58
find /alpine -iname " *~" -delete
67
59
@@ -78,7 +70,12 @@ resize2fs -p "$ROOT_DEV" $ROOT_MIN_SIZE
78
70
79
71
# shrink partition
80
72
PART_END=$(( $ROOT_PART_START + ($ROOT_MIN_SIZE * $ROOT_BLOCK_SIZE )) )
81
- parted ---pretend-input-tty " $OUTPUT_IMG " unit B resizepart 2 $PART_END yes
73
+ parted ---pretend-input-tty " $OUTPUT_IMG " << EOF
74
+ unit B
75
+ resizepart 2 $PART_END
76
+ yes
77
+ quit
78
+ EOF
82
79
83
80
losetup -d " $LOOP_DEV "
84
81
Original file line number Diff line number Diff line change 1
- FROM ubuntu:bionic
2
- RUN apt-get update && apt-get install -y e2fsprogs dosfstools xxd parted udev wget curl qemu-user-static binfmt-support subversion zerofree
1
+ FROM ubuntu:hirsute
2
+ RUN apt-get update && apt-get install -y e2fsprogs dosfstools xxd parted udev wget curl qemu-user-static binfmt-support zerofree fdisk
You can’t perform that action at this time.
0 commit comments