[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:16328] Re: cdebootstrap on sarge



ã“ã‚“ã«ã¡ã¯ï¼Œ

> Junichi Uekawa wrote:
> > [c]debootstrapã«ãŠã„ã¦ï¼Œ
> > woodyã¯ã‚µãƒãƒ¼ãƒˆå¤–ã«ã™ã‚‹ï¼Œã¨ã„ã†ã®ãŒä¸€ç•ªã¾ã¨ã‚‚ãªè§£æ±ºæ–¹æ³•ã§ã™ã‹ã­ï¼Ž
> 
> oldstableãŒã‚ã‚‹é–“ã¯â€¦â€¦ ã¨ã„ã†ã‚ã‘ã§
> ダミーエントリを入れã¦ã€å¾Œã§ã‘ãšã‚‹ã¨ã„ã†ã®ã¯ã©ã†ã§ã™ã‹ã€‚
> 
> # debootstrapã§ã¯ã¾ã£ãŸã¨ãã¯ãã®ã‚ˆã†ã«å›žé¿ã—ã¾ã—ãŸã€‚
> # 「後ã§ã‘ãšã‚‹ã€ã¯ã‚„ã£ã¦ã¾ã›ã‚“ãŒã€‚

ç¾çŠ¶ï¼š
/var/lib/dpkg/status
/var/lib/dpkg/available
ã®ä¸¡æ–¹ã«ã¤ã„ã¦ï¼Œ
debootstrapã¯ç‰‡æ–¹ã«ãƒ€ãƒŸãƒ¼ã‚’ã¤ã£ã“ã‚“ã§ãれるã®ã§ï¼Œç‰‡æ–¹ã¯å›žé¿ã§ãã¦ã„ã‚‹
cdeboootstrapã¯ä¸¡æ–¹ã¨ã‚‚サイズ0ã§é–‹å§‹ã™ã‚‹ã®ã§å›žé¿ã§ãã¦ã„ãªã„.

改善案1:
[c]debootstrapを変更ã—ã¦
/var/lib/dpkg/{status,available}ã«ãƒ€ãƒŸãƒ¼ãƒ‡ãƒ¼ã‚¿ã‚’ã¤ã£ã“ã‚“ã§ã‚ã’ã‚‹

改善案2:
mmapã‚’length=0ã§å‘¼ã°ã‚ŒãŸã¨ãã«0ã‚’ã‹ãˆã™ã‚«ãƒ¼ãƒãƒ«ãƒ‘ッãƒã‚’書ã

改善案3:
mmapã‚’length=0ã§å‘¼ã°ã‚ŒãŸã¨ãã«0ã‚’ã‹ãˆã™LD_PRELOAD/ptrace ãƒãƒƒã‚¯
を仕込む.






上å·