PUPMODE 3

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

PUPMODE 3

Karl Godt
Administrator
Anyone has experience with PUPMODE=3 ?


I have now reworked init code to support old-style initramdisk root=/dev/ram0 using pivot_root and chroot if /dev/ram0 found in /proc/mounts .

So have a dozen initrd.gz changed to initrd.ext2 files .
as
dd if=/dev/zero of=initrd.ext2 bs=1024 count=13000
mkfs.ext2 initrd.ext2
Adjusted /usr/sbin/filemnt and /usr/share/mime/globs .

So mounting the initrd.ext2 file and extracting the initrd.gz makes it now easier to batch edit initrd init 's .


Now towards the PUPMODE=3 issue :
What I detected is, that PUPMODE gets set "0" and "72" if multifolders found .

Then it gets +4 added and if PUPSAVE additionally +8 .

So by reading the code logic , PUPMODE 3 is never get reached .

Can anyone shed some light on this ?



Reply | Threaded
Open this post in threaded view
|

Re: PUPMODE 3

Karl Godt
Administrator
Have a solution as something like

If test "$PUPSFS" != ""; then
 PUPMODE=$PUPMODE +4
 test DEV1PUP -o DEV2PUP && PUPMODE=PUPMODE +2
elif test $PRAMONLY = yes; then
 .
 .
 if $DROPOUT; then
 .
 fi
else
 PUPMODE=$PUPMODE +2
fi

if PUPMODE = 4; then

DO_SAVEFILE_CODE

fi

That then would need a 2) case for PUPMODE further down that then would add +1 if PMEDIA=ataflash .
The dropout code for PUPSFS not found would need then be tested further several times down likely
if not /mnt/data/etc/DISTRO_SPECS would be found ( so dropout being a function(){ :; } ).
If DISTRO_SPECS, then needs code to switch to a regular traditional full installation .