find_devel
find_devel locates zz_devel and mounts it to /mnt/devel, /usr, and /cdrom or /cdrom/PartitionX
Version: 1.1
Status: Done
Usage
find_devel
Purpose
find_devel simplifies the process of loading and booting custom software and init scripts.
Process
- find_devel will check the root directory of each FAT/NTFS/EXT2 partition on the local hard drive for:
- a folder named zz_devel, or
- a file named zz_devel.
- If it finds a zz_devel folder or file, it will mount the root of the partition at /mnt/devel.
- If zz_devel is a folder, it will also be bound to /usr.
- If it finds a zz_devel file, it reads the contents to see if they refer to a folder on that partition. If the file is empty, it mounts the root of the partition as /usr. If the contents contain the path to a folder (rooted at the partition root), it will mount that folder under /usr.
- After successfully mounting the partition, find_devel searches for the same partition mounted as (or under) /cdrom. If it finds the mount, it is unmounted and rebound to /mnt/devel (the root of the partition).
Examples
Your /usr files are in the root of the second partition:
- Create an empty zz_devel file in the root of the partition.
Your /usr files are in /zz_devel on any partition:
Your /usr files are in /Recycler on your third partition:
- Create a zz_devel file containing /Recycler in the root of the partition.
Credits
- john (author, testing)
- danny (testing, suggestions)
- vasile (testing, suggestions)
License
(C) 2008 gardez <gardez_au_congelee@yahoo.co.uk>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
Downloading
The latest version of find_devel can always be found in the project sourceforge repository:
Comments
- John: This does leave the open question of how to deal with mounting both /usr and /opt. Did we decide about zz_opt/zz_usr et al?
- VB: What about having /cdrom/zz_devel/usr mounted to /usr (to obey FHS) and /cdrom/zz_devel/opt mounted to /opt (to obey OptWare requirements)? Having a long PATH is not a big deal, as long as we don't have name conflicts (the same filename in 2 places in the PATH). It's also easier to switch the mindset from mg35 to PC (for ftp) and back.
- John: This would work very^3 well with pivot_root, too, since zz_devel would be the new root automagically. Sold.
History
Version 1.1
- Added ext2 partition type to search list
Version 1.0
- Combined fix_devel functionality into find_devel, to be run after dvdplayer
Version 0.0
- Two scripts, find_devel and fix_devel
- find_devel located the /usr partition before dvdplayer
- fix_devel remounted /cdrom/PartitionX RW after dvdplayer
Comments (0)
You don't have permission to comment on this page.