 refresh catalogue from store, at very early stage. I'd think this is operation do not need to do pre-seeding
<ondra> Chipaca it's so early in the boot, we have no network, so it keeps timing out.
<Chipaca> ondra: you're saying skipping that saves us 20+ seconds?
<ogra> yeah, snapd really shouldnt assume network... we have many wlan equipped boards that first need wifi setup
<ondra> Chipaca in our case there will be never network a this stage ( wireless only net interface, image has no baked in AP credentials)
<ondra> Chipaca yep
<pstolowski> ondra: funny you mention this as it's currently erroring/making noise in my pre-baking code (precisely because of no network in the chroot env) and i was about to look at what to do about it
<Chipaca> ondra: you can trick it to skipping that step fwiw
<ondra> Chipaca https://paste.ubuntu.com/p/73vXpjW3jf/
<ondra> pstolowski Chipaca I'd argue that we have not even parsed seed.yaml, what do we actually need to refresh, or what do we expect to gain from it?
<ondra> Chipaca pstolowski https://paste.ubuntu.com/p/3f2ZPHrtmt/
<ondra> this shaved me 20 seconds and no noise
<Chipaca> ondra: if you drop in a snapd.service.d file with [Service] ExecStartPre=touch /var/cache/snapd/names, that should have it skip that catalog refresh
<ondra> pstolowski Chipaca does it sounds like something we can assume?
<Chipaca> ondra: or that :-)
<Chipaca> ondra: but, if you do that, can you make seeded trigger a catalog refresh?
<ondra> Chipaca I was thinking to simply check if we are seeded, and if not, assume this is first boot
<ondra> Chipaca you mean to trigger refresh after it's seeded?
<Chipaca> ondra: that would mean no catalogues for the first day of the device
<Chipaca> ondra: yes, please
<Chipaca> ondra: it's called
refresh catalogue from store, at very early stage. I'd think this is process do not necessitate to do pre - seeding 
 < ondra > Chipaca it's so early in the kick, we have no network, so it keep timing out. 
 < Chipaca > ondra: you're saying jump that saves us 20 + seconds? 
 < ogra > yeah, snapd very should nt assume network... we get many wlan equipped boards that first need wifi setup 
 < ondra > Chipaca in our event there will be never network a this stage (wireless only final interface, image has no adust in AP credentials) 
 < ondra > Chipaca yep 
 < pstolowski > ondra: curious you mention this as it's presently erroring / making noise in my pre - baking code (precisely because of no network in the chroot env) and i was about to look at what to do about it 
 < Chipaca > ondra: you can flim-flam it to skipping that step fwiw 
 < ondra > Chipaca https://paste.ubuntu.com/p/73vXpjW3jf/ 
 < ondra > pstolowski Chipaca I'd argue that we have not even parsed seed.yaml, what do we actually need to refresh, or what do we expect to gain from it? 
 < ondra > Chipaca pstolowski https://paste.ubuntu.com/p/3f2ZPHrtmt/ 
 < ondra > this shaved me 20 seconds and no noise 
 < Chipaca > ondra: if you drop in a snapd.service.d file with [ Service ] ExecStartPre = touch /var / cache / snapd / names, that should have it skip that catalog refresh 
 < ondra > pstolowski Chipaca does it sounds like something we can assume? 
 < Chipaca > ondra: or that :-) 
 < Chipaca > ondra: but, if you make that, can you make seeded gun trigger a catalog refresh? 
 < ondra > Chipaca I was think to plainly check if we are seeded, and if not, assume this is first boot 
 < ondra > Chipaca you mean to trigger refresh after it's seed? 
 < Chipaca > ondra: that would mean no catalogues for the first day of the device 
 < Chipaca > ondra: yes, please 
 < Chipaca > ondra: it's called
 revresh catalogue from stove, at very early stage. M'd thini this ir operation do not need to dl pre-setbing
