File tree Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 88
88
if : always()
89
89
run : |
90
90
mkdir /tmp/logs
91
- cp ./strace* uml-ci/slirp* / tmp/logs || true
91
+ cp ./strace* / tmp/logs
92
92
- uses : actions/upload-artifact@v1
93
93
if : always()
94
94
with :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ if [[ $CI_CGROUPS == "cgroup-v2" ]] && [ -z "${CI_VM+set}" ]; then
13
13
sudo apt install sshpass strace
14
14
wget http://ftp.debian.org/debian/pool/main/s/slirp/slirp_1.0.17-8_amd64.deb -O slirp.deb && sudo dpkg -i slirp.deb
15
15
( cd uml-ci; ./main.sh; )
16
- sudo sshpass -p user ssh -p 2224 user@127.0.0.1 " cat /vagrant/ logs.zip | base64" | base64 --decode > logs.zip
16
+ # sudo sshpass -p user ssh -p 2224 user@127.0.0.1 "cat logs.zip | base64" | base64 --decode > logs.zip ## WTF IS THIS??
17
17
sudo sshpass -p user ssh -p 2224 user@127.0.0.1 sudo poweroff
18
18
rm stracez-dummy
19
19
unzip logs.zip
Original file line number Diff line number Diff line change @@ -10,8 +10,14 @@ tar -xJf linux-5.4.93.tar.xz
10
10
cd linux-5.4.93
11
11
export ARCH=um
12
12
make defconfig
13
+ cat >> .config << EOF
14
+ CONFIG_CGROUP_PIDS=y
15
+ CONFIG_MEMCG=y
16
+ CONFIG_MEMCG_SWAP=y
17
+ CONFIG_MEMCG_SWAP_ENABLED=y
18
+ EOF
13
19
make -j3
14
20
)
15
21
linux-5.4.93/linux mem=4096M ubda=img rootfstype=hostfs init=" $PWD " /uml-setup.sh
16
- linux-5.4.93/linux mem=4096M ubda=img root=/dev/ubda1 rootfstype=ext4 hostfs=.. eth0=slirp,,./uml-slirp.sh &
22
+ linux-5.4.93/linux mem=4096M ubda=img root=/dev/ubda1 rootfstype=ext4 hostfs=.. eth0=slirp,,./uml-slirp.sh
17
23
./uml-ssh.sh
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ export CI_OS=fedora
5
5
export CI_CGROUPS=cgroup-v2
6
6
export CI_TARGET=x86_64-unknown-linux-musl
7
7
export CI_VM=1
8
- bash ci/linux.sh
8
+ exec ci/linux.sh
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ echo root:root | chpasswd
14
14
ifconfig eth0 10.0.2.15 netmask 255.255.255.0
15
15
route add default dev eth0
16
16
echo nameserver 10.0.2.3 > /etc/resolv.conf
17
- ifconfig -a > /dev/console
18
- route > /dev/console
19
17
exit 0
20
18
' > /dev/mnt/etc/rc.d/rc.local
21
19
chmod +x /dev/mnt/etc/rc.d/rc.local
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ while ! echo incompatible | nc 127.0.0.1 2224; do sleep 1; done
6
6
set -e
7
7
8
8
sleep 10
9
- sshpass -p root ssh -v - o ' StrictHostKeyChecking no' -p 2224 root@127.0.0.1 ' sed -i ' " '" ' s/.*wheel.*/#\0/' " '" ' /etc/sudoers; sed -i ' " '" ' s/#*\(.*wheel.*NOPASSWD.*\)/\1/' " '" ' /etc/sudoers; adduser -g wheel --uid ' " $( id -u) " ' user; echo user:user | chpasswd'
10
- sshpass -p user ssh -v - o ' StrictHostKeyChecking no' -p 2224 user@127.0.0.1 ' sudo mount -t hostfs hostfs ~; cd; exec uml-ci/payload.sh'
9
+ sshpass -p root ssh -o ' StrictHostKeyChecking no' -p 2224 root@127.0.0.1 ' sed -i ' " '" ' s/.*wheel.*/#\0/' " '" ' /etc/sudoers; sed -i ' " '" ' s/#*\(.*wheel.*NOPASSWD.*\)/\1/' " '" ' /etc/sudoers; adduser -g wheel --uid ' " $( id -u) " ' user; echo user:user | chpasswd'
10
+ sshpass -p user ssh -o ' StrictHostKeyChecking no' -p 2224 user@127.0.0.1 ' sudo mount -t hostfs hostfs ~; cd; exec uml-ci/payload.sh'
You can’t perform that action at this time.
0 commit comments