922-always-create-console-node-in-initramfs.patch 582 B

123456789101112131415161718192021222324252627282930
  1. --- a/scripts/gen_initramfs_list.sh
  2. +++ b/scripts/gen_initramfs_list.sh
  3. @@ -59,6 +59,18 @@ default_initramfs() {
  4. EOF
  5. }
  6. +list_librecmc_initramfs() {
  7. + :
  8. +}
  9. +
  10. +librecmc_initramfs() {
  11. + # make sure that /dev/console exists
  12. + cat <<-EOF >> ${output}
  13. + dir /dev 0755 0 0
  14. + nod /dev/console 0600 0 0 c 5 1
  15. + EOF
  16. +}
  17. +
  18. filetype() {
  19. local argv1="$1"
  20. @@ -177,6 +189,8 @@ dir_filelist() {
  21. if [ "$(echo "${dirlist}" | wc -l)" -gt 1 ]; then
  22. ${dep_list}print_mtime "$1"
  23. + ${dep_list}librecmc_initramfs
  24. +
  25. echo "${dirlist}" | \
  26. while read x; do
  27. ${dep_list}parse ${x}