File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ qemu-debootstrap \
24
24
rm -f $dest /var/lib/dpkg/status
25
25
mv $dest /bin/mount /mount.bak
26
26
cp $dest /bin/true $dest /bin/mount
27
- chroot $dest /debootstrap/debootstrap --second-stage
27
+ chroot $dest /usr/bin/qemu- $arch -static / debootstrap/debootstrap --second-stage
28
28
mv -f /mount.bak $dest /bin/mount
29
29
30
30
# ssh
31
- chroot $dest adduser --disabled-password --gecos " " cross
32
- echo " cross:cross" | chroot $dest chpasswd
31
+ chroot $dest /usr/bin/qemu- $arch -static adduser --disabled-password --gecos " " cross
32
+ echo " cross:cross" | chroot $dest /usr/bin/qemu- $arch -static chpasswd
33
33
34
34
# init
35
35
cat << EOF > $dest /init
39
39
chmod +x $dest /init
40
40
41
41
# networking
42
- chroot $dest systemctl enable systemd-networkd
42
+ chroot $dest /usr/bin/qemu- $arch -static systemctl enable systemd-networkd
43
43
44
44
cat << EOF > $dest /etc/hostname
45
45
qemu
You can’t perform that action at this time.
0 commit comments