Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # LN# 785-791 of /initrd/init (tahrpup) - https://www.pearltrees.com/s243a/initrd-init/id19535893/item224275653
- # LN# 845-851 https://github.com/puppylinux-woof-CE/woof-CE/blob/c96d661c2232caef1d69c693de673fb0e54796f8/initrd-progs/0initrd/init#L845 (13 Mar 2018)
- get_part_info() {
- probedisk > /tmp/ALLDRVS
- ls -1 /sys/block | grep -E '^scd|^sd|^mmc|^sr' > /tmp/ALLDRVS0
- PCPARTSALL="$(/sbin/probepart_init -k)"
- HAVE_PARTS="$(echo "$PCPARTSALL" | grep '^/dev/' | cut -f 1-2 -d '|' | grep -E 'f2fs|udf|iso9660|ext2|ext3|ext4|reiserfs|msdos|vfat|minix|ntfs' | sed -e 's%/dev/%%')"
- [ "$PDEBUG" ] && echo "$HAVE_PARTS" > /tmp/HAVE_PARTS
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement