W dniu 25.05.2011 00:39, Karel Zak pisze:
from mount(8) code: need_escaping[] = { ' ', '\t', '\n', '\\' }; It's used for all strings in fstab (so not for mountpoints only).Also, some standard handling uuid/label and watching for other stuff as well would be good too. Plain 'test -e' is not too proper either.From my point of view it would be ideal to avoid fstab parsing in the script at all. export FSTAB_FILE=/etc/fstab.sys for $dev in $(findmnt --fstab -o SOURCE -e -n -O no_netdev); do fsck -T $dev mount $dev --target-prefix $NEWROOT done Unfortunately mount(8) does not allow to read info about mountpoints from alternative fstab file and it does not support --target-prefix now. I'll add this to my TODO list. Karel
Ok, thanks for info (btw, findmnt seems to only handle octal escapes). I'll update fstab-sys & co. and send new set of patches. -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
