home  bbs  files  messages ]

      ZZLI4427             linux.debian.maint.boot             512 messages      

[ previous | next | reply ]

[ list messages | list forums ]

  Msg # 159 of 512 on ZZLI4427, Thursday 10-01-25, 1:20  
  From: PHILIP HANDS  
  To: ALEXANDER BARAKIN  
  Subj: Bug#1116709: hw-detect: list_deb_firmwar  
 XPost: linux.debian.bugs.dist 
 From: phil@hands.com 
  
 alexander barakin  writes: 
  
 >  list_deb_firmware () { 
 >   udpkg -c "$1" \\ 
 > -  | grep '^\\./lib/firmware/' \\ 
 > -  | sed -e 's!^\\./lib/firmware/!!' \\ 
 > +  | grep '^\\.\\(/usr\\)\\?/lib/firmware/' \\ 
 > +  | sed -e 's!^\\.\\(/usr\\)\\?/lib/firmware/!!' \\ 
 >    | grep -v '^$' 
 >  } 
  
 Here's a variation on that which avoids the `grep | sed | grep` pipe, 
 and takes advantage of the fact that we have support for -E in d-i. 
  
   https://salsa.debian.org/installer-team/hw-detect/-/merge_requests/14 
  
 BTW I notice mentions of /lib/firmware in a few other places: 
  
 =-=-=-= 
 packages/hw-detect/check-missing-firmware.sh 
 184:        if [ ! -e /lib/firmware/$fwfile ] ; then 
 217:                    target="/lib/firmware${sdir:+/$sdir}" 
  
 packages/busybox/util-linux/mdev.c 
 64://config:    /lib/firmware/ and if it exists, send it to the kernel for 
 900: * - userspace checks /lib/firmware/$FIRMWARE 
 903: * - userspace copies /lib/firmware/$FIRMWARE into /sys/$DEVPATH/data 
 912:    /* check for /lib/firmware/$FIRMWARE */ 
 914:    if (chdir("/lib/firmware") == 0) 
  
 installation-guide/en/using-d-i/loading-firmware.xml 
 31:copied to the correct location (/lib/firmware) and 
 =-=-=-= 
  
 do they also need fixing? (I'd guess that the symlinks mean this 
 shouldn't break things, but eventually we should probably settle on 
 using the real location) 
  
 Cheers, Phil. 
 -- 
 Philip Hands -- https://hands.com/~phil 
  
 --- SoupGate-Win32 v1.05 
  * Origin: you cannot sedate... all the things you hate (1:229/2) 

[ list messages | list forums | previous | next | reply ]

search for:

328,129 visits
(c) 1994,  bbs@darkrealms.ca