Win7x64 : Golden Image : partitions problems ... again
-
@Jonathan-Cool Can you share the contents of d1.fixed_size_partitions d1.partitions and d1.minimum.partitions
-
Yes i can !
d1.fixed_size_partitions :
:2
d1.partitions :
label: dos label-id: 0xc91a5cff device: /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 204800, type=7, bootable /dev/sda2 : start= 206848, size= 335335424, type=7
d1.minimum.partitions :
label: dos label-id: 0xc91a5cff device: /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 52316, type=7, bootable /dev/sda2 : start= 206848, size= 335335424, type=7
What do you think about that ?
-
@Jonathan-Cool Itâs very strange. The regex should definitely match now, yet it marks the wrong partition as fixed_size for some reason.
Iâve looked over the code and canât immediatly find anything desperately wrong or incorrect for the time being.
The strange thing, imo, is that it marks the second partition as fixed, whereas weâd expect it to mark none as fixed if it were to fail (unless Iâm missing something in the code, but donât think so)
-
Maybe i choose wrong parameters when i created my VM with Virtual BOX the first time ? (details on the first topic) ?
-
@Jonathan-Cool Did you switch to a fixed size as I suggested in the previous thread?
Though, I donât see how that would cause this exact problem, to be honest.
Itâs very weird that you get :2 in fixed_size_partitions as I get an empty file on my W7 French installs instead. Did you assign a label to the drive per chance?
It seems like our efforts havenât quite made the difference I hoped yet. The regex matches in my bash tests, but doesnât seem to match in FOS in a real world scenario. Iâm rather baffled as to why that is, though.
-
@Quazz said in Win7x64 : Golden Image : partitions problems ... again:
Did you assign a label to the drive per chance?Yes, my drive is named âSystemâ into my Golden Image ⊠https://drive.google.com/file/d/0B48PuYLEHxQLUEU5clJOZC1Vb3c/view
Maybe this name is confusing FOG ?
-
@Jonathan-Cool Ideally it shouldnât cause any problems, but because the label system seems to be having some issues, it might be a good idea to remove it before capture at least.
That should leave you with an empty fixed_size_partitions file I thinkâŠ
Still doesnât answer why the system reserved isnât matching, it doesnât really make any sense to me off the top of my head.
-
I will try to remove this label on the C drive and recapture the image ⊠and try a new download on the optiplex 7050.
I will be back !
-
@Jonathan-Cool My âfuck this shitâ solution atm is the following if youâd like to try it
Note that this is experimental and can cause issues on systems with odd labels so use at own risk⊠but
sed -i -e "s#\\[Rr\\]\\[Ee\\]\\[Ss\\]\\[Ee\\]\\[Rr\\]\\[Vv\\]\\[Ee\\]\\[Dd\\]#[Rr]*[Ss][Ee][Rr][Vv]#gi" /bin/fog.upload sed -i -e "s#\\[Rr\\]\\[Ee\\]\\[Ss\\]\\[Ee\\]\\[Rr\\]\\[Vv\\]\\[Ee\\]\\[Dd\\]#[Rr]*[Ss][Ee][Rr][Vv]*#gi" /usr/share/fog/lib/funcs.sh
This seems to allow the regex to match at least, of course itâs far less precise now. Still donât know why it hates Ă© so much, but that seems to be the issue unfortunately.
Should also work on English and Dutch systems I think.
-
So after some testing, I think the main problem was the case pattern matching not being able to match for some reason in FOS. (works fine on my server, however)
Iâve updated my commit to change it to the if pattern matching instead (which I already tested actually works in FOS).
Donât know when/if it gets merged, but that should resolve issues for French Windows installs at least.
Pull request here: https://github.com/FOGProject/fos/pull/13
-
@Quazz
Hi.
I can try to remove my C label partition and see the result or itâs not necessary anymore ?
Same question for the last âsedâ you proposed âŠMaybe my best option is waiting the fix in a next release ⊠?
-
@Jonathan-Cool Iâd recommend trying both and seeing if it resolves your problem.
I donât know when/if the PR will get accepted, could be a while.
updated the sed because the escapes got removed again.
-
@Quazz Thanks heaps for testing and your pull request. Really weird that it was that hard to figure out for the French accents⊠Looks pretty good to me although I canât test it.
@Jonathan-Cool I will see if I can manage to build and upload fresh init files in the next couple of days. This way you wouldnât need to use the sed stuff.
-
@Quazz said in Win7x64 : Golden Image : partitions problems ... again:
@Jonathan-Cool My âfuck this shitâ solution atm is the following if youâd like to try it
Note that this is experimental and can cause issues on systems with odd labels so use at own risk⊠but
sed -i -e "s#\\[Rr\\]\\[Ee\\]\\[Ss\\]\\[Ee\\]\\[Rr\\]\\[Vv\\]\\[Ee\\]\\[Dd\\]#[Rr]*[Ss][Ee][Rr][Vv]#gi" /bin/fog.upload sed -i -e "s#\\[Rr\\]\\[Ee\\]\\[Ss\\]\\[Ee\\]\\[Rr\\]\\[Vv\\]\\[Ee\\]\\[Dd\\]#[Rr]*[Ss][Ee][Rr][Vv]*#gi" /usr/share/fog/lib/funcs.sh
In the second line, we can see a â*â, is-it a mistake or not ? (line concerning funcs.sh)
After your answer, i will try :
- to update my fog.postint
- remove my C label
-
@Jonathan-Cool Itâs not a mistake, although you could write the line differently since thatâs an if regex pattern match, which does work.
*
means any character in pattern matching, which includes Ă© of courseIt worked for my images anyway, so hopefully you can reproduce those results.
-
@Sebastian-Roth Thanks, I probably should have looked into it earlier, but donât always have the time for such things.
What are your thoughts on https://forums.fogproject.org/topic/12428/win7x64-golden-image-partitions-problems-again/29 as an alternative system, by the way?
Potentially we could combine multiple systems to increase accuracy and reliability, too.
-
Today, iâm the very happy french of the world ⊠'cause itâs WORKS !
I tried on o7010, o5050 and o7050 and itâs works !
Wahouuuuuuuuuuuuuuuu
I just want to say many thanks to you both and i think, itâs not enough ⊠!Long live to FOG Project
fog.postinit :
sed -i -e "s#\[Rr\]\[Ee\]\[Ss\]\[Ee\]\[Rr\]\[Vv\]\[Ee\]\[Dd\]#[Rr]*[Ss][Ee][Rr][Vv]#gi" /bin/fog.upload sed -i -e "s#\[Rr\]\[Ee\]\[Ss\]\[Ee\]\[Rr\]\[Vv\]\[Ee\]\[Dd\]#[Rr]*[Ss][Ee][Rr][Vv]*#gi" /usr/share/fog/lib/funcs.sh
Label on C drive removed on the Golden image.
Happy Face
Solved !!
-
@Jonathan-Cool Glad to hear itâs working Hopefully this will be fixed in the inits soon enough too.
-
@Quazz Thanks again for your work on this! Iâll add this soon but have one more question about it, see on github.
What are your thoughts on https://forums.fogproject.org/topic/12428/win7x64-golden-image-partitions-problems-again/29 as an alternative system, by the way?
Good you reminded me on this! I moved the issue from repo fogproject to fos#18 where it belongs now that we have those things separated a while ago. Please letâs try to collect information and ideas there.
@Jonathan-Cool Nice you got it working! Weâll add Quazz pull request anyway for the time being. Should be in there in the next couple of days. Iâll mark this solved now.