← Back to team overview

ubuntukylin-members team mailing list archive

[Bug 1869450] [NEW] ubuntukylin-default-settings modifies /etc/os-release

 

Public bug reported:

The preinst script in ubuntukylin-default-settings overwrites Ubuntu in
/etc/os-release:

    sed -i 's/\(NAME="Ubuntu\)"/\1 Kylin"/' /etc/os-release
    sed -i 's/\(PRETTY_NAME="Ubuntu\) 1/\1 Kylin 1/' /etc/os-release

This results in:

$ cat /etc/os-release
NAME="Ubuntu Kylin"                                                                                                     VERSION="20.04 LTS (Focal Fossa)"                                                                                       ID=ubuntu                                                                                                               ID_LIKE=debian                                                                                                          PRETTY_NAME="Ubuntu Focal Fossa (development branch)"

I am not aware of other flavors that edit /etc/os-release and this is
out of the ordinary.

** Affects: ubuntukylin-default-settings (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

- preinst in ubuntukylin-default-settings overwrites Ubuntu in /etc/os-
- release:
+ The preinst script in ubuntukylin-default-settings overwrites Ubuntu in
+ /etc/os-release:
  
-     sed -i 's/\(NAME="Ubuntu\)"/\1 Kylin"/' /etc/os-release
-     sed -i 's/\(PRETTY_NAME="Ubuntu\) 1/\1 Kylin 1/' /etc/os-release
+     sed -i 's/\(NAME="Ubuntu\)"/\1 Kylin"/' /etc/os-release
+     sed -i 's/\(PRETTY_NAME="Ubuntu\) 1/\1 Kylin 1/' /etc/os-release
  
  This results in:
  
- $ cat /etc/os-release                                                                        
- NAME="Ubuntu Kylin"                                                                                                     VERSION="20.04 LTS (Focal Fossa)"                                                                                       ID=ubuntu                                                                                                               ID_LIKE=debian                                                                                                          PRETTY_NAME="Ubuntu Focal Fossa (development branch)"                                                                   
+ $ cat /etc/os-release
+ NAME="Ubuntu Kylin"                                                                                                     VERSION="20.04 LTS (Focal Fossa)"                                                                                       ID=ubuntu                                                                                                               ID_LIKE=debian                                                                                                          PRETTY_NAME="Ubuntu Focal Fossa (development branch)"
  
  I am not aware of other flavors that edit /etc/os-release and this is
  out of the ordinary.

-- 
You received this bug notification because you are a member of Ubuntu
Kylin Members, which is subscribed to ubuntukylin-default-settings in
Ubuntu.
https://bugs.launchpad.net/bugs/1869450

Title:
  ubuntukylin-default-settings modifies /etc/os-release

Status in ubuntukylin-default-settings package in Ubuntu:
  New

Bug description:
  The preinst script in ubuntukylin-default-settings overwrites Ubuntu
  in /etc/os-release:

      sed -i 's/\(NAME="Ubuntu\)"/\1 Kylin"/' /etc/os-release
      sed -i 's/\(PRETTY_NAME="Ubuntu\) 1/\1 Kylin 1/' /etc/os-release

  This results in:

  $ cat /etc/os-release
  NAME="Ubuntu Kylin"                                                                                                     VERSION="20.04 LTS (Focal Fossa)"                                                                                       ID=ubuntu                                                                                                               ID_LIKE=debian                                                                                                          PRETTY_NAME="Ubuntu Focal Fossa (development branch)"

  I am not aware of other flavors that edit /etc/os-release and this is
  out of the ordinary.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntukylin-default-settings/+bug/1869450/+subscriptions


Follow ups