# HG changeset patch # User Paul Boddie # Date 1352049878 -3600 # Node ID 8b50bb23e0370a2e8c0a6c20c0a65df2c39472ea # Parent 843a85502fe288d9b01542792f456e0a95ded8af Replaced /etc/lsb-release usage with lsb_release invocations. diff -r 843a85502fe2 -r 8b50bb23e037 README.txt --- a/README.txt Sun Oct 07 03:03:48 2012 +0200 +++ b/README.txt Sun Nov 04 18:24:38 2012 +0100 @@ -53,11 +53,15 @@ fakechroot 2.8 or later required debootstrap Tested with 0.3.3.2ubuntu3 on Ubuntu Hoary 5.04, 1.0.7~feisty1 on Ubuntu Feisty 7.04, 1.0.20~hardy1 on Ubuntu Hardy +lsb-release Tested with 3.2-23.2squeeze1 (apparently required for Debian + squeeze and subsequent distribution versions) New in userinstall 0.2.1 (Changes since userinstall 0.2) -------------------------------------------------------- * Added more User Mode Linux and configuration-related documentation. + * Introduced usage of the lsb_release command in preference to the + /etc/lsb-release file. New in userinstall 0.2 (Changes since userinstall 0.1) ------------------------------------------------------ diff -r 843a85502fe2 -r 8b50bb23e037 userinstall-defaults --- a/userinstall-defaults Sun Oct 07 03:03:48 2012 +0200 +++ b/userinstall-defaults Sun Nov 04 18:24:38 2012 +0100 @@ -1,6 +1,8 @@ #!/bin/sh -. /etc/lsb-release +DISTRIB_ID=`lsb_release -s -i` +DISTRIB_RELEASE=`lsb_release -s -r` +DISTRIB_CODENAME=`lsb_release -s -c` # If not using the same distribution inside the userinstall, replace these # definitions: