Skip to content

Commit d01c6e3

Browse files
committed
fix(image): wrong golang package name
1 parent be97113 commit d01c6e3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build-rootfs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -xe
44

5-
dd if=/dev/zero of=rootfs.ext4 bs=1M count=200
5+
dd if=/dev/zero of=rootfs.ext4 bs=1M count=1000
66
mkfs.ext4 rootfs.ext4
77
mkdir -p /tmp/my-rootfs
88
mount rootfs.ext4 /tmp/my-rootfs
@@ -11,7 +11,7 @@ docker run -i --rm \
1111
-v /tmp/my-rootfs:/my-rootfs \
1212
-v "$(pwd)/target/x86_64-unknown-linux-musl/release/agent:/usr/local/bin/agent" \
1313
-v "$(pwd)/openrc-service.sh:/etc/init.d/agent" \
14-
alpine sh < setup-alpine.sh
14+
alpine sh <setup-alpine.sh
1515

1616
umount /tmp/my-rootfs
1717

setup-alpine.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ apk add --no-cache openrc
66
apk add --no-cache util-linux
77
apk add --no-cache gcc libc-dev
88
apk add --no-cache python2 python3
9-
apk add --no-cache golang
9+
apk add --no-cache go
1010

1111
ln -s agetty /etc/init.d/agetty.ttyS0
12-
echo ttyS0 > /etc/securetty
12+
echo ttyS0 >/etc/securetty
1313
rc-update add agetty.ttyS0 default
1414

15-
echo "root:root"|chpasswd
15+
echo "root:root" | chpasswd
1616

17-
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
17+
echo "nameserver 1.1.1.1" >>/etc/resolv.conf
1818

1919
rc-update add devfs boot
2020
rc-update add procfs boot
2121
rc-update add sysfs boot
2222

2323
rc-update add agent boot
2424

25-
for d in bin etc lib root sbin usr; do tar c "/$d" | tar x -C /my-rootfs;done
25+
for d in bin etc lib root sbin usr; do tar c "/$d" | tar x -C /my-rootfs; done
2626
for dir in dev proc run sys var tmp; do mkdir /my-rootfs/${dir}; done

0 commit comments

Comments
 (0)