-
Notifications
You must be signed in to change notification settings - Fork 44
feat: support building with Debian / Ubuntu snapshot services #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
No linked issues found. Please add the corresponding issues in the pull request description. |
|
ubuntu的话你传入比如https://snapshot.ubuntu.com/ubuntu/20240301T030400Z/这种行么? |
| head -n 1 "$1/etc/apt/sources.list" | sed -E -e "s/(%(suite)s)/\\1-backports/" > "$1/etc/apt/sources.list.d/50-%(suite)s-backports.list" | ||
| # security archive | ||
| head -n 1 "$1/etc/apt/sources.list" | sed -E -e "s/(%(suite)s)/\\1-security/" -e "s|/debian |/debian-security |" > "$1/etc/apt/sources.list.d/50-%(suite)s-security.list" | ||
| head -n 1 "$1/etc/apt/sources.list" | sed -E -e "s/(%(suite)s)/\\1-security/" -e "s|/debian([ /])|/debian-security\1|" > "$1/etc/apt/sources.list.d/50-%(suite)s-security.list" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是对应哪种内容?
| distro_mirror_default | ||
| else | ||
| distro_mirror) | ||
| + "/" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这算一个breaking change了。这边代码本意是给deb镜像站用的,他们同一个路径下会同时有/debian和/ubuntu,这样就只需要指定一个url就能同时支持两个distro。现在改的需要完整路径了,那就没法一个url
支持多个distro了。看起来的确需要一个单独的参数,并且跟现有的-m要互斥
|
ok那我就多增加一个类似 |
|
可以直接改好了强推这个分支,然后再继续review |
RadxaYuntian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有冲突,你先rebase一下
This reverts commit f86fde4.
693bd6d to
bd0bb7a
Compare
这个PR目前算是一个
proof-of-concept,目前修改只支持Debian。这样修改的话就能够直接把snapshot的url通过
-m传给rsdk使用,比如:不过因为发现Ubuntu使用snapshot的方法[0]跟Debian有些不太一样所以有些犹豫了,会不会多设置一个
--snapshot命令更好一些?