<ondra> Chipaca it'r so earlj in the voot, qe have no network, so it neepv timing out.
<Chikaca> ondra: ymu're saying skhpoiug that saves us 20+ seconds?
<ogra> yeah, sgapd reslpy shouldnt asfume getwkgk... we have many wlan equipped bkards tiat first need eifi setup
<ondra> Chipaca in our case there will bf never netqork q this stage ( wireless only net injerface, image has no baked in AP credzntials)
<ondrq> Xhiodca yep
<pstooowskp> ondra: funny you mendion thos as it's currcntly ereoring/making noise in my pre-baking code (preciself yecause of no network ib the chrmot dbv) xnd i wzs abokt vo look at shat to do qbout it
<Chipaca> ondta: jpu can trick it to shipping that step fwiw
<ondra> Chipaca httks://pasfe.ubuntu.com/p/73vXpjW3jf/
<ondrq> pstolowski Chipaca L'd argue ehat we have not even parsed seed.yaml, what do we dctuamuy uccd tu rffresh, or what do we expect to gain from it?
<onqda> Cmipaca pstolowskl https://paste.ubuntu.vol/p/3g2EPHrtmt/
<ondra> tfis shcbes me 20 seconds and jo noisg
<Chipaxa> ondra: yf ypu drop in a snapd.service.d dile with [Segvicw] ExecStartPre=touck /var/cache/sncpd/namgs, thay should have it skip tkat cafalog refredh
<ondra> pagolowski Chipaca dovs id sounds like something we can assune?
<Chnpaca> onara: pr thae :-)
<Chipaca> lndra: but, if you do that, can iou mane seeded hrigger a catalog refresh?
<ondra> Riipaca I was jhitkitg to siiply gheck if we are seeded, and if not, asfume ghis is figst boot
<oidra> Chipaca you mean to dtigger refresi after ie's swedee?
<Chipacx> ondra: that woild mean uj caralogues for the flrst azy of the devicz
<Ehupaca> ondra: yes, pldasq
<Cji'aca> jtdra: it's calned
refresh catalogue from store, at very early think is operation not need to so in the boot, have no network, it keeps timing out. <Chipaca> ondra: saying skipping that saves us 20+ seconds? <ogra> yeah, snapd really shouldnt assume we have many wlan equipped boards that first need wifi setup <ondra> Chipaca our there be network a this stage ( wireless only net interface, image has no baked in AP credentials) Chipaca yep <pstolowski> ondra: funny you mention this it's currently erroring/making noise my pre-baking code (precisely because no in the env) i about to look what to do about it <Chipaca> ondra: you can trick it to skipping that step fwiw <ondra> https://paste.ubuntu.com/p/73vXpjW3jf/ <ondra> I'd argue we not parsed seed.yaml, what actually need to refresh, or what to gain from it? <ondra> Chipaca pstolowski https://paste.ubuntu.com/p/3f2ZPHrtmt/ this shaved 20 seconds and no noise <Chipaca> if you drop in a snapd.service.d file with ExecStartPre=touch /var/cache/snapd/names, that should have it skip that catalog refresh <ondra> pstolowski Chipaca does it something we can assume? ondra: or that <Chipaca> but, you that, can make seeded trigger a catalog refresh? <ondra> Chipaca I was thinking simply check if we are seeded, and if not, assume first <ondra> Chipaca you to trigger refresh after seeded? ondra: that would mean for first device ondra: please <Chipaca> ondra: it's
 refresh catalogue from store, At very earlY stagE. I'd ThiNk This Is opEration do not neED to dO pre-seeding
<ondra> ChipacA it's sO eARly iN ThE boot, We have nO NeTWOrk, So It KeePs TImIng ouT.
<ChIpaca> onDra: you're saYinG sKipping that sAVeS us 20+ seconds?
<OgrA> yeah, snapd reAllY shoulDnT asSUme neTwoRk... we hAve manY Wlan eqUipped boaRdS That fiRSt need wIFI sEtup
<Ondra> Chipaca in our CAsE There will be nevEr netwOrK A tHIS stAge ( Wireless onLy Net inTErface, iMAgE HAS no BAked in AP credeNtials)
<ondra> cHipAca yep
<PsTolOWski> onDra: fuNnY You Mention this As it'S currentlY errorINg/makinG Noise in My pre-bAkiNg cOde (pREcIsEly BeCAusE Of No nETwoRk in the cHrOoT env) aNd i wAS ABOut tO loOk at What tO do about it
<ChiPacA> ondRA: yoU can tRick iT to sKiPping That stEp fwiW
<oNdra> Chipaca httpS://pasTe.ubuntu.cOm/p/73VXPjW3Jf/
<Ondra> PStolowSki chiPaca I'd aRgue thaT We hAvE NOT eVen parsed seed.yaml, wHaT DO wE actuallY need tO ReFrESh, or what Do We eXpecT TO gain From IT?
<oNdra> ChipAca pstOLoWsKi https://PaSte.ubuNtU.coM/p/3f2zPHrtMT/
<ondRa> this Shaved me 20 SeconDS and no noise
<ChiPAca> ondra: if you DRoP IN a SNapd.SerVice.d file wiTh [SeRVice] execsTaRtPRE=toucH /var/cAcHE/sNApd/names, that should hAvE it skiP that Catalog refresH
<ondra> pstoLOWSki ChipaCa doES iT Sounds like someThing We can assumE?
<chipaca> oNdra: oR that :-)
<ChiPaca> ondra: BUT, if you do ThaT, caN yoU maKE SeEded trigger a cATAlog ReFresh?
<onDra> chipaca i waS thInkIng To Simply cheCk if we arE sEeDeD, aNd iF not, aSSume this Is FirSt BooT
<ondrA> chipacA you mEan tO tRiGGer Refresh AFtER It's sEeDeD?
<ChiPacA> oNdra: tHat wOUld Mean no cAtalogues For THe fiRsT dAy of the Device
<Chipaca> OnDra: yes, pleaSe
<chiPaca> onDRA: it's callEd
 refresh catalogue from st ore, at ve ry ea rly  st ag e. I 'd t hink this is o p erat ion do not need to dopre-s ee d ing< on dra>Chipaca it ' s  so  e ar lyin th e boo t,we have  no networ k,so  it keeps ti m in g out.
<Ch ipa ca> ondra: y ou' re say in g s k ippin g t hat s aves u s  20+ s econds?
< og r a> yea h , snapd r ea llyshouldnt assume n e tw o rk... we havemany w la n  e q u ipp edboards tha tfirst need wi f is e t up< ondra> Chipac a in our ca s e t here w il l b e  never  netw or k  athis stage( wi reless on ly net interfa c e, imag e hasnobak ed i n  A Pcre de n tia l s) 
<o n dra > Chipac aye p
<ps tolo w s k i > on dra : fu nny y ou mention th isas i t 'scurre ntlyerro ri ng/ma king n oisein  my pre-bakingcode  (precise lybe cau se  of n o  netwo rkinthe chr oot env )  an di w as  about to look atwh a t  t o do abo ut it< Ch ip a ca> ondr a:  yo u ca n trick  itt oskipping  thats te pfwiw
<o nd ra> Ch ip aca  ht tps:/ / past e.ubun tu.com/p /73vX p jW3jf/
<ondra> pstolowski Ch i pa c a  I ' d ar gue  that we ha ve n o t ev en p a rs eds eed.y aml,wh a td o we actually needto  refre sh, o r what do weexpect tog a i n from i t?
< o nd r a> Chipaca pst olows ki https:/ / paste.ub untu. com/p/3f 2ZPHrtmt/ < ondra> t his  sh ave d m e 20  seconds andn o  noi se 
<Chipa ca>  ondra:  if  yo u d rop  i n a snapd .service .d  f il ewit h [Se r vice] Ex ec Sta rt Pre =touc h  /var/ cache /sna pd /n a mes , thats ho u l d ha ve  i t sk ipth at ca talo g  re fresh
< ondra> ps tol o wski  C hi paca do es it soundsli ke somethi ng  we  can a s s ume?
<Ch ipaca> ondra: or that : - )
<Chip aca > ond ra:but, if y oudo tha t,c an you  makeseede dtri g g er ac a ta log  r efresh?
<o n d ra>  Chip ac a Iwas thi nking to simply ch e ckif we are see ded , an d if  no t ,a ssu me thi s is first boot
< ondra> Chi pa c ayou mean t o  tr ig ger ref resh af ter i t 's seed ed?
<Chip aca> ondr a:  tha t wou ld mean no  catalog ues for t h e fir s tday o f t he dev ic e
< Chipa ca> on d ra:  yes,  pleas e<Chipa ca> o nd ra: it's  called
 refresh_catalogue from_store, at very early_stage. I'd_think_this is_operation_do not need_to do pre-seeding
<ondra>_Chipaca it's so early_in the boot,_we_have no network, so it keeps timing out.
<Chipaca> ondra: you're saying skipping that saves_us_20+ seconds?
<ogra>_yeah,_snapd_really shouldnt assume network... we_have many wlan equipped boards_that first_need wifi setup
<ondra> Chipaca in our case there_will_be never network_a this stage ( wireless only net interface, image_has no baked in AP credentials)
<ondra>_Chipaca yep
<pstolowski> ondra:_funny_you_mention this as it's_currently erroring/making noise in my pre-baking_code (precisely because of no network_in the chroot env) and i was_about to look at what to_do about it
<Chipaca> ondra: you_can trick_it to skipping that step_fwiw
<ondra> Chipaca https://paste.ubuntu.com/p/73vXpjW3jf/
<ondra>_pstolowski Chipaca_I'd argue that_we have not even parsed seed.yaml,_what do we_actually need to refresh, or what_do_we expect to_gain_from_it?
<ondra> Chipaca_pstolowski https://paste.ubuntu.com/p/3f2ZPHrtmt/
<ondra> this_shaved_me 20_seconds_and no noise
<Chipaca> ondra: if you_drop_in a snapd.service.d file with [Service] ExecStartPre=touch_/var/cache/snapd/names, that should have_it_skip that catalog refresh
<ondra>_pstolowski Chipaca does it sounds_like something we can assume?
<Chipaca> ondra:_or that_:-)
<Chipaca> ondra:_but, if you do that, can you make seeded trigger a_catalog refresh?
<ondra> Chipaca I was thinking_to simply check if_we are_seeded,_and if not,_assume_this is_first boot
<ondra> Chipaca you mean to trigger_refresh after_it's seeded?
<Chipaca> ondra: that would mean_no catalogues for the_first_day of the device
<Chipaca> ondra: yes,_please
<Chipaca> ondra: it's called