Many thanks @nic

Here is a version with no external file

RUN mv /bin/uname /bin/uname.orig
RUN printf '#!/bin/bash\n\nif [[ "$1" == "-r" ]] ;then\n  echo '4.9.250'\n  
exit\nelse\n  uname.orig "$@"\nfi' > /bin/uname
RUN chmod 755 /bin/uname

(The second statement should be all on one line if you copy-paste it)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1962225

Title:
  preinst check that kernel revision < 255 now does more harm than good

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1962225/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to