|
这个是解开的initrd.xz
livemain=*)
LIVEMAIN=$(echo $ARG | cut -f2 -d=)
;;
livemedia=*)
# generic syntax: livemedia=/dev/sdX
# ISO syntax: livemedia=/dev/sdX:/path/to/live.iso
LM=$(echo $ARG | cut -f2 -d=)
LIVEMEDIA=$(echo $LM | cut -f1 -d:)
LIVEPATH=$(echo $LM | cut -f2 -d:)
unset LM
initrd.xz中的根目录有个init是个脚本,有段处理这两个参数。
往下有个scandev不知道怎么用,真是英文太差劲,无能为力啊!!!!if [ "$LIVEMEDIA" = "scandev" ]; then # Scan partitions to find the one with the ISO and set LIVEMEDIA:
echo -e "${MARKER}: Scanning for '$LIVEPATH'..."
for ISOPART in $(ret_partition $(blkid |cut -d: -f1)) $(ret_blockdev $(blkid |cut -d: -f1)) ; do
PARTFS=$(blkid $ISOPART |rev |cut -d'"' -f2 |rev)
# Abuse the $SUPERMNT a bit, we will actually use it later:
mount -t $PARTFS -o ro $ISOPART ${SUPERMNT}
if [ -f ${SUPERMNT}/${LIVEPATH} ]; then
# Found our ISO!
LIVEMEDIA=$ISOPART
umount $ISOPART
unset ISOPART
break
else
umount $ISOPART
fi
|
|