Mountpoints

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Mountpoints

Karl Godt
Administrator
1) If the kernel is configured to mount /dev at boot time and populate and maintain it, the kernel does not create /dev/fd and /dev/stdin, -out, -err .
    That would likely need at least be done in rc.sysinit .
   
mountpoint /dev &&  {
   [ -e /dev/fd ] || ln -s ../proc/self/fd /dev/fd
   [ -e /dev/stdin ] || ln -s fd/0 /dev/stdin
   [ -e /dev/stdout ] || ln -s fd/1 /dev/stdout
   [ -e /dev/stderr ] || ln -s fd/2 /dev/stderr
   }

2) Current Slacko-5.6.3 still pops the message about unplugging flash drive, even in RAM mode PUPMODE 5 ( pfix=ram ) .
   The /initrd folder still is a place I don't know much about .
 
    /initrd/pup_ro2 is always the puppy_name_ve.rs.ion.sfs and always mounted.
    /initrd/pup_ro3 is always the zdrv_name_ve.rs.ion.sfs
    /initrd/pup_ro4 is always the devx_name_ve.rs.ion.sfs

   Now I remember the /initrd/mnt/dev_save directory.
   Would that work :
  #v2.16 popup a warning if booting from usb flash...
if [ "$PMEDIA" = "usbflash" ];then
if mountpoint /initrd/mnt/dev_save; then
 yaf-splash $OPTIONS  "WARNING! Do not unplug USB Flash drive!" &
fi
fi

   
   
   
Reply | Threaded
Open this post in threaded view
|

Re: Mountpoints

Karl Godt
Administrator
And for

pfix=ram,nocopy

the mountpoint is not
/initrd/mnt/dev_save ,
but
/initrd/mnt/dev_ro2 .

So that is not a real RAM mode, just ignores save-files .

  #v2.16 popup a warning if booting from usb flash...
if [ "$PMEDIA" = "usbflash" ];then
if mountpoint /initrd/mnt/dev_save || mountpoint /initrd/mnt/dev_ro2; then
 yaf-splash $OPTIONS  "WARNING! Do not unplug USB Flash drive!" &
fi
fi