Skip to content

Commit

Permalink
readlink needs to be called inside the nfsroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 11, 2024
1 parent 191ae2b commit a6c3fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions debian/tests/nfsroot
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ chk-file $TFTP/ldlinux.e64
chk-size $N/boot/initrd.img* 40
chk-no-file $N/etc/udev/rules.d/70-persistent-net.rules

chroot $N /usr/bin/lsinitrd -m $(readlink /initrd.img) | grep livenet || error "livenet fehlt"
chroot $N /usr/bin/lsinitrd $(readlink /initrd.img) | grep mount.nfs || error "mount.nfs fehlt"
initrd=$(chroot $N readlink -f /initrd.img)
chroot $N /usr/bin/lsinitrd -m $initrd | grep livenet || error "livenet fehlt"
chroot $N /usr/bin/lsinitrd $initrd | grep mount.nfs || error "mount.nfs fehlt"

# - - - - - - - - - - - - - - - - -
# fai-chboot
Expand Down

0 comments on commit a6c3fae

Please sign in to comment.