Skip to content

Commit

Permalink
ci: Update th1520.yml for bsp ci image
Browse files Browse the repository at this point in the history
change rootfs for root password and allow root user for ssh login.
  • Loading branch information
hhuan10 authored and qchehuang committed May 15, 2024
1 parent 0ac5759 commit 0ec5817
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/th1520.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ jobs:
mkdir -p mnt
sudo mount root-lpi4amain-ci-${TIMESTAMP}.ext4 mnt
sudo mount boot-lpi4amain-ci-${TIMESTAMP}.ext4 mnt/boot
sudo chroot mnt sh -c "echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config"
sudo chroot mnt sh -c "echo root:root | chpasswd"
sudo chroot mnt sh -c 'apt remove -y linux-image* linux-headers*'
sudo dcmd cp -v ${GITHUB_WORKSPACE}/artifact/*.changes mnt/root
sudo chroot mnt sh -c 'dpkg -i /root/*.deb'
Expand Down

0 comments on commit 0ec5817

Please sign in to comment